Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Alejandro 1 year, 9 months ago.

Author Posts
August 28, 2023 at 7:09 am #14297507

Mukti Mistry

We migrated from WPEngine to Hostinger Cloud, and after some time, we encountered an issue where the website took too much time to load. Upon checking the error logs, we found that there were database errors related to WPML. As a result, we reverted back to WPEngine, where everything is functioning properly. I would like to understand the significance of this database error and how we can go about resolving it.

Error : WordPress database error Commands out of sync; you can't run this command now for query - see attached image

error2.png
error1.png
August 28, 2023 at 10:39 am #14299567

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hello!

I'll try to help you out while a supporter takes on your case.

Please check this thread out: https://stackoverflow.com/questions/3632075/why-is-mysqli-giving-a-commands-out-of-sync-error

Out of sync errors are not really "WPML errors" but i can see why these problems could happen when WPML was making some database calls.

There are times when the site needs to make a lot of database calls, maybe just for a moment (when you update a plugin, or there are new things on the site, for example).

As you could see in the thread, this error happens when new queries are sent when old ones haven't finished yet. This could mean so many things:

- The hosting has a restriction on queries per second which makes the queries behave slower than what it needs. you could try your hosting about query limits, database restrictions, etc.

- The site has some cache and is trying to run queries of things it had already processed. flushing the cache on the server and the site would help here.

- There are simply too many queries that your server can't handle at the moment

- The server could be overloaded or your plan doesn't have enough resources to handle all these queries.

This could also be temporary, however i suspect this issue could actually disappear with our beta version, since String Translation could be making excessive calls at the moment, which is an issue that is happening to some specific sites and that we fixed in our new version of WPML and String Translation.

You can try to take a site backup and then give it a try: https://wpml.org/faq/how-to-install-beta-and-development-versions-of-wpml/

Let us know how it goes.

The topic ‘[Closed] I was getting error : wordpress database error command out of sync’ is closed to new replies.