Title: Errors when trying to create package
Last modified: August 21, 2016

---

# Errors when trying to create package

 *  Resolved [Mark Smallman](https://wordpress.org/support/users/marks99/)
 * (@marks99)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/errors-when-trying-to-create-package/)
 * The site has a few updates required, but I ALWAYS use Duplicator to create a 
   clone on my local machine to test updates, before applying to the live site, 
   however on this occasion I am not able to even get the package created. The Duplicator
   logs show nothing, but in the host log files, I see the following;
 * `scotiaheritage.co.uk [Fri Jul 26 15:08:30 2013] [error] [client XX.XX.XXX.XXX:
   XXXXX] AH01215: WordPress database error Multiple primary key defined for query
   ALTER TABLE sh_duplicator CHANGE COLUMN id id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT
   PRIMARY KEY made by require_once('wp-admin/admin.php'), require_once('wp-load.
   php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('
   plugins_loaded'), call_user_func_array, duplicator_update, duplicator_activate,
   dbDelta`
 * _The hosting company suggested – “The above error looks like the one that is 
   causing this to happen, and it appears to have been triggered by the **script
   trying to amends the structure of the database table**. Can you advise if this
   is expected behaviour and if so check with the scripts authors to see if there
   is a workround for this, as it seems to be trying to alter a table with either
   multiple primary keys or a compound primary key.”_
 * Any ideas what the problem is and how to fix it?
    Many thanks!
 * [http://wordpress.org/plugins/duplicator/](http://wordpress.org/plugins/duplicator/)

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

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/errors-when-trying-to-create-package/#post-3964617)
 * The best way to fix this issue is to completely delete the plugin and re-install
   it…
 * Hope that helps!
 *  Thread Starter [Mark Smallman](https://wordpress.org/support/users/marks99/)
 * (@marks99)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/errors-when-trying-to-create-package/#post-3964654)
 * Already tried that, and also updated to the latest Version 0.4.6
    This error 
   was recorded after being removed and re-installed.
 *  Thread Starter [Mark Smallman](https://wordpress.org/support/users/marks99/)
 * (@marks99)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/errors-when-trying-to-create-package/#post-3964655)
 * Just uninstalled, checked database and run an optimize & repair on it, then re-
   installed Duplicator and I am still getting the same problem.
 *  Thread Starter [Mark Smallman](https://wordpress.org/support/users/marks99/)
 * (@marks99)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/errors-when-trying-to-create-package/#post-3964657)
 * The latest error in the log is;
 * `THEDOMAIN.com XX.XXX.xxx.xxx - - [27/Jul/2013:11:46:13 +0100] "POST /wp-admin/
   admin-ajax.php HTTP/1.1" 500 630 "http://www.THEDOMAIN.com/wp-admin/admin.php?
   page=duplicator.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:22.0) Gecko/
   20100101 Firefox/22.0"`
 * And quite a few of these;
    `THEDOMAIN.com [Sat Jul 27 12:57:52 2013] [error] [
   client XX.XXX.xxx.xxx:XXXXX] End of script output before headers: admin-ajax.
   php`
 * Tried disabling all other plugins etc, with still no luck.
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/errors-when-trying-to-create-package/#post-3964673)
 * That is strange. The dbDelta function (the first error you mention above) is 
   a core WordPress function and I have not ever seen it return those results…
 * If you google that error “End of script output before headers: admin-ajax.php”
   there seems to be quite a few threads. My thoughts are that you may not have 
   your Apache setup correctly…
 * If you want to submit a help ticket I can take a look at your system…

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

The topic ‘Errors when trying to create package’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/errors-when-trying-to-create-package/#post-3964673)
 * Status: resolved