質問

I was working on my wordpress site locally using MAMP and suddenly everything went blank (white). Apache and MySQL both have green lights and everything seems to be running just fine, but the URL brings up a blank page now with no error message. Any ideas?

役に立ちましたか?

解決

The white screen usually happens when you edit something in the php and it is incorrect formatting. Go back through the edits and changes you recently made to the code and remove the changes. You should then see your site and know which pieces of code are throwing the errors. It happened to me a few times.

他のヒント

My problem was due to attempting to connect to the wrong database as my wp-config.php had a typo in it. I found the solution by first looking at apache logs as mentioned and there was only a general SIGTERM error. I then looked at MAMP's php_error.log which showed me this error: WordPress database error Unknown column 'wp_' in 'field list' for query SELECT wp_. Updating my wp-config with the correct database and restarting MAMP fixed the issue.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top