Hi @bjf2000, thanks for your message.
The forum guidelines require us to use one topic per user for an issue/request, so older cases that receive new replies from different users can’t be tracked easily as there’s no detailed ticketing system behind the scenes. www.ads-software.com provide the forums as community support, but we still endeavour to do as best we can for our free customers by being present here ourselves.
When you see a “Commands out of sync” database error in your logs there are often other plugins getting the same error as well.?The issue happens because some plugins, including Wordfence, use PHP’s “shutdown handler” to run some code after the rest of a database request has finished. But if the database connection is lost during a request, this shutdown code still runs and triggers reconnecting to the database, but the database isn’t in a state where queries can be run, if the database is unavailable due to shutting down or if a query limitation set by the hosting provider is reached for example. The ‘commands out of sync’ errors are not the actual cause of a problem, but rather side-effects of the database getting disconnected. When this error is logged, it’s because something else already failed, but it isn’t visible in PHP’s error log.
If you have WP-CLI you can run a query like
wp db query ‘\s’
…which should show you the database server’s uptime. The same can be done on the mysql command line by just typing?\s. In a couple cases reported to us where users had the access to do this, they did find that the database server had recently restarted when they saw these errors. Generally, your hosting provider will need to look into the problem with the database, though with the few sites where we’ve seen this problem, we have not heard back about the host’s solution if they were able to fix it. If your host is willing to send us logs, including?mysql/mariadb logs?and the?syslog, we may be able to help determine the cause.
In your diagnostic report, there is a cURL error 7 message under our IPv6 check, but this is totally normal to see when Cloudflare assigns an IPv6 address to your site even if your host doesn’t give you an IPv6 address.
Thanks,
Peter.