Skip to content

Repeated MySQL “Commands out of sync” errors triggered by Optimole during shutdown hook #1014

@kushh23

Description

@kushh23

Description

A user reported that he is seeing repeated MySQL errors caused by the Optimole plugin on a WordPress site.
The error message is:

Commands out of sync; you can’t run this command now

These errors occur on every page load and are triggered during the WordPress shutdown hook.

Because this happens on every request, the site is generating hundreds of identical MySQL errors, which is filling up the error logs.

This does not appear to be related to traffic spikes or custom code. The issue seems to originate from Optimole’s attachment caching logic running during shutdown.

Can someone please investigate this ?


Reported here - https://secure.helpscout.net/conversation/3184145555/480416

error_log.log

Metadata

Metadata

Labels

customer reportIndicates the request came from a customer.questionCan be used to identify issues that are asking a question about the code or how to use the project.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions