Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top