• I am getting the below error for multiple plugins while testing my website compatibility for PHP 7:

    PHP Fatal error: Maximum execution time of 55 seconds

    Some of the plugins are:
    1. Ninja Forms
    2. W3TC
    3. Wordfence
    4. Yoast

    I changed the max_execution_time in all necessary files without any luck overriding that error:
    1. user.ini
    2. wp-config.php
    3. global php.ini
    4. .htacess

    Finally, I found a script on PHP compatibility GitHub for custom timeout, but this time the scan stuck on Ninja Forms plugin for 30 min. So I removed that custom timeout script and rerun the scan again to overcome the scan hang.

    //Plugin Name: PHP Compatibility Custom Timeout
    function custom_timeout( $timeout ) {
    return 0;
    }
    add_filter( ‘wpephpcompat_scan_timeout’, ‘custom_timeout’, 10 );

    Any help found be appreciated

    Regards

    • This topic was modified 7 years, 2 months ago by nizarbekai.

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

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jason Stallings

    (@octalmage)

    Hi there, the timeout is expected but the WP Cron should continue scanning and just mark the plugin as skipped. Does scanning not pick back up after the timeout?

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Fatal error: Maximum execution time of 55 seconds’ is closed to new replies.