Question

How to resolve "This page isn’t working xyz.com is currently unable to handle this request. HTTP ERROR 500"?

Posted May 15, 2020 4.2k views
WordPressDatabasesDigitalOcean Managed MySQL Database

I had faced the “Error establishing a Database connection” error suddenly while uploading images to the website (may be due to out of memory). I tried following the article “https://www.digitalocean.com/community/tutorials/how-to-debug-the-wordpress-error-establishing-database-connection”. Accordin to the steps given, I added “define(‘WPALLOWREPAIR’, true);” in my wp-config.php file. But I am not getting the repair screen. Instead it says “This page isn’t working xyz.com is currently unable to handle this request. HTTP ERROR 500”.

Please help.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

Since you are seeing a 500 error you may want to check your webserver logs to see the full 500 error being reported. In a lot of cases the webserver is failing to respond and that error can give you more details on the cause. You may also want to try restarting your webserver.

For the database error, a lot of times it is caused by running out of memory, so checking your mysql logs will indicate OOM errors and verify if that is the case.

Hi NJW, thank you for your prompt reply. Appreciated!
However, I tried checking mysql logs it says, “2017-04-11T17:38:22.604644Z 0 [ERROR] InnoDB: Cannot allocate memory for the buffer pool”.

Submit an Answer