• Resolved infolotnicze

    (@infolotnicze)


    Hello, since a while I get a PHP warning, and I think it was just after WordPress update to 4.5:

    [12-Apr-2016 22:27:14 UTC] PHP Warning:  Error while sending QUERY packet. PID=24491 in xxx/wp-includes/wp-db.php on line 1803
    [13-Apr-2016 22:27:58 UTC] PHP Warning:  Error while sending QUERY packet. PID=16626 in xxxx/wp-includes/wp-db.php on line 1803
    [14-Apr-2016 22:24:37 UTC] PHP Warning:  Error while sending QUERY packet. PID=8890 in xxx/wp-includes/wp-db.php on line 1803
    [15-Apr-2016 22:28:59 UTC] PHP Warning:  Error while sending QUERY packet. PID=702 in xxx/wp-includes/wp-db.php on line 1803
    [16-Apr-2016 22:27:02 UTC] PHP Warning:  Error while sending QUERY packet. PID=25025 in xxx/wp-includes/wp-db.php on line 1803
    [17-Apr-2016 22:30:31 UTC] PHP Warning:  Error while sending QUERY packet. PID=17226 in /xxx/wp-includes/wp-db.php on line 1803

    Could this be related to backup plugin? The hour is just about the same as the backup time.

    https://www.ads-software.com/plugins/dreamobjects/

Viewing 11 replies - 31 through 41 (of 41 total)
  • Thread Starter infolotnicze

    (@infolotnicze)

    For my VPS the pid file was some place else and it had only

    1376

    Yes, that is normal. The PID file will only have 1 entry which is the current PID #. The PID # will change regularly. So you want to check your MariaDB log file for the errors. Errors in the log file will be in this format:

    Date|Timestamp | PID # | Engine | Error or Success message
    2016-05-04 07:35:07 4136 [Note] InnoDB: Using atomics to ref count buffer pool pages

    MariaDB General Query Log
    https://mariadb.com/kb/en/mariadb/general-query-log/

    To find the path to your General Query Log look in your my.cnf file
    https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/

    @infolotnicze – Do you have the Wordfence plugin installed? If so, I believe Wordfence is causing the error/problem. See this forum thread: https://www.ads-software.com/support/topic/warning-error-while-sending-query-packet-pid82827?replies=3

    Thread Starter infolotnicze

    (@infolotnicze)

    OK – it took a while but I have finally managed to look at it and found nothing.

    I took the PID number from the PHP error and looked for it in the MariaDB log file and didn’t find such a string.

    So I have asked the VPS admins to start some sort of extensive logging to track what was that PID which was logged in the PHP error but they told me that such logging would kill the VPS in no time so the bottom line is I’m stuck and don’t know what to do. I could send you the whole log file – maybe I missed something?

    Do you have the Wordfence plugin installed?

    Thread Starter infolotnicze

    (@infolotnicze)

    No Wordfence on my side ??

    Ok then that means the same php error is occurring in the BackWPup – WordPress Backup Plugin and the DreamObjects Backups plugin. The BackWPup – WordPress Backup Plugin plugin author was assuming the php error had to do with Wordfence since he had never seen that php error before. So that means that the php error has to do with something that is common in both of these backup plugins and something that has changed in WordPress 4.5. Unfortunately, I have no idea what that would be, but will probably have some time to look into this further in a few days.

    Thread Starter infolotnicze

    (@infolotnicze)

    OK. Thanks.

    I have posted your sugestion at BackWpUp thread.

    Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I’m going to follow that thread too.

    There were some changes to how WP handled SQL (see https://www.ads-software.com/support/topic/read-this-first-wordpress-45-master-list?replies=7&view=all#post-8274461 kinda) but I didn’t think anything seruously changed in regards to Maria.

    I wish we knew WHAT was happening. Could it be that the mysql dump isnt terminating cleanly?

    Since the backups are working/completing successfully then the php error is just an after the fact nuisance error. So whatever the issue is it is going to be something silly/minor. It may have something to do with the timing/sequence of processed events. I don’t think something like mysqli_close would have anything to do with the issue since that is more of a formality/good coding practice type of thing and not an essential necessity. I’m not sure if doing suppression line by line would find the exact cause/code since to me it seems this is an overall process issue vs one particular function/line of code. At least that is what it seems like generally, but without actually shredding any code I am just taking random guesses here.

Viewing 11 replies - 31 through 41 (of 41 total)
  • The topic ‘PHP Warning’ is closed to new replies.