Title: Fatal PHP error when using WP CLI command on Windows
Last modified: September 18, 2016

---

# Fatal PHP error when using WP CLI command on Windows

 *  [Dario Jazbec Hrvatin](https://wordpress.org/support/users/helika/)
 * (@helika)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/fatal-php-error-when-using-wp-cli-command-on-windows/)
 * 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)

 *  [oliver_rub](https://wordpress.org/support/users/oliver_rub/)
 * (@oliver_rub)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/fatal-php-error-when-using-wp-cli-command-on-windows/#post-8215119)
 * I get the same JSON problem, also on a Windows Server using the bitnami stack.

Viewing 1 replies (of 1 total)

The topic ‘Fatal PHP error when using WP CLI command on Windows’ is closed to new
replies.

 * ![](https://ps.w.org/php-compatibility-checker/assets/icon-256x256.png?rev=1446087)
 * [PHP Compatibility Checker](https://wordpress.org/plugins/php-compatibility-checker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-compatibility-checker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-compatibility-checker/)
 * [Active Topics](https://wordpress.org/support/plugin/php-compatibility-checker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-compatibility-checker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-compatibility-checker/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [oliver_rub](https://wordpress.org/support/users/oliver_rub/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/fatal-php-error-when-using-wp-cli-command-on-windows/#post-8215119)
 * Status: not resolved