Support » Plugin: Smush Image Compression and Optimization » Bulk – script timeout

  • Resolved TiagoGouvea



    I have more than 25000 files in my library. Over admin, Library menu > Smush.It, I pressed “Run all my images through WP right now” and some minutes after that I’ve got:

    Fatal error: Maximum execution time of 30 seconds exceeded in /home/phormar/public_html/wp-includes/link-template.php on line 2332

    What can I do?


Viewing 2 replies - 1 through 2 (of 2 total)
  • David


    WPMU DEV Support Staff

    Hi @tiagogouvea,

    I hope you’re doing great today! 25,000 is quite a lot of images to smush and I think you may need to increase the timeout for that to work.

    Could you try adding the following in your wp-config.php file?


    You could add that after the following:

    define('WP_DEBUG', false);

    And you hopefully that will allow more time to handle it. Could you let me know how that works for you?


    Hey there.

    We haven’t heard from you in awhile, so I just wanted to check in to make sure all was good.

    This thread was marked resolved, but please, if you still need help then just respond and open it back up. We can then take it from there. 🙂

    Hope you have a fantastic day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bulk – script timeout’ is closed to new replies.