PHP 8 and WP 5.6 – PHP Fatal error: Uncaught Error: Call to undefined function
-
WP 5.6 and after upgrading to PHP 8 following error occurs:
(removed paths)
[STDERR] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in wp-db.php:1688 Stack trace: #0 wp-db.php(632): wpdb->db_connect() #1 load.php(527): wpdb->__construct() #2 wp-settings.php(124): require_wp_db() #3 wp-config.php(88): require_once('/home/khaotipth...') wp-load.php(37): require_once('/home/khaotipth...') #5 wp-blog-header.php(13): require_once('/home/khaotipth...') index.php(17): require('/home/khaotipth...') #7 {main} thrown in wp-db.php on line 1688
disabled all plugins and changed to Twenty Twenty-One (twentytwentyone).
Version 5.6
Site Language sv_SE
User Language en_US
Timezone Europe/Stockholm
Permalink structure /%category%/%postname%/
Is this site using HTTPS? Yes
Is this a multisite? No
Can anyone register on this site? No
Is this site discouraging search engines? Yes
Default comment status Closed
Environment type production
User count 6
Communication with www.ads-software.com www.ads-software.com is reachableMaria DB 10.3 and hosting provider using cloudlinux
And yes I am aware of beta compatibility for PHP8 in WP 5.6Thanks
- The topic ‘PHP 8 and WP 5.6 – PHP Fatal error: Uncaught Error: Call to undefined function’ is closed to new replies.