The site is experiencing technical difficulties after Updating PHP Version in cPanel

Known:

  • Current PHP is 5.6
  • WordPress Website
  • I choose Select PHP Version inside cPanel and update to 7.3 version

Problem

When i access my website then it shows “The site is experiencing technical difficulties”

Analize:

I change define(‘WP_DEBUG’, true) inside wp-config.php and the message shows this information:

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/a2fahmi1/public_html/wp-includes/wp-db.php:1643 Stack trace: #0 /home/a2fahmi1/public_html/wp-includes/wp-db.php(639): wpdb->db_connect() #1 /home/a2fahmi1/public_html/wp-includes/load.php(427): wpdb->__construct('MyUser', 'MyPassword', 'MyDb', 'localhost') #2 /home/a2fahmi1/public_html/wp-settings.php(120): require_wp_db() #3 /home/a2fahmi1/public_html/wp-config.php(91): require_once('/home/a2fahmi1/…') #4 /home/a2fahmi1/public_html/wp-load.php(37): require_once('/home/a2fahmi1/…') #5 /home/a2fahmi1/public_html/wp-login.php(12): require('/home/a2fahmi1/…') #6 {main} thrown in /home/a2fahmi1/public_html/wp-includes/wp-db.php on line 1643

Question:

How to fix it … ?

Solution:

Select PHP Version and checklist the “nd_mysqli” checkbox

Thanks for reading

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *