This means that the test finished, but the JSON returned from the server wasn’t valid. I’ve seen this happen when a site has errors/notices that make it into JSON. Do you have WP_DEBUG enabled? If so could you try turning it off? I’m going to look into other ways to resolve this.
Thanks for the rapido response 🙂
WP_Debug was disabled; however, I disabled all plugins except my homegrown, and lo and behold the tests completed.
I’m reactivating the rest of plugins one at a time to try and find a culprit.
Sorry for not trying this first before submitting my ticket 🙁
**update It appears that when the TablePress plugin (v1.7) is enabled this error is thrown in the Compatability Checker plugin with any of the PHP versions and “Only scan active plugins and themes” selected.
Interesting! Do you get anything in your error log with that plugin activated? Let me try to install the plugin and see if I can replicate.
Thanks for helping track this down!
This is the last entry on error in the php_error_log:
PHP 11. PHP_CodeSniffer_File->start() <path removed> /wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer.php:1861
(only TablePress and PCC enabled)
I just released a new version of the plugin (v1.1.1) that I don’t believe will resolve this issue, but the alert should provide more information. Could you either provide the text or take a screenshot of the alert with the error?
Not the same person as before but I have the same problem.
SyntaxError: Unexpected token s in JSON at position 0
I have the same result
Windows running WAMP 64 bit
PHP 5.6.16 and 7.0.9 (same result on both versions)