Title: Fresh install cannot create package
Last modified: January 31, 2024

---

# Fresh install cannot create package

 *  Resolved [Steven Hairston (he/him)](https://wordpress.org/support/users/stevenhairston/)
 * (@stevenhairston)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fresh-install-cannot-create-package/)
 * Hello,
 * I have a fresh install of WordPress. FRESH. Then I installed Duplicator (the 
   free one). Then I clicked to create my first Duplicator package. After a few 
   moments it produced an error. Now it is eternally stuck at “**Building Package**
   20.0%” (in green). How can I use this “Duplicator” plugin to easily migrate my
   WordPress install? The error log is below. Also please don’t use insults or name
   calling. Thank you!
 *     ```wp-block-code
       ********************************************************************************
       DUPLICATOR-LITE PACKAGE-LOG: ████████
       NOTICE: Do ████████ post to public sites ████████ forums 
       ********************************************************************************
       VERSION:	1.5.8
       WORDPRESS:	6.4.3
       PHP INFO:	8.3.2 | SAPI: fpm-fcgi
       SERVER:		nginx/1.24.0 
       PHP TIME LIMIT: (0) no time limit imposed 
       PHP MAX MEMORY: 4294967296 (128M default) 
       MEMORY STACK: 36.5MB
       [CTRL DUP ARCIVE] PACKAGE AS NEW ID 1 SAVED | STATUS:0
       [DUP ARCHIVE] BUILDING DATABASE
   
       ********************************************************************************
       DATABASE:
       ********************************************************************************
       BUILD MODE:   MYSQLDUMP
       MYSQLTIMEOUT: 5000
       MYSQLDUMP:    Is Supported
       [PHP ERR][WARN] MSG:Undefined array key "file" [CODE:2|FILE:/srv/████████/wp-content/plugins/duplicator/classes/class.logging.php|LINE:326]
       DUP_Handler::shutdown, DUP_Handler::error, DUP_Log::error, DUP_Log::getStack, DUP_Handler::error, DUP_Handler::getMessage
       [PHP ERR][ISSUE] MSG:basename(): Passing null to parameter #1 ($path) of type string is deprecated [CODE:8192|FILE:/srv/████████/wp-content/plugins/duplicator/classes/class.logging.php|LINE:326]
       DUP_Handler::shutdown, DUP_Handler::error, DUP_Log::error, DUP_Log::getStack, basename, DUP_Handler::error, DUP_Handler::getMessage
       [PHP ERR][WARN] MSG:Undefined array key "line" [CODE:2|FILE:/srv/████████/wp-content/plugins/duplicator/classes/class.logging.php|LINE:326]
       DUP_Handler::shutdown, DUP_Handler::error, DUP_Log::error, DUP_Log::getStack, DUP_Handler::error, DUP_Handler::getMessage
   
       ==================================================================================
       DUPLICATOR ERROR
       Please try again! If the error persists see the Duplicator 'Help' menu.
       ---------------------------------------------------------------------------------
       MESSAGE:
       	[PHP ERR][FATAL] MSG:Uncaught Error: Undefined constant "DB_PASSWORD" in /srv/████████/wp-content/plugins/duplicator/classes/package/class.pack.database.php:482
       Stack trace:
       #0 /srv/████████/wp-content/plugins/duplicator/classes/package/class.pack.database.php(230): DUP_Database->mysqlDump()
       #1 /srv/████████/wp-content/plugins/duplicator/classes/package/class.pack.php(1305): DUP_Database->build()
       #2 /srv/████████/wp-content/plugins/duplicator/ctrls/ctrl.package.php(170): DUP_Package->runDupArchiveBuild()
       #3 /srv/████████/wp-includes/class-wp-hook.php(324): duplicator_duparchive_package_build()
       #4 /srv/████████/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
       #5 /srv/████████/wp-includes/plugin.php(517): WP_Hook->do_action()
       #6 /srv/████████/wp-admin/admin-ajax.php(188): do_action()
       #7 {main}
         thrown [CODE:1|FILE:/srv/████████/wp-content/plugins/duplicator/classes/package/class.pack.database.php|LINE:482]
       DUP_Handler::shutdown, DUP_Handler::error, DUP_Handler::getMessage
       TRACE:
       	 1. class.logging.php : error (445)
       	 2. class.logging.php : error (555)
       	 3.  : shutdown ()
       ==================================================================================
       ```
   
 * Also please note that the words above say “Do post to public sites forums”
   Please
   assist, thank you!

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

 *  Plugin Support [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * (@mohammedeisa)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fresh-install-cannot-create-package/#post-17388910)
 * Hi [@stevenhairston](https://wordpress.org/support/users/stevenhairston/),
 * Thanks for reaching out to us.
 * Please try the following to fix this issue:
   – On your website admin dashboard–
   Go to Duplicator > Settings > Packages > Basic Settings– Select PHP Code in SQL
   Mode setting– Also, please try to increase the allocated memory to your website.
 * If this doesn’t help, we will need to investigate this issue, please contact 
   us through this form [https://duplicator.com/contact/?form=1](https://duplicator.com/contact/?form=1)
   and we will do our best to help you.
 * Thanks!
 *  Thread Starter [Steven Hairston (he/him)](https://wordpress.org/support/users/stevenhairston/)
 * (@stevenhairston)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fresh-install-cannot-create-package/#post-17388936)
 * Thanks for your quick response, and switching it to “PHP Code” worked!
 * And thank you again, your suggestion to increase allocated memory fixed another
   plugin that you probably had no part in that wasn’t working and wasn’t giving
   me any useful error logs.
    -  This reply was modified 2 years, 4 months ago by [Steven Hairston (he/him)](https://wordpress.org/support/users/stevenhairston/).
 *  Plugin Support [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * (@mohammedeisa)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fresh-install-cannot-create-package/#post-17394833)
 * Hi [@stevenhairston](https://wordpress.org/support/users/stevenhairston/),
 * I’m glad that your issue has been resolved and I appreciate that you shared the
   solution here.
 * Please don’t hesitate to contact us if you have any questions. We are happy to
   help.
 * Thanks!

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

The topic ‘Fresh install cannot 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [mohammedeisa](https://wordpress.org/support/users/mohammedeisa/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/fresh-install-cannot-create-package/#post-17394833)
 * Status: resolved