Fatal Error when switch to PHP 8
-
I’ve got this when I switch from PHP 7.4 to PHP8
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/r60846/public_html/wp-includes/wp-db.php:1688 Stack trace: #0 /home/r60846/public_html/wp-includes/wp-db.php(632): wpdb->db_connect() #1 /home/r60846/public_html/wp-includes/load.php(545): wpdb->__construct() #2 /home/r60846/public_html/wp-settings.php(124): require_wp_db() #3 /home/r60846/public_html/wp-config.php(78): require_once('/home/r6084...') #4 /home/r60846/public_html/wp-load.php(37): require_once('/home/r60846...') #5 /home/r60846/public_html/wp-blog-header.php(13): require_once('/home/r6084...') #6 /home/r60846/public_html/index.php(17): require('/home/r60846...') #7 {main} thrown in /home/r60846/public_html/wp-includes/wp-db.php on line 1688 There has been a critical error on this website.I disabled plugins also, still in error.
With the twentytwentyone default WP theme works like charm.How to fix that?
Thank you!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Fatal Error when switch to PHP 8’ is closed to new replies.
