Title: Database error in log
Last modified: May 31, 2021

---

# Database error in log

 *  Resolved [arbremojo](https://wordpress.org/support/users/arbremojo/)
 * (@arbremojo)
 * [5 years ago](https://wordpress.org/support/topic/database-error-in-log/)
 * Hi,
 * I’m getting this error in my error log file a lot of times, could I know why 
   and would it be possible to fix it?
 * _`WordPress database error Commands out of sync; you can't run this command now
   for query SELECT option\_value FROM tw1tpg\_options WHERE option\_name = 'ewww\
   _image\_optimizer\_webp\_force' LIMIT 1 made by shutdown\_action\_hook, do\_action('
   shutdown'), WP\_Hook->do\_action, WP\_Hook->apply\_filters, wp\_ob\_end\_flush\
   _all, ob\_end\_flush, ewww\_image\_optimizer\_filter\_page\_output, apply\_filters('
   ewww\_image\_optimizer\_filter\_page\_output'), WP\_Hook->apply\_filters, EIO\
   _Alt\_Webp->filter\_page\_output, EIO\_Alt\_Webp->validate\_image\_url, EIO\_Base-
   >get\_option, ewww\_image\_optimizer\_get\_option, get\_option`_
 * Best regards,
 * Clara.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [5 years ago](https://wordpress.org/support/topic/database-error-in-log/#post-14507968)
 * From what I can tell (after a quick search and perusing other threads with the
   same error), that means one of your other plugins is starting a query and not
   finishing it, which essentially locks the db so a SELECT query cannot be run.
   You’ll want to do the standard troubleshooting steps:
    1. Disable all plugins
   except EWWW IO, and activate a default Twenty-something theme. 2. Ensure the 
   error stops happening: run both a wp-admin request and an uncached front-end 
   request to verify. 3. Enable plugins one by one, and check each time to see if
   the error occurs. When it does, you’ve found the culprit.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/ewww-image-optimizer/assets/icon-256x256.png?rev=1582276)
 * [EWWW Image Optimizer](https://wordpress.org/plugins/ewww-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ewww-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ewww-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ewww-image-optimizer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/database-error-in-log/#post-14507968)
 * Status: resolved