Support » Plugin: PHP Compatibility Checker » JSON error

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jason Stallings

    (@octalmage)

    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.

    Thread Starter sokratesagogo

    (@sokratesagogo)

    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.

    Plugin Author Jason Stallings

    (@octalmage)

    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!

    Thread Starter sokratesagogo

    (@sokratesagogo)

    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)

    Plugin Author Jason Stallings

    (@octalmage)

    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?

    Thanks!

    Thread Starter sokratesagogo

    (@sokratesagogo)

    Will do 🙂

    Hi,

    Not the same person as before but I have the same problem.

    SyntaxError: Unexpected token s in JSON at position 0

    Screenshot

    I have the same result

    Windows running WAMP 64 bit
    Apache 2.4.17
    PHP 5.6.16 and 7.0.9 (same result on both versions)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘JSON error’ is closed to new replies.