• Resolved Imagesip24

    (@sip24)


    Hello,
    With each scan I get two such messages in the error_log file.
    PHP Fatal error: Maximum execution time of 55 seconds exceeded in /home2/bejoyla1/public_html/wp-content/plugins/gotmls/images/index.php on line 1075
    Errors appear at the same time from the start of testing. The first one – after 1.5 minutes from the start.
    The hosting team has already done everything possible to increase the server interval, but this does not give any result.
    For PHP, the limit is set to 1 hour, for the web server – 5 minutes, the LFD system stops processes after 20 minutes. Where 55 seconds come from is not clear.
    Is it possible to get some kind of extended scan log that would suggest ways to further search for the cause?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Imagesip24

    (@sip24)

    The only remaining assumption is that you set this execution time in the plugin, to avoid freezing of the scan. Is it possible to increase it, and how to do it?

    Thread Starter Imagesip24

    (@sip24)

    I have found some more log files named like
    fatal-errors-2025-04-21-a3d8f2…………7ac6b.log
    They full of the errors like this:
    2025-04-19T22:08:19+00:00 CRITICAL Maximum execution time of 55 seconds exceeded CONTEXT: {“error”:{“type”:1,”file”:”/home…/…../public_html/wp-content/plugins/gotmls/images/index.php”,”line”:1075},”remote-logging”:true,”backtrace”:[{“file”:”/home../…./public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php”,”line”:415,”function”:”critical”,”class”:”WC_Logger”,”type”:”->”},{“function”:”log_errors”,”class”:”WooCommerce”,”type”:”->”}]}

    Plugin Author ImageEli

    (@scheeeli)

    Yes, that 55 second timeout is set in the plugin code and for good reason. You would not want to increase that timeout limit at all and if you did it would not extend the scan at all, it would actually just slow the scan down.

    If you are interested in a more technical explanation then here is how it works. The complete scan process is started in your browser window and this parent process is responsible for overseeing the scan progress. each step in the whole scan process is carried out be a child process that is started and monitored by the parent window. I am using PHP function set_time_limit to make sure that each of these individual scan jobs does not get hung up or lost by the parent process (as might happen if I were to try to scan your whole server at once). None of these individual scan jobs should take more that 15 second and usually are done in under 5 seconds, so if any of them are actually timing out at 55 second and have not returned any response to the parent process within 60 seconds then something went wrong with that child process and that part of the job is marked as incomplete and re-queued to be attempted again at the end of the scan. Under normal conditions you should see the progress bar jump forward a little bit every few seconds, and if it hangs on one or two folders for a full minute every once in a while then it should still be ok in the end, it just might take a little longer. however, if the progress bar is only updated aver 60 second and it’s moving so slowly that it looks like it will take hours to complete then there is definitely something wrong with the server and the scan is not likely to successfully complete at all.

    Please let me know if that explanation helps at all, and certainly let me know more about your situation if you feel that the scan is not progressing as it should. A screenshot of the scan progress is usually very helpful if something doesn’t look right. You can also contact me directly if you want to provide and sensitive or personal info that you would rather not post on this public forum.

    eli AT gotmls DOT net

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Maximum execution time of 55 seconds exceeded in’ is closed to new replies.