Server errors with Defender Pro

On several websites we are running your plug-in Defender Pro. Almost all domains are giving many errors within the server error logs

Some even ask so much data on the server that the website will go offline. We’ve asked our IT department for help and they said that the website is running a cron, but that cron isn’t cancelled.

[php7:warn] [pid *****] [client *******] PHP Warning: Error while sending QUERY packet. PID=***** in /************/public_html/wp-includes/wp-db.php on line 2030

[php7:error] [pid *****] [client *******] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /************/public_html/wp-includes/theme-compat/embed.php:13nStack trace:n#0 {main}n thrown in /*********/public_html/wp-includes/theme-compat/embed.php on line 13, referrer: https://***********.*u/wp-includes/theme-compat/embed.php

  • Dmytro Borovyk
    • Staff

    Hello Jacky,

    Thank you for contacting us!

    ...the website is running a cron, but that cron isn’t cancelled.

    I was able to reproduce the same behavior earlier on my test site, so the cron issue is already in the queue for our devs to troubleshoot. We’ll be posting an update here as soon as we have more info.

    [php7:error] [pid *****] [client *******] PHP Fatal error: Uncaught Error: Call to undefined function get_header() in /************/public_html/wp-includes/theme-compat/embed.php:13nStack trace:n#0 {main}n thrown in /*********/public_html/wp-includes/theme-compat/embed.php

    Although this one is actually the error message, it can be safely ignored. That’s a trick used by Defender in order to fire an error message and get information about the error reporting on the server.

    [php7:warn] [pid *****] [client *******] PHP Warning: Error while sending QUERY packet. PID=***** in /************/public_html/wp-includes/wp-db.php on line 2030

    And this warning is a symptom of the database server running out of resources due to the hosting limits. I believe this was the reason the sites could go offline.

    I’ve implemented the latest plugin patch on your site to optimize server load during the file scan. Please check if that helped solving the issue on your current site.

    I’m attaching the patch file so that you could apply this update on your other sites. You can extract and upload the files from app.zip to /wp-content/plugins/wp-defender directory, replacing the current files on your server.

    Best Regards,
    Dmytro