Solid security email: Invalid JSON
-
I received emails from all my sites saying:
An error occurred while running the scheduled site scan
Error Message: Invalid JSON.
Error Code: Invalid JSON
-
Hello Charles,
Glad you reached out here! Can you please try the following steps and let me know if the next scheduled scan fails:
First: Clear all caches
This step would help in clearing the caching layers that may interfere with the Site Scan data, as the logs seem to indicate that the result was from May 19th.
The first thing to clear is the server cache, which is usually available in your hosting panel. If you’re unsure where to find it, reaching out to your host is the fastest way to have it cleared.
Next, clear the site page cache from your caching plugin (if you have it installed in your site). And if you’re using CDN like Cloudflare, clear the cache there, too.
Second: Clear all site transients
This step would help remove all expired WordPress transients that may hold on to older data. You can use a plugin like the Transients Manager to clear transients.
Third: Reset Solid Security’s Scheduler
This step would help reset Solid Security’s scheduled tasks.
To proceed, enable the advanced Debug menu by following this guide: https://solidwp.com/documentation/security/how-it-works/all-about-solid-securitys-debug-mode/
After enabling the Debug mode, go to your Security > Debug page and find the Scheduler table. Find the “Reset” button, click it, and wait for the next scheduled scan to run.
Please let me know how it goes after following these steps.
Hi,
I got the same error.
But if I manually start a scan, I don’t see this error. Am I supposed to get this error from the manual site scan?
Also I got this error by email, but I don’t see it in the logs of solid security.
Thanks
Thanks. I have done those steps on one of my sites. Let’s see.
I just want to let you know that I am getting the same error on several client sites.
After doing those steps, I have since received another email, but the error is different today:
- An error occurred while running the scheduled site scan
- Error Message: Unable to determine if the scan target is allowed: Missing scan URL.
- Error Code:
site_verification_failed.missing_url
And if I try to run a scan, it goes through the motions (wp core, google safe browsing etc), and show me the visual ticks, but there’s nothing in Site Scan results (0).
I checked to see if this was a version issue, but it’s happening on older versions 9.3.6 as well as sites with 9.3.8. Some sites made by me, and others with completely different stacks made by others.
Hello Charles,
All issues related to the Site Scan should be resolved now.
For context, we hit different errors related to the Site Scanner this week:
1)invalid_jsonerror last Monday (May 19th) due to a network issue, but it is now resolved according to our logs.2)
site_verification_failed.missing_urlerror today, which is due to a configuration update that caused the Authorization header (which the Site Scanner needs) to not make it to the application. This is resolved now, too. To confirm, please run a manual scan on your site and confirm that it’s successful via Security > Logs page.3) Ongoing
invalid_jsonerror emails, which contain outdated results showing the May 19th scan result. We believe this is a case of stuck/cached data and you taking the steps mentioned previously should resolve this now.Please let me know how it goes with the scans and whether you’re still getting the errors.
We’re still getting the “Invalid JSON” error emails, despite having cleared our caches and resetting the Scheduler on the debug page.
Our manual scans work.
Updating to the new version of the plugin on all my sites appears to have fixed this.
The topic ‘Solid security email: Invalid JSON’ is closed to new replies.