Hello – I wanted to open up a discussion about this issue, and get suggestions for troubleshooting it.
Whenever I restore a full copy of my site to a test site, I get the “Invalid database query” message popup whenever I access a Simple-press page (see attached). Everything seems to work fine, but this message keeps popping up. My concern is that if I ever have to restore a backup to the production site to resolve a problem, it might introduce this popup message to the production site, so I’d like to figure out what is causing it.
I have a well-running forum that is soft-launched (limited users, light traffic, no SEO etc). Vaultpress makes hourly backups of the site. Twice I have used it to restore the latest backup to an alternate site, with a different TLD. The destination of the restore is a different server with the same web host, running the same underlying server OS etc.
After both restores, simple-press seemed to work fine and all features/function etc worked without problems. However, there is a large message “Invalid database query” that appears whenever you access the forum page, and any time to take an action in the forums. This popup never happens on the source site where the backup was made.
The first time I did the restore and had this problem, the test site might not have been perfectly “clean”, i.e. before the restore there may have been themes & plugins experimented with, then deleted, but folder and tables might have been left behind.
The second time I did the restore, I completely uninstalled the site, deleted all folders/files, dropped the database/tables, and even deleted the leftover site folder via FTP. I then created a fresh new WordPress site from scratch, new database prefix etc. On the fresh WP site I deleted the extra default themes, Hello Dolly & Akismet.
Vaultpress requires that both the source and target be running the same version of WordPress, as it doesn’t copy the core WordPress files & tables. Both the source and target were running WP 4.6.1. The restore ran normally with no apparent errors. A few other details:
– I am not using any form of caching or caching plugin
– My web host does not do any underlying caching
– I did not have the “CSS/JS Combined Caching” enabled at any time before or after the restore on either site
– I updated the forum permalink immediately after the restore
– Message still pops up if all WP plugins except SP are deactivated & twenty-sixteen theme activated
– No apparent errors in the logs either after the restore or that correspond to the popup message timing
Again, aside from the popup message, the forum and all its features, as well as the rest of the site seem to be working fine.
This most recent restore was of the latest release of SP, and the first restore with this problem was with the immediately prior release of SP.
Please let me know what you think I could check to see what might be causing this.
Thanks!
Kelly

