Header broken after update

Posted in: Newsmag
Post count: 112

Just updated the theme, visual composer and wordpress and now get this error

The header is broken and half of the screen on the theme panel is a grey colour

Warning: mysql_connect() [function.mysql-connect]: Headers and client library minor version mismatch. Headers:50530 Library:50623 in /home/unplugti/public_html/wp-includes/wp-db.php on line 1515

Thanks

D

Post count: 112

Line 1515 is this

$this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );

Post count: 112

Have tried several different php versions

Also tried uninstalling all plugins and switching themes etc but no joy

Post count: 6535

Hi

It seems that the problem is relate with the mysql connection and has been reported here: https://wordpress.org/support/topic/headers-and-client-library-minor-version-mismatch-after-45-update
Try to set the WP_DEBUG as TRUE in wp-confic.php then test again.

Thanks!

Post count: 112

Hi Andrei,

Thanks for the suggestion, I tried it but that didn’t have any effect.

I’ve just received an email stating that my site has been updated to wordpress 4.5.1 I don’t know how because I’m not even on auto update, maybe this is a spam message that’s doing the rounds?

Anyway, I’ve gone back to the site to try and login and now I’m not able to access the login page, I get the following error

Warning: mysql_connect() [function.mysql-connect]: Headers and client library minor version mismatch. Headers:50530 Library:50623 in /home/unplugti/public_html/wp-includes/wp-db.php on line 1520

Warning: Cannot modify header information – headers already sent by (output started at /home/unplugti/public_html/wp-includes/wp-db.php:1520) in /home/unplugti/public_html/wp-includes/pluggable.php on line 1171

Any ideas????

Many thanks

D

Post count: 6535

Hi

You could try a wp database repair, it might work, try it like this: https://www.maketecheasier.com/fix-corrupted-wordpress-database-2/ Also check your server’s and MySQL error log, they might contain some references to this behaviors.
Finally if this does not help try to setup a new wp-install on a sub-domain or on your local computer using this configuration:
– WordPress V 4.5
– Newsmag theme V 2.3.6
– Visual Composer plugin V 4.11.2
This configuration should work fine so do a few tests with it and check how it goes.

Thanks!

Post count: 112

Hi Andrei,

I’ve not yet tried a database repair as mentioned above because I went to the server and there was a MySQL connection error caused by a php.ini file that the server people had added to fix a previous outage.

Here’s the reply I got from them regarding the MySQL issue, hardly very helpful….

Let me know what you think before I go messing around with anything else and doing damage

Many thanks

D

Hello,

The MySQL server is up and running. Your logs are indicating your WordPress is unable to connect, not that the server itself is offline.

We can see that a custom php.ini is being used (public_html/php.ini) and this file contains invalid settings for our environment which was causing MySQL to be unable to connect.

We renamed this file to php.ini.bak and the site is now loading, albeit with the previous warnings.

We suggest contacting a WordPress developer to assist with upgrading the site and fixing any inconsistencies caused by the upgrade.

Please let us know if there are any further questions.

Post count: 112

Hi Andrei,

I’ve managed to find the problem, it’s something in the .htaccess file, don’t know what yet, I just grabbed everything out of the file and saved it and the problem has gone.

I’ll piece it back together tomorrow and post here whatever it was that caused it for anyone else with the same problem

Thanks for all your help

Best wishes

D

Post count: 6535

Hi

Glad you have managed to solve this.
Thanks for letting us know and for your message.

Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic.