Title: Internal server error during clone
Last modified: April 27, 2018

---

# Internal server error during clone

 *  Resolved [chriswoodner](https://wordpress.org/support/users/chriswoodner/)
 * (@chriswoodner)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/internal-server-error-during-clone/)
 * Version 2.2.5
 * On step “13% – Step 2 of 4 Preparing Database Data…” I encounter the error message:
 * Something went wrong! Internal server error while processing the request! Go 
   to WP Staging > Setting and lower ‘File Copy Limit’ and ‘DB Query Limit’. Also
   set ‘CPU Load Priority to low.’ Than try again. If that does not help, open a
   support ticket.
 * I have already tried several different values for the above mentioned settings.
   Also enlarged the “WP_MEMORY_LIMIT” to 128M with no success.
 * What I see in the Debug console is a warning…
 *     ```
       {type: "warning", message: "count(): Parameter must be an array or an object that implements Countable", file: "wp-content/plugins/wptaging/apps/Backend/Modules/Jobs/Scan.php", line: 363, stack: Array(7), …}
       component:"Plugin: wp-staging"
       file:"wp-content/plugins/wp-staging/apps/Backend/Modules/Jobs/Scan.php"
       line:363
       message:"count(): Parameter must be an array or an object that implements Countable"
       stack:Array(7)
       0:"count()"
       1:"WPStaging\Backend\Modules\Jobs\Scan->handleDirectory()"
       2:"WPStaging\Backend\Modules\Jobs\Scan->directories()"
       3:"WPStaging\Backend\Modules\Jobs\Scan->initialize()"
       4:"WPStaging\Backend\Modules\Jobs\Job->__construct()"
       5:"WPStaging\Backend\Administrator->ajaxScan()"
       6:"do_action('wp_ajax_wpstg_scanning')"
       length:7
       __proto__:Array(0)
       type:"warning"
       __proto__:Object
       ```
   
 * Any hints? 🙁
 * I have sent you the debug log to your support email address. (Subject “Internal
   server error”)
    -  This topic was modified 8 years, 1 month ago by [chriswoodner](https://wordpress.org/support/users/chriswoodner/).

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

 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/internal-server-error-during-clone/#post-10227499)
 * Hi,
 * (I am writing you here again to help other people with similar issue. Please 
   keep our future communication via mail)
    ​ Ii think the max memory limit is too
   low on that server. ​ ​Try to increase it to 256MB if possible. If that does 
   not resolve the issue lower the db query limit to a very low value like 100. ​​
   Btw. If your hoster is limiting the max memory limit to 128MB or less you can
   not increase it on your own and you need to ask the hoster to do it. ​ ​You can
   check the real memory limit by checking with phpinfo() [https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page](https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page)
 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/internal-server-error-during-clone/#post-10231379)
 * I close it here as we both are already in contact via mail

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

The topic ‘Internal server error during clone’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/internal-server-error-during-clone/#post-10231379)
 * Status: resolved