user3621335
user3621335

Reputation: 23

MAMP is working correctly, but URL is bringing up a blank page

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?

Upvotes: 2

Views: 6616

Answers (2)

Langlois.dev
Langlois.dev

Reputation: 2141

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.

Upvotes: 0

Musik8101
Musik8101

Reputation: 585

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.

Upvotes: 4

Related Questions