• Resolved barthat

    (@barthat)


    Recently I have noticed the following errors in my logs. I saw your comments elsewhere re plugins not affecting server connections but just in case this helps with your code development I thought I would include it.

    [Mon Sep 02 04:33:01 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): A link to the server could not be established in /home/username/public_html/example.com/wp-content/plugins/updraftplus/updraftplus.php on line 434
    [Mon Sep 02 04:33:01 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): Access denied for user 'UNKNOWN_USER'@'localhost' (using password: NO) in /home/username/public_html/example.com/wp-content/plugins/updraftplus/updraftplus.php on line 434
    [Mon Sep 02 04:32:43 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): A link to the server could not be established in /home/username/public_html/example.com/wp-content/plugins/updraftplus/backup.php on line 961
    [Mon Sep 02 04:32:43 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): Access denied for user 'username'@'localhost' (using password: NO) in /home/username/public_html/example.com/wp-content/plugins/updraftplus/backup.php on line 961
    [Mon Sep 02 04:32:36 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): A link to the server could not be established in /home/username/public_html/example.com/wp-content/plugins/updraftplus/updraftplus.php on line 434
    [Mon Sep 02 04:32:36 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): Access denied for user 'username'@'localhost' (using password: NO) in /home/username/public_html/example.com/wp-content/plugins/updraftplus/updraftplus.php on line 434

    If you need any more info let me know.

    I’ll mark this post as not a support issue.

    Thanks for a great plugin.

    http://wordpress.org/plugins/updraftplus/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Hi,

    Thanks for the report. Those lines come from where UpdraftPlus tries to read your MySQL server version for logging purposes (which then helps for debugging) – which it has to do outside of the normal WordPress API. Your setup must be a little unusual if it produces the warning. How does your site connect to the database?

    I’ve also tweaked the code so that future versions won’t produce any warning (as it’s a speculative function call to try to work out the environment if possible, it’s better to be silent if it doesn’t work).

    David

    Thread Starter barthat

    (@barthat)

    Yes, now that you say that I think it probably is unusual. I am using pdo_mysql via the plugin WP DB Driver http://wordpress.org/plugins/wp-db-driver/

    I hope this helps.

    Plugin Author David Anderson

    (@davidanderson)

    Thanks for that. I’m quite pleased to know that UD works with the next-gen WordPress DB driver… it uses some trickery to speed things up, but we tried to make it compatible in case those tricks didn’t work in future. If a few spurious warnings (now suppressed in the next version!) are all that’s not working so far, then that’s good news!

    David

    Thread Starter barthat

    (@barthat)

    Yes, A wonderful achievement – your plugin is great and I really like detailed logs it produces. I could see in the logs that despite the ‘errors’ the backup process was working smoothly.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘mysql – a link to the server could not be established’ is closed to new replies.