Cannot set max execution time limit

Home Forums BulletProof Security Pro Cannot set max execution time limit

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39356
    Chris Moon
    Participant

    Hi,

    I’m getting a PHP error after running the setup wizard

    [30-Sep-2020 05:46:00 UTC] PHP Warning: set_time_limit(): Cannot set max execution time limit due to system policy in /customers/3/8/9/********/httpd.www/wp-content/plugins/bulletproof-security/admin/wizard/wizard.php on line 396
    [30-Sep-2020 05:48:56 UTC] PHP Warning: set_time_limit(): Cannot set max execution time limit due to system policy in /customers/3/8/9/*********/httpd.www/wp-content/plugins/bulletproof-security/admin/wizard/wizard.php on line 834

    What can I do to eliminate the this error?

    regards,
    Chris

    #39357
    AITpro Admin
    Keymaster

    Does the Setup Wizard complete successfully? If so, you can ignore this php error. Your web host has restricted using the set_time_limit() function that is used in the BPS Setup Wizard. The set_time_limit() function is used to increase the script execution time to 300 seconds to allow extra time for the Setup Wizard to complete.

    https://www.php.net/manual/en/function.set-time-limit.php

    set_time_limit — Limits the maximum execution time

    Set the number of seconds a script is allowed to run. If this is reached, the script returns a fatal error. The default limit is 30 seconds or, if it exists, the max_execution_time value defined in the php.ini.

    When called, set_time_limit() restarts the timeout counter from zero. In other words, if the timeout is the default 30 seconds, and 25 seconds into script execution a call such as set_time_limit(20) is made, the script will run for a total of 45 seconds before timing out.

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