copy db.php to your WordPress content directory (wp-content/ which worked to allow my site to run but I can’t login. I using Mamp local server. My site is WordPress 3. something.
Do you have any ideas?
Your help is greatly appreciated.
]]>Thank you for your patch, it work but my admin page not open, it show blank page (https://bblc.co.in/home/wp-admin/)
website work fine (https://bblc.co.in/home/)
Please give me a suggesstion…
]]>Between mysqli native support and utf8mb4 shenanigans, I had question marks for everything outside the ASCII range.
It was great until now. Thank you for your work.
]]>Basically, your flush
doesn’t account for mysqli
‘s tendency to throw an “out of sync” error when the previous query did not read all its results.
This can be reproduced by a simple CALL ...
query, followed by any query. This would result in:
Error: Commands out of sync; you can’t run this command now.
Please add the following code to your flush
method:
while ( $this->dbh->more_results() ) $this->dbh->next_result();
This will prevent unread results from desynchronizing mysqli
. See https://www.php.net/manual/en/mysqli.query.php#102904 and other comments about the sync error.
Now that PHP has deprecated mysql (PHP extension for accessing MySQL databases), and requires MySQLi (mysql improved) or PDO to access MySQL data, I’ve gotta revive the old question – when will WordPress “move” to MySQLi?
]]>