• Hi, I am unable to use your plugin. This is the first time I am trying to use it. There are two issues, probably related:
    1. When starting the scan through WP admin, I get the Error: SyntaxError: Unexpected token s in JSON at position 0. Response: started error. The scan runs for a long time and produces no results whatsoever.
    2. When starting the scan using the WP CLI command, there is a fatal PHP logged:
    PHP Fatal error: Uncaught exception 'PHP_CodeSniffer_Exception' with message 'Source file C:wampwwwtestwp-contentpluginstypes/ does not exist' in C:\wamp\www\test\wp-content\plugins\php-compatibility-checker\vendor\squizlabs\php_codesniffer\CodeSniffer.php:1723

    You can see that the path to the source file is very weird, without slashes in between, “C:wampwwwtestwp-contentpluginstypes/” which explains why it cannot find the needed file.

    The command also produces no results whatsoever. It just finishes momentarily without any report being printed, just “Testing compatibility with PHP 7.0”.

    I used “wp phpcompat 7.0 –scan:active”.

    OS: Windows 10
    WP version: 4.6.1
    WAMP:
    – PHP Version: 5.5.12
    – Apache Version: 2.4.9
    – 5.6.17
    PHP Compatibility Checker: 1.2.0
    WP CLI: 0.24.1

    Thank you!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal PHP error when using WP CLI command on Windows’ is closed to new replies.