-
Notifications
You must be signed in to change notification settings - Fork 39
Directory path is missing slashes, causing uncaught exception and scan failure. #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Having exact the same issue.
Is this still the same issue as #128 reported over one and a half years ago? |
Almost forgot: If anyone is interested phpcompat/src/wpephpcompat.php Lines 464 to 474 in dc72e59
by private function add_directory( $name, $path ) {
$tpath = str_replace("\\","/", $path);
$dir = array(
'post_title' => $name,
'post_content' => $tpath,
'post_status' => 'publish',
'post_author' => 1,
'post_type' => 'wpephpcompat_jobs',
);
return wp_insert_post( $dir );
} The file is located |
Same problem. Will try the recommended fix. |
Based on fix from @nuessgens at wpengine#201
Works on live HTTP, but not on my localhost; missing slashes are causing an uncaught exception. The plugin skipped everything as too large to be scanned, even a 10 line dummy plugin. WP-cron is working fine. PHP ini values are more than generous. Error log shows the following (et al) for each plugin scanned. Never got around to doing the themes; killed the process after about a half hour and getting through less than 10 plugins. See the error at the end below... all the slashes are missing from the plugin path. I'm on Windows 10, XAMPP, PHP 7.2.3, Compatibility Checker 1.4.6.
[php7:notice] WPE PHP Compatibility: startScan: , referer: https://localhost/wp/wp-admin/admin-ajax.php?action=wpephpcompat_start_test
[php7:notice] WPE PHP Compatibility: timeout: 60, referer: https://localhost/wp/wp-admin/admin-ajax.php?action=wpephpcompat_start_test
[php7:notice] WPE PHP Compatibility: lock: 1, referer: https://localhost/wp/wp-admin/admin-ajax.php?action=wpephpcompat_start_test
[php7:notice] WPE PHP Compatibility: scan status: , referer: https://localhost/wp/wp-admin/admin-ajax.php?action=wpephpcompat_start_test
[php7:notice] WPE PHP Compatibility: Generating directory list., referer: https://localhost/wp/wp-admin/admin-ajax.php?action=wpephpcompat_start_test
[php7:notice] WPE PHP Compatibility: 15 plugins left to process., referer: https://localhost/wp/wp-admin/admin-ajax.php?action=wpephpcompat_start_test
[php7:notice] WPE PHP Compatibility: Processing: AAA Master, referer: https://localhost/wp/wp-admin/admin-ajax.php?action=wpephpcompat_start_test
[php7:notice] WPE PHP Compatibility: Attempted scan count: 1, referer: https://localhost/wp/wp-admin/admin-ajax.php?action=wpephpcompat_start_test
[php7:error] Uncaught PHP_CodeSniffer_Exception: Source file C:xampphtdocswpwp-contentpluginsaaa-master/ does not exist in.....
The text was updated successfully, but these errors were encountered: