Title: WordPress error when moving to PHP 7.3
Last modified: September 15, 2019

---

# WordPress error when moving to PHP 7.3

 *  Resolved [Mohamed Adel](https://wordpress.org/support/users/madel28/)
 * (@madel28)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/wordpress-error-when-moving-to-php-7-3/)
 * Why I got WordPress error message [The site is experiencing technical difficulties.]
   when moving from PHP 7.2 to PHP 7.3?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-error-when-moving-to-php-7-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 9 months ago](https://wordpress.org/support/topic/wordpress-error-when-moving-to-php-7-3/#post-11933929)
 * Errors like this are logged. Check the error log on your server. If you can’t
   find the log, please contact your host.
 * Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/
   debug.log to see if anything gets logged there. [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)
 * You can also try this: Please attempt to disable all plugins, and use one of 
   the default (Twenty*) themes. If the problem goes away, enable them one by one
   to identify the source of your troubles.
 * If you cannot access wp-admin, there are other ways to [deactivate plugins](https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus).
 *  Thread Starter [Mohamed Adel](https://wordpress.org/support/users/madel28/)
 * (@madel28)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/wordpress-error-when-moving-to-php-7-3/#post-11952619)
 * Thank you for your reply
    First I disabled all plugins and theme error still 
   exist.
 * Then make all plugins active and test get the following:
    I got this from debug
   file:
 * [20-Sep-2019 12:40:39 UTC] PHP Fatal error: Uncaught Error: Call to undefined
   function mysql_connect() in /home/XXXXXX/public_html/wp-includes/wp-db.php:1643
   
   Stack trace: #0 /home/XXXXXX/public_html/wp-includes/wp-db.php(639): wpdb->db_connect()#
   1 /home/XXXXXX/public_html/wp-includes/load.php(427): wpdb->__construct(‘MyDatabaseName…’,‘
   DataPbasePassword’, ‘MyDatabaseUser…’, ‘localhost’) #2 /home/XXXXXX/public_html/
   wp-settings.php(120): require_wp_db() #3 /home/XXXXXX/public_html/wp-config.php(
   107): require_once(‘/home/XXXXXX/…’) #4 /home/XXXXXX/public_html/wp-load.php(
   37): require_once(‘/home/XXXXXX/…’) #5 /home/XXXXXX/public_html/wp-blog-header.
   php(13): require_once(‘/home/XXXXXX/…’) #6 /home/XXXXXX/public_html/index.php(
   17): require(‘/home/XXXXXX/…’) #7 {main} thrown in /home/XXXXXX/public_html/wp-
   includes/wp-db.php on line 1643
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 8 months ago](https://wordpress.org/support/topic/wordpress-error-when-moving-to-php-7-3/#post-11952641)
 * One of your plugins or your theme is out of date or you’re missing the proper
   PHP mysql library in your 7.3 stack. Please contact your host to make sure the
   proper 7.3 php-mysqlnd library is installed.
 *  Thread Starter [Mohamed Adel](https://wordpress.org/support/users/madel28/)
 * (@madel28)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/wordpress-error-when-moving-to-php-7-3/#post-11954209)
 * Thank you Mr. Steve Stern,
    I select this Extension ” nd_mysqli ” & worked with
   me fine are there any extensions should be active in PHP 7.3?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 8 months ago](https://wordpress.org/support/topic/wordpress-error-when-moving-to-php-7-3/#post-11954236)
 * The library should be the same — just for 7.3.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WordPress error when moving to PHP 7.3’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/wordpress-error-when-moving-to-php-7-3/#post-11954236)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
