Title: Php Warning
Last modified: June 3, 2019

---

# Php Warning

 *  Resolved [amgdre](https://wordpress.org/support/users/amgdre/)
 * (@amgdre)
 * [7 years ago](https://wordpress.org/support/topic/php-warning-199/)
 * Hello!
 * There are some php Warnings about Hustle in our logs. Below you can find some
   examples. It repeats a lor of times. Is there a way to solve these database/query
   problems? It’s only happen when Hustle is enabled… Thanks!
 * [03-Jun-2019 04:38:34 UTC] Deadlock found when trying to get lock; try restarting
   transaction para a consulta DELETE FROM `wp_options` WHERE `option_name` = ‘hustle_database_version’
   feita por require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘
   wp-config.php’), require_once(‘wp-settings.php’), include_once(‘/plugins/wordpress-
   popup/popover.php’), Hustle_Init->__construct, Hustle_Db->__construct, Hustle_Db-
   >_create_tables, delete_option, QM_DB->query
 * [03-Jun-2019 04:40:04 UTC] PHP Warning: Error while sending QUERY packet. PID
   =54299 in /… /public_html/wp-includes/wp-db.php on line 2007
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-199%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [7 years ago](https://wordpress.org/support/topic/php-warning-199/#post-11601610)
 * Hello [@amgdre](https://wordpress.org/support/users/amgdre/)
 * I hope you’re doing well!
 * The following error `PHP Warning: Error while sending QUERY packet.` related 
   to the total number of database requests a website can make when it’s running
   on a shared web hosting. Looks like the server you’re on has limited resources
   and can’t perform certain tasks. Please see here more info:
    [https://stackoverflow.com/questions/30753674/error-while-sending-query-packet](https://stackoverflow.com/questions/30753674/error-while-sending-query-packet)
 * Try to optimizing the database. You can clean the database with [Hummingbird](https://wordpress.org/plugins/hummingbird-performance/)
 * The erorr`Deadlock found when trying to get lock` is closely related to the above
   one. This means that two or more routines are trying to use the same database
   table at the very same time. That shouldn’t be happening as the queries should
   be “queued”. It could be caused by another plugin. Please see if all plugins 
   deactovated, besides the Hustle plugin, the error is still there. Make sure to
   clear all cache, on a site and on a server side.
 * Start activating one plugin at a time if all is well, and see when the issue 
   will occur again. Follow the steps from the flowchart:
    [https://premium.wpmudev.org/wp-content/uploads/2015/09/Support-Process-Support-Process.gif](https://premium.wpmudev.org/wp-content/uploads/2015/09/Support-Process-Support-Process.gif)
 * Let us know how it went!
 * Kind regards,
    Nastia
 *  Plugin Support [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/php-warning-199/#post-11773434)
 * Closing this topic due to recent inactivity.
    Feel free to post back any update
   or create a new topic and we’ll be glad to carry on troubleshooting. 🙂
 * Thank you,
    Dimitris

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Php Warning’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popup/assets/icon-256x256.gif?rev=3446944)
 * [Hustle - Email Marketing, Lead Generation, Optins, Popups](https://wordpress.org/plugins/wordpress-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popup/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 2 replies
 * 3 participants
 * Last reply from: [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/php-warning-199/#post-11773434)
 * Status: resolved