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

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 “”. Accordin to the steps given, I added “define(‘WP_ALLOW_REPAIR’, true);” in my wp-config.php file. But I am not getting the repair screen. Instead it says “This page isn’t working is currently unable to handle this request. HTTP ERROR 500”.

Please help.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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”.

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.