Reputation: 1
I am a beginner in WordPress. Sorry if I am technically incorrect.
WordPress website redirects to the install.php
page once every few hours and keeps redirecting for an hour or so. It automatically fixes itself, with no problem for a few hours and the same thing happens again. I talked to my hosting provider (LWS) and they said it could be due to MySQL database quota problem but I checked and found that I get very few visitors to my website.
Here is the error log [IP and website name redacted]:
[Sun Jan 24 10:08:01.420576 2021] [proxy_fcgi:error] [pid 32498:tid
140692919674624] [client xx.xx.xx.xx:33474] AH01071: Got error 'PHP
message: PHP Warning: mysqli_set_charset(): Error executing query in
/htdocs/wp-includes/wp-db.php on line 792', referer: https://sitename.com/
I searched for guides on Google and YouTube but most of them were about confirming and correcting the table prefix name. In my case, the table prefix was already correct.
Here is what the line 792 of wp-db.php
says:
[790]if ( $this->use_mysqli ) {
[791] if ( function_exists( 'mysqli_set_charset' ) &&
$this->has_cap( 'set_charset' ) ) {
[792] $set_charset_succeeded = mysqli_set_charset(
$dbh, $charset );
[794] }
Kindly suggest possible solutions to fix this.
Upvotes: 0
Views: 580
Reputation: 642
Some suggested actions you could take:
Upvotes: 0