Title: Database error
Last modified: April 13, 2020

---

# Database error

 *  Resolved [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/database-error-308/)
 * Hi folks,
 * I recently changed theme for a site and updated it a bit.
    Since then, I’m getting
   this error every couple of days or so:
 * `WordPress database error Commands out of sync; you can't run this command now
   for query SELECT autoload FROM ajlzt_options WHERE option_name = 'rank_math_notifications'
   made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook-
   >apply_filters, MyThemeShop\Notification_Center->update_storage, delete_option`
 * I get the same sort of error for the plugin Asset Cleanup.
 * Any ideas where to look after?
 * Thanks.

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

 *  Plugin Author [Rank Math SEO](https://wordpress.org/support/users/rankmath/)
 * (@rankmath)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/database-error-308/#post-12672303)
 * Hello [@dsl225](https://wordpress.org/support/users/dsl225/)
 * Thank you for contacting the support.
 * Please update to the latest version of the plugin and then clear the cache.
 * After clearing the cache, please click on these buttons in Status & Tools section:
   
   [https://i.rankmath.com/gdJpkK](https://i.rankmath.com/gdJpkK)
 * Please let us know if that helps.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/database-error-308/#post-12675805)
 * Many thanks for this, good to know those settings exist.
    Looks better already
   but prefer to wait a bit and see what happens. Marking this as resolved for the
   time being and will get back here if it happens again.
 *  Plugin Author [Rank Math SEO](https://wordpress.org/support/users/rankmath/)
 * (@rankmath)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/database-error-308/#post-12675874)
 * Hello [@dsl225](https://wordpress.org/support/users/dsl225/)
 * Sure, please.
 * We are here if you need any assistance. Thank you.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/database-error-308/#post-12818348)
 * Hi folks,
 * I thought I would let you know that I’m still getting the same every now and 
   then.
 * `WordPress database error Commands out of sync; you can't run this command now
   for query SELECT autoload FROM ajlzt_options WHERE option_name = 'rank_math_notifications'
   made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook-
   >apply_filters, MyThemeShop\Notification_Center->update_storage, delete_option`
 * I did the recommended actions above but still getting the same error every 2-
   3 days.
    Everything runs normally though and I can’t see any issues caused by
   this.
 *  Plugin Author [Rank Math SEO](https://wordpress.org/support/users/rankmath/)
 * (@rankmath)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/database-error-308/#post-12838992)
 * Hello [@dsl225](https://wordpress.org/support/users/dsl225/)
 * Upon researching further online, we found that few other users have reported 
   such issues with WPML, Shield, etc. plugins.
 * **The most common reasons for this error are**
    **1.** Cache plugin – You can
   check if the error is logged again by clearing/disabling the cache plugin and
   also on the server-side.
 * **2.** Memory getting exhausted – If the log file is showing memory-related errors
   then this could be the reason
 * 3. A theme or a plugin is running a query and not completing it – You can check
   if another plugin is not causing this problem by creating a staging site with
   only Rank Math plugin activated.
 * Following are the links of the issues where other users have reported this error:
   
   [https://wordpress.org/support/topic/wordpress-database-error-commands-out-of-sync/](https://wordpress.org/support/topic/wordpress-database-error-commands-out-of-sync/)
   [https://premium.wpmudev.org/forums/topic/branda-wordpress-database-error-commands-out-of-sync-you-cant-run-this-command-now-for-qu/](https://premium.wpmudev.org/forums/topic/branda-wordpress-database-error-commands-out-of-sync-you-cant-run-this-command-now-for-qu/)
   [https://wpml.org/forums/topic/database-error-commands-out-of-sync/](https://wpml.org/forums/topic/database-error-commands-out-of-sync/)
 * Hope that helps. Thank you.
 *  Thread Starter [John](https://wordpress.org/support/users/dsl225/)
 * (@dsl225)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/database-error-308/#post-12839180)
 * Thanks for investigating this.
    I’ll check this further then.

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

The topic ‘Database error’ is closed to new replies.

 * ![](https://ps.w.org/seo-by-rank-math/assets/icon.svg?rev=3438330)
 * [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings](https://wordpress.org/plugins/seo-by-rank-math/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-by-rank-math/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-by-rank-math/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-by-rank-math/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-by-rank-math/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-by-rank-math/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [John](https://wordpress.org/support/users/dsl225/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/database-error-308/#post-12839180)
 * Status: resolved