Support » Plugin: Media Cleaner » Maximum execution time error

  • Resolved hungrycactus

    (@hungrycactus)


    Hi — I have a Raspberry Pi 3 (latest Raspbian on Buster, WordPress latest 5.2.2, PHP 7.3, very small WordPress site (<100 posts)). First time using this plugin and running into this error in the Apache/PHP logs:

    Fatal error: Maximum execution time of 1500+2 seconds exceeded (terminated) in /var/www/html/wp-content/plugins/media-cleaner/core.php on line 254

    Which the code does this:

    // PDF
    preg_match_all( “/((https?:\/\/)?[^\\&\#\[\] \”\?]+\.pdf)/”, $html, $res );

    I have tried the instructions here: https://meowapps.com/media-cleaner-debug-issues/ but to no avail. Has anyone ever gotten this plugin to work on the Raspberry Pi 3? Much appreciated!

    • This topic was modified 7 months, 3 weeks ago by hungrycactus.
Viewing 1 replies (of 1 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hello,

    Your maximum execution code is very short, and you are running a system that can be rather big for a Raspberry Pi 3. You will need to dig into everything in order to optimize all the processes at their maximum. Media Cleaner is already quite well optimized, so the only solution I see would be to modify the maximum execution time and also unload the plugins you don’t really need during the scan.

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