Title: Error Memory Script Limit
Last modified: May 16, 2023

---

# Error Memory Script Limit

 *  Resolved [thomashartung](https://wordpress.org/support/users/thomashartung/)
 * (@thomashartung)
 * [3 years ago](https://wordpress.org/support/topic/error-memory-script-limit/)
 * Hi, i am getting the following Errors while creating a staging site. The Memory
   Limit is 1GB.
 * **From the System-Info Tab in WP-Staging**
 * PHP memory_limit: 1G
   PHP memory_limit in Bytes: 1073741824
 * WP_MEMORY_LIMIT: 1024M
   WP_MAX_MEMORY_LIMIT: 1024M
 * **Error while generating staging site**
 * 
   [INFO]-[2023/05/16 11:13:35] DB Search & Replace: Table wpstg0_posts 447 to 
   20447 records[ERROR]-[2023/05/16 11:13:36] Used Memory: 238 MB Memory Limit: 
   256 MB Max Script memory limit: 205 MB

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

 *  Plugin Contributor [fayyazfayzi](https://wordpress.org/support/users/fayyazfayzi/)
 * (@fayyazfayzi)
 * [3 years ago](https://wordpress.org/support/topic/error-memory-script-limit/#post-16741040)
 * Hi [@thomashartung](https://wordpress.org/support/users/thomashartung/) ,
 * Please reduce the memory limit to 256MB or 512MB maximum and retry. You can try
   the small server configuration if it still does not work or open a free support
   ticket by filling out [this form](https://wp-staging.com/support/#pro-support)
   so we can investigate this issue for you.
 * Cheers
 * Fayyaz
 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [3 years ago](https://wordpress.org/support/topic/error-memory-script-limit/#post-16741150)
 * [@thomashartung](https://wordpress.org/support/users/thomashartung/), even more
   important is to reduce the search & replace the query limit setting to lower 
   values.
 * Did you set it to 20.000 manually?
 * Please reduce it to 5000. If it still fails, reduce it even further.
 *  Thread Starter [thomashartung](https://wordpress.org/support/users/thomashartung/)
 * (@thomashartung)
 * [3 years ago](https://wordpress.org/support/topic/error-memory-script-limit/#post-16741185)
 * Ahh, thanks, that fixed the issue. Works now even with 1GB Memory Limit.
    -  This reply was modified 3 years ago by [thomashartung](https://wordpress.org/support/users/thomashartung/).

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

The topic ‘Error Memory Script Limit’ is closed to new replies.

 * ![](https://ps.w.org/wp-staging/assets/icon-256x256.png?rev=2972932)
 * [WP STAGING - WordPress Backup, Restore & Migration](https://wordpress.org/plugins/wp-staging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-staging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-staging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-staging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-staging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-staging/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [thomashartung](https://wordpress.org/support/users/thomashartung/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/error-memory-script-limit/#post-16741185)
 * Status: resolved