{"id":16272243,"date":"2022-12-08T15:01:20","date_gmt":"2022-12-08T15:01:20","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wordpress-database-error-commands-out-of-sync-16\/"},"modified":"2022-12-08T15:01:20","modified_gmt":"2022-12-08T15:01:20","slug":"wordpress-database-error-commands-out-of-sync-16","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wordpress-database-error-commands-out-of-sync-16\/","title":{"rendered":"WordPress database error Commands out of sync"},"content":{"rendered":"<p>Hello,<br \/>\nIn debug file there are lots of records:<\/p>\n<pre><code>WordPress database error Commands out of sync; you can&#039;t run this command now for query SELECT *, CASE \nWHEN &lt;code&gt;type&lt;\/code&gt; = 3 THEN 0\nWHEN &lt;code&gt;type&lt;\/code&gt; = 4 THEN 1\nWHEN &lt;code&gt;type&lt;\/code&gt; = 7 THEN 2\nWHEN &lt;code&gt;type&lt;\/code&gt; = 6 THEN 3\nWHEN &lt;code&gt;type&lt;\/code&gt; = 5 THEN 4\nWHEN &lt;code&gt;type&lt;\/code&gt; = 9 THEN 5\nWHEN &lt;code&gt;type&lt;\/code&gt; = 8 THEN 6\nWHEN &lt;code&gt;type&lt;\/code&gt; = 2 THEN 7\nWHEN &lt;code&gt;type&lt;\/code&gt; = 1 THEN 8\nELSE 9999\nEND AS &lt;code&gt;typeSort&lt;\/code&gt;, CASE \nWHEN &lt;code&gt;type&lt;\/code&gt; = 3 THEN &lt;code&gt;parameters&lt;\/code&gt;\nWHEN &lt;code&gt;type&lt;\/code&gt; = 4 THEN &lt;code&gt;parameters&lt;\/code&gt;\nWHEN &lt;code&gt;type&lt;\/code&gt; = 1 THEN &lt;code&gt;IP&lt;\/code&gt;\nWHEN &lt;code&gt;type&lt;\/code&gt; = 9 THEN &lt;code&gt;IP&lt;\/code&gt;\nWHEN &lt;code&gt;type&lt;\/code&gt; = 5 THEN &lt;code&gt;IP&lt;\/code&gt;\nWHEN &lt;code&gt;type&lt;\/code&gt; = 6 THEN &lt;code&gt;IP&lt;\/code&gt;\nWHEN &lt;code&gt;type&lt;\/code&gt; = 7 THEN &lt;code&gt;IP&lt;\/code&gt;\nWHEN &lt;code&gt;type&lt;\/code&gt; = 2 THEN &lt;code&gt;IP&lt;\/code&gt;\nWHEN &lt;code&gt;type&lt;\/code&gt; = 8 THEN &lt;code&gt;IP&lt;\/code&gt;\nELSE 9999\nEND AS &lt;code&gt;detailSort&lt;\/code&gt;\n FROM &lt;code&gt;wp_wfblocks7&lt;\/code&gt; WHERE &lt;code&gt;type&lt;\/code&gt; IN (4) AND (&lt;code&gt;expiration&lt;\/code&gt; = 0 OR &lt;code&gt;expiration&lt;\/code&gt; &gt; UNIX_TIMESTAMP()) ORDER BY &lt;code&gt;typeSort&lt;\/code&gt; ASC, &lt;code&gt;id&lt;\/code&gt; DESC made by wfShutdownRegistry-&gt;handleShutdown, wfShutdownFunction-&gt;invoke, wfWAFIPBlocksController::synchronizeConfigSettings, wfBlock::patternBlocks, wfBlock::allBlocks<\/code><\/pre>\n<p>I have read several treads concerning similar bugs (https:\/\/wordpress.org\/support\/topic\/403-error-running-php-7-4\/) and checked with my host that there were no db problemns on their side.<\/p>\n","protected":false},"template":"","class_list":["post-16272243","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16272243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16272243\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16272243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}