- Edited
Hello. I'm new here and not a coder, but... Wordpress tells me I need to update from PHP version 5.6 to version 7.0 or 7.2 or 7.3. When I go to my server/cPanel and use MultiPHP Manager to change from 5.6 to 7.2, I get a fatal error and lose my site until I change it back. The error reads:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/username/public_html/wp-includes/wp-db.php:1668 Stack trace: #0 /home/username/public_html/wp-includes/wp-db.php(632): wpdb->db_connect() #1 /home/username/public_html/wp-includes/load.php(425): wpdb->__construct('username', '!pass', 'username...', 'localhost') #2 /home/username/public_html/wp-settings.php(116): require_wp_db() #3 /home/username/public_html/wp-config.php(90): require_once('/home/username/...') #4 /home/username/public_html/wp-load.php(37): require_once('/home/username/...') #5 /home/username/public_html/wp-blog-header.php(13): require_once('/home/username/...') #6 /home/username/public_html/index.php(17): require('/home/username/...') #7 {main} thrown in /home/username/public_html/wp-includes/wp-db.php on line 1668.
Can anyone tell me what this means? And is it something I can fix?
Thanks! Marie
BTW, I changed themes from a problematic theme to a PHP compatible Wordpress theme, but still the same fatal error.