• Resolved jonathanblakoe

    (@jonathanblakoe)


    Hello,

    With the latest version of WordPress we recently started to have these warnings: “Warning: Error while sending QUERY packet. PID=XXXXX in wp-db.php on line 2030”.

    We have contacted our host and they tried increasing the max_allowed_packet to 1024MB, but the warnings are still there.

    Does anybody know why this might be happening, or if there is an easy way of finding the root cause?

    Thanks!
    Jonathan

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    WordPress itself shouldn’t need a packet size that large, so likely a plugin or theme function is triggering it.

    Please attempt to disable all plugins, and switch to the default Twenty Twenty theme. If the problem goes away, enable them one by one to identify the source of the problem.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Dion

    (@diondesigns)

    Ask your hosting company if they have imposed any sort of limit on the number of queries or the amount of DB data you can transfer in a specific period of time. You will receive that error if you are hitting such a limit.

    Most free hosts and low-end shared hosts impose some form of database limiting, but it can happen with any type of shared hosting if the company oversells their servers.

    Thread Starter jonathanblakoe

    (@jonathanblakoe)

    Thanks for your answers!

    It seems the issue has now been fixed.

    For anyone interested, we were able to track down the source of the problem to the “Download Monitor” plugin, with which our website was serving large downloads through PHP and apparently causing the warnings. After enabling the “redirect to download” option in Download Monitor, the server is now redirected to the downloadable files instead of serving them through PHP, and we don’t get any more warnings.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error while sending QUERY packet’ is closed to new replies.