Title: WordPress database error
Last modified: May 10, 2022

---

# WordPress database error

 *  Resolved [Oleksandr](https://wordpress.org/support/users/track77/)
 * (@track77)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-180/)
 * Hello
    Today I received the error that occurred by the Siteground plugin
 *     ```
       WordPress database error Got a packet bigger than 'max_allowed_packet' bytes for query [.DATA.]
        WHERE <code>option_name</code> = 'siteground_data_store' made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Form_Handler::process_login, wp_signon, do_action('wp_login'), WP_Hook->do_action, WP_Hook->apply_filters, SiteGround_Data\Settings->send_data_on_login, SiteGround_Data\Settings->send_data, SiteGround_Data\Settings->store_data_locally, update_option
       ```
   
 * The problem has occurred because the data about plugins write thousand times.
   
   I can send the fix and log file to your email. Kind regards

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

 *  Plugin Support [Plamen M](https://wordpress.org/support/users/plamenm/)
 * (@plamenm)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-180/#post-15632254)
 * Hello Oleksandr,
 * Could you help us recreate the issue, please provide us with click-through instructions(
   in the format: click here, type this, click there) so that we can try to see 
   the issue in a test installation.
 * We look forward to your reply.
 * Regards,
    Plamen.M Tech Support Team SiteGround.com
 *  Thread Starter [Oleksandr](https://wordpress.org/support/users/track77/)
 * (@track77)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-180/#post-15632396)
 * Just log out and log in again.
    But this bug occurred only today and I can’t 
   reproduce it even on my test site, that almost the same as the production site.
 * I fix this by modifying the file Settings.php
 *     ```
       public function send_data_on_login() {
       // to prevent duplicate calls
           remove_action( 'wp_login', array( $this, 'send_data_on_login' ) );
           if ( false === $this->should_send_data() ) {
               return;
           }
       // to prevent duplicate calls
           update_option( $this->tracking_option, time() );
   
           $this->send_data();
       }
       ```
   
 *  Plugin Support [Plamen M](https://wordpress.org/support/users/plamenm/)
 * (@plamenm)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-180/#post-15632426)
 * Thank you for the update, Oleksandr,
 * Our plugin developers are aware of this particular issue. A fix is on its way
   in the coming updates of the plugin. Make sure to keep the plugin always updated
   with its latest versions.
 * Regards,
    Plamen.M Tech Support Team SiteGround.com

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

The topic ‘WordPress database error’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Plamen M](https://wordpress.org/support/users/plamenm/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/wordpress-database-error-180/#post-15632426)
 * Status: resolved