The page isn’t working, site is currently unable to handle this request. HTTP ERROR 500

While accessing WordPress site's sub-links and back-end (WordPress admin dashboard ) I was getting error message as -

"The page isn’t working, site is currently unable to handle this request. HTTP ERROR 500".

Below are the Error log - ( tail -f /usr/local/apache/logs/error_log | grep IP address )

[15-Nov-2016 10:43:07 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/evokeete/public_html/wp-includes/wp-db.php:1561
Stack trace:
#0 /home/user/public_html/wp-includes/wp-db.php(658): wpdb->db_connect()
#1 /home/user/public_html/wp-content/plugins/w3-total-cache/DbCache_Wpdb.php(233):
wpdb->__construct
#2 /home/user/public_html/wp-content/plugins/w3-total-cache/DbCache_WpdbInjection.php(38):
W3TC\DbCache_Wpdb->default_initialize()
#3 /home/user/public_html/wp-content/plugins/w3-total-cache/DbCache_Wpdb.php(137):
W3TC\DbCache_WpdbInjection->initialize()
#4 /home/user/public_html/wp-content/plugins/w3-total-cache/DbCache_Wpdb.php(356):
W3TC\DbCache_Wpdb->initialize()
#5 /home/user/public_html/wp-content/plugins/w3-total-cache/DbCache_WpdbInjection_QueryCaching.
php(192): W3TC\_CallUnderlying->initialize()
#6 /home/user/public_html/wp-content/plugins/w3-total-cache/DbCache_Wpdb.php(137):
W3TC\DbCache_WpdbInjection_Qu in /home/user/public_html/wp-includes/wp-db.php on line 1561

Solution :-

1. If there is PHP selector in your cPanel then you can try to update the PHP version from cPanel >> Select PHP version >> Save.

2. Check the '.htaccess file', if you'll find any code which is other than WordPress's default '.htaccess' file code then please comment that code.

3. Check files and directories permission and ownership.

4. Check that your website is not triggering any mod security rules.

5. Please check the the issue with theme and plugin provider.


6. Check your website is not exceeding resource limit/inode limit allocated to it.

7. If all above is fine then please remount the "cagefs" - 
cagefsctl --remount-all

It fixed my issue!
  • 25 Users Found This Useful
Was this answer helpful?

Related Articles

Database connection error (2): Could not connect to MySQL- Joomla Issue

While accessing the Joomla site I was getting the error as "Database connection error (2): Could...

This webpage is not found - Cannot export database

While exporting the database zip file from cPanel >> phpMyAdmin as well from SSH, I was...

Can't find disk space in /home directory on the cPanel server.

Before transferring a website from one server to another, I checked disk space of website using...

Auto Index is disabled for the directory, access denied : 403 forbidden

While accessing the directories of website (http://webiste_name/directory_name) getting 403...

How to renew the cPanel license on your server?

Quickest way to renew cPanel license - First, you may check if the server has valid license for...

Powered by WHMCompleteSolution