Title: Change Timeout?
Last modified: July 31, 2024

---

# Change Timeout?

 *  Resolved [sublimese](https://wordpress.org/support/users/sublimese/)
 * (@sublimese)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/change-timeout/)
 * I am setting up a variety of galleries and for the most part am using default
   settings.
 * After creating the gallery, I use FTP to add the images into the created folder.
   I then use the “Scan folder for new images” button to have it scrape the folder
   to populate the gallery.
 * If I put several hundred images into the folder, I get the error message:
 * **Fatal error**: Maximum execution time of 30 seconds exceeded in **/srv/www/
   wordpress/wp-content/plugins/nextgen-gallery/src/DataTypes/LegacyThumbnail.php**
   on line **1240**
 * If I go back to the gallery and rescan, it will work for another 30 seconds, 
   giving that error. I can get through all the images by rescanning over and over
   until it has found all the images. Doing this does not generate thumbnails. I
   then have to go through and bulk generate thumbnails.
 * How can I increase the timeout so the gallery can properly populate itself without
   me having to do it piecemeal? Thanks!

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

 *  [Jaime Segura](https://wordpress.org/support/users/jaimeimagely/)
 * (@jaimeimagely)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/change-timeout/#post-17928239)
 * Hi [@sublimese](https://wordpress.org/support/users/sublimese/)
 * I am glad to help.
 * That is your server execution time limit. You need to ask your hosting company
   to increase it, we normally recommend to set it to at least 300. The error points
   to the function that exhausted the time limit, but it is not the one that sets
   it.
 * You can see your time limits, filesize limits, post limits, etc from your site
   health section. Go to **Tools > Site Health > Info Tab** (at the top), then click**
   Copy Site Info to Clipboard. **Paste the info in a notepad (CTRL+V or CMD +V)
   [See here](https://d.pr/i/M5xMTE)
   You can look in the wp-server section for the
   following:
 * time_limit: (at least 300)
   memory_limit: (at least 300)max_input_time: (at least
   300)upload_max_filesize: (biggest singe file you will upload)php_post_max_size:(
   biggest total payload to process)
 * I hope this helps. Let me know how it went.
 * Thanks
 *  Thread Starter [sublimese](https://wordpress.org/support/users/sublimese/)
 * (@sublimese)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/change-timeout/#post-17928320)
 * Thanks. I made those changes. Will upload a big bunch of pics in a month or so
   to test it out.
 *  [Jaime Segura](https://wordpress.org/support/users/jaimeimagely/)
 * (@jaimeimagely)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/change-timeout/#post-17948710)
 * Hi [@sublimese](https://wordpress.org/support/users/sublimese/) ,
 * I’m going to go ahead and close this thread for now. But if you’d like us to 
   assist further after your tests, please feel welcome to continue the conversation.
 * Thanks!

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

The topic ‘Change Timeout?’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [timeout](https://wordpress.org/support/topic-tag/timeout/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jaime Segura](https://wordpress.org/support/users/jaimeimagely/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/change-timeout/#post-17948710)
 * Status: resolved