Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
errorlog shows something about mysql_ping()
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 23, 2014 - 8:10 am

Most of those are Notices which are not strictly 'errors'. They are really just a nuisance which we clean up when we find them. Some will be fixed in the next update.

The 'unread' one is puzzling as I have not seen that one before but again - may be fixed in the next update. It might also refer to some data item that has not been set up yet because things are quite new (I believe?).

I am however, a little concerned about the 'user_login' one because this just should not be possible. This is a WordPress core property that should not be able to not exist.

You might want to turn off the reporting of Notices perhaps? It is not uncommon to do so. Should be possible in the php ini file although i suppose your host would have to do it for you.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Debra Reed
Member
Free Members
sp_UserOfflineSmall Offline
Jan 29, 2014 - 11:03 am

I am getting the same warnings (and lots of them):

[28-Jan-2014 01:34:39 UTC] PHP Warning:  mysql_ping() [<a href='function.mysql-ping'>function.mysql-ping</a>]: Access denied for user 'root'@'localhost' (using password: NO) in .../wp-content/plugins/simple-press/sp-api/sp-api-error.php on line 79
[28-Jan-2014 01:34:39 UTC] PHP Warning:  mysql_ping() [<a href='function.mysql-ping'>function.mysql-ping</a>]: A link to the server could not be established in .../wp-content/plugins/simple-press/sp-api/sp-api-error.php on line 79

I have sent your previous comments to our host to see what he says.  We have VPS Cloud hosting but are experiencing other issues as well with WP ... random 404 and 500 errors that cannot be tracked via the server error log.  Not sure these ping warnings are related to these 404/500 errors, but trying to track down all problems in case.

Just wanted to chime in since this is the exact topic I came looking for today.

Thanks.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 29, 2014 - 12:36 pm

It could prove very useful to hear what your host has to say so please do come back on this.

You could try commenting out the mysql_ping() calls in that file to see what happens. I am still thinking you may then get a lot of 'MySQL gone away' entries although that depends on why it is failing in the first place. Let's see what comes back from the host on this first.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Debra Reed
Member
Free Members
sp_UserOfflineSmall Offline
Jan 30, 2014 - 1:32 pm

Developers are monitoring our server for the other noted issues with random 404/500 errors.  I will report back when I have more info.  Thank you.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 30, 2014 - 3:12 pm

Please do. We will be here...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Debra Reed
Member
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2014 - 9:41 pm

My host replied with,

"Access denied for user 'root'@'localhost' (using password: NO)"
Your script should not be trying to access the database as root but as the database user and that with the password."

I have no idea how to make this fix. Appreciate any help you can provide from this point.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2014 - 11:12 pm

the script they are referring to would be wp...  wp controls the accesses to the db...  do you have your wp config file set up to try to use root user for mysql???  it should not...  you should have a mysql user set up for giving to wp for mysql access...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 9, 2014 - 2:19 am

Well it wouldn't be from a WP script directly if it is the mysql_ping() call. But... mysql_ping() uses the current database connection which - as Mr Papa rightly points out - is whatever you have in your wp-config.php file. This should not be set up for the 'root' user.

If the current connection as dictated by the wp-config.php is NOT using the 'root' user then this begs the question why does mysql_ping() think it is? I suggests that something else is opening a connection as 'root' thus making it current. And that makes absolutely no sense whatsoever and still, I believe, needs to be addressed by your host support which clearly has not really understood the situation.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Debra Reed
Member
Free Members
sp_UserOfflineSmall Offline
Feb 9, 2014 - 6:35 pm

Thanks for your responses. 

wp-config.php is setup for my normal WP database user. 

My host says I require too much expert support from him, and I am moving soon to managed WP hosting.  Before I ask him and get the "hire an expert" response, do you think setting up cPanel automatic backups could cause this issue you described ... "something else is opening a connection as 'root' thus making it current"?  Host set up cPanel automatic backups same day as this error began, so thought maybe there could be a connection.

Also, do not know if this is related to "link to server" issue, but soon after installing Simple: Press I also get lots of these warnings, "PHP Warning:  mysql_error(): 19 is not a valid MySQL-Link resource in /.../wp-includes/wp-db.php on line 1212".

Definitely not pointing a finger at SP, because just before installing SP host "expanded the cloud and moved us to new and better datacenter".  It's been one problem after another ever since.  So I am not sure what the true culprit is.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 9, 2014 - 7:39 pm

its possible...  afraid I dont know if cpanel by default uses the root user or a separate mysql user...  certainly worth a question to the host...

even if you dont move to managed hosting (is this shared hosting?), seems like a change would be in order, if you 'ask too many questions'...  lol, sorry, would wonder about the host... ;)

the additional mysql error is likely for same thing - mysql server going away...

its certainly possible sp is using more mysql than they like (not a general issue of course), but we certainly dont access the db as root... like any other plugin we just use the wp connection info...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620