I host my own WP site on a Debian/Raspbian buster server.
I upgraded PHP 7.1 to 7.3 and the site broke.
I can't understand why it broke because mysql_connect() is deprecated for 7.x (though wp-db.php seems to use it extensively - while WP nags you to upgrade to 7.3). So I looked to enabling the various modules in the fresh 7.3 install php.ini. MySQLi
was commented out, so I enabled that (and a few others) but still get the same error.
Call to undefined function mysql_connect()... wp-db.php on line 1643
which is...
if ( WP_DEBUG ) {
1643 $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );
Php info references MySQLi several times so I'm assuming it's running. The same for mysqlnd
.
I know this question gets asked a lot. But I have tried just about everything out there.
How can I get my site working again on 7.3?
Edit: I tried disabling plugins by renaming the dir and got the same result. I suspect the issue is my 7.3 PHP config, since 7.0 worked fie.