Support » Plugin: PHP Compatibility Checker » PHP Compatibility Checker Error Messages

  • I ran the PHP Compatibility Checker several times but some plug-ins still have this message:

    The plugin/theme was skipped as it was too large to scan before the server killed the process.

    Is it safe to update to a newer PHP version? If not, how can I resolve this problem?

    Thank you for your help.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • davidvee

    (@davidvee)

    WPEngine Employee

    Hello @lydianas. Since the plugin is performing “local linting” some plugins / themes will time out in some environments as you noted. To help avoid this we recommend you run this plugin in a local version of WP. You can check out localwp.com (free) for a quick way to create a local version of WP.

    As for your question on if your site is ready to be upgraded to the latest version of PHP, you can try to run the plugin on a local copy of WP as mentioned above, but at the end of the day this plugin only surfaces PHP linting errors which may be a problem for your site.

    You can also ask your host to load a copy of your site onto a server with a current version of PHP to test the copy to see if it works as expected. This plugin can give you clues as to things that might break, but at the end of the day you’ll still need to review / these the site manually when it’s on a server with updated PHP.

    BTW, if you’re a WP Engine or Flywheel customer, we give you a few tools to do this testing and our 24×7 support can also help you directly.

    Good luck!

    internationaltyres

    (@internationaltyres)

    So basically you are no help at all to anyone then.

    internationaltyres

    (@internationaltyres)

    You have a bug in the file wpephpcompat.php. In the function add_directory, when the path is saved to the post content it loses the back slashes so that the path to the folder is then invalid. This causes it to skip those plugins or themes with the above error.

    I have corrected it thus:

    private function add_directory( $name, $path ) {

    $path = str_replace(‘\\’, ‘/’, $path);
    $dir = array(
    ‘post_title’ => $name,
    ‘post_content’ => $path,
    ‘post_status’ => ‘publish’,
    ‘post_author’ => 1,
    ‘post_type’ => ‘wpephpcompat_jobs’,
    );

    return wp_insert_post( $dir );
    }

    A pretty brutal hack I admit but I have a fixed deadline to meet and no time to mess about. I hope this helps someone else. Have a nice day now.

    You have another issue with the plugin. I had this message posted to debug_log: [31-Jul-2020 15:09:34 UTC] Uncaught exception: Call to undefined method PHPCompatibility\PHPCSHelper::findStartOfStatement()

    Then there is a var_dump of a HUGE object to the log file! This I can’t fix as I have no idea what should be in the missing function. I downloaded this plugin directly from your plugin page. Do you think it is acceptable to release a broken plugin out into the world?

    internationaltyres

    (@internationaltyres)

    This was first reported in August 2019 here https://github.com/wpengine/phpcompat/issues/245

    This still isn’t addressed! Take the plugin down. You are embarrassing yourselves.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.