MySQL connect requests causing fatal error on php 7.2 and 7.3 in wordpress files
-
These are all files present in the latest wordpress update. One of them is requiering MySQL connect wich has been removed from php 7.2 and 7.3. It is blocking wp-admin access but the website works well. Just wp-admin on pages page and extentions page for php 7.2 and same error log on all wp-admin pages with php 7.3.
MySQLI is active MariaDB is up to date. On another forum they say to replace MYSQL connect function . by MySQLi connect… Look: They say:“You can use mysqli_connect($mysql_hostname , $mysql_username) instead of mysql_connect($mysql_hostname , $mysql_username).
mysql_* functions were removed as of PHP 7. You now have two alternatives: MySQLi and PDO.”
Why should I have to change this in wordpress files? It’s not a plugin and not the theme cause the website is online and accessible.
wp-includes/wp-db.php:1564
wp-includes/wp-db.php(592)
wp-includes/load.php(409)
public_html/wp-settings.php(106)
/public_html/wp-config.php(93)
public_html/wp-admin/admin.php(31) . {main} thrown in /home/punkmmur/public_html/wp-includes/wp-db.php on line 1564Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/punkmmur/public_html/wp-includes/wp-db.php:1564 Stack trace: #0 /home/punkmmur/public_html/wp-includes/wp-db.php(592): wpdb->db_connect() #1 /home/punkmmur/public_html/wp-includes/load.php(409): wpdb->__construct(‘punkmmur_calyps…’, ‘password’, ‘xxxxxxx…’, ‘localhost’) #2 /home/punkmmur/public_html/wp-settings.php(106): require_wp_db() #3 /home/punkmmur/public_html/wp-config.php(93): require_once(‘/home/punkmmur/…’) #4 /home/punkmmur/public_html/wp-load.php(37): require_once(‘/home/punkmmur/…’) #5 /home/punkmmur/public_html/wp-admin/admin.php(31): require_once(‘/home/punkmmur/…’) #6 /home/punkmmur/public_html/wp-admin/index.php(10): require_once(‘/home/punkmmur/…’) #7 {main} thrown in /home/punkmmur/public_html/wp-includes/wp-db.php on line 1564
The DB queries don’t work. But its all wordpress core files and they say wordpress is php 7.2-3 ready, where does this query come from?
- This topic was modified 6 years, 4 months ago by . Reason: minor edit
- This topic was modified 6 years, 4 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘MySQL connect requests causing fatal error on php 7.2 and 7.3 in wordpress files’ is closed to new replies.