You may have this kind of error with Duplicator – WordPress Migration Plugin :
Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /wp-content/plugins/duplicator/classes/utilities/class.u.php:644
Stack trace:
#0 /wp-content/plugins/duplicator/classes/utilities/class.u.php(644): fwrite()
#1 /wp-content/plugins/duplicator/classes/class.plugin.upgrade.php(65): DUP_Util::setupBackupDirHtaccess()
#2 /wp-content/plugins/duplicator/classes/class.plugin.upgrade.php(46): DUP_LITE_Plugin_Upgrade::secureLocalStorageDirectory()
#3 /wp-content/plugins/duplicator/classes/class.plugin.upgrade.php(19): DUP_LITE_Plugin_Upgrade::updateInstallation()
#4 /wp-includes/class-wp-hook.php(307): DUP_LITE_Plugin_Upgrade::onActivationAction()
#5 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#6 /wp-includes/plugin.php(476): WP_Hook->do_action()
#7 /wp-admin/plugins.php(194): do_action()
#8 {main} thrown in /wp-content/plugins/duplicator/classes/utilities/class.u.php on line 644
Or :
Fatal error: Uncaught Error: Call to undefined method DUP_UI_Notice::init() in /wp-content/plugins/duplicator/duplicator.php:291 Stack trace: #0 /wp-settings.php(371): include_once() #1 /wp-config.php(77): require_once(‘/var/www/vhosts…’) #2 /wp-load.php(37): require_once(‘/var/www/vhosts…’) #3 /wp-admin/admin.php(34): require_once(‘/var/www/vhosts…’) #4 /wp-admin/index.php(10): require_once(‘/var/www/vhosts…’) #5 {main} thrown in /wp-content/plugins/duplicator/duplicator.php on line 291
There has been a critical error on your website. Please check your site admin email inbox for instructions.
Or :
Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /wp-content/plugins/duplicator/classes/utilities/class.u.php:644 Stack trace:
#0 /wp-content/plugins/duplicator/classes/utilities/class.u.php(644): fwrite()
#1 /wp-content/plugins/duplicator/classes/class.plugin.upgrade.php(65): DUP_Util::setupBackupDirHtaccess()
#2 /wp-content/plugins/duplicator/classes/class.plugin.upgrade.php(46): DUP_LITE_Plugin_Upgrade::secureLocalStorageDirectory()
#3 /wp-content/plugins/duplicator/classes/class.plugin.upgrade.php(19): DUP_LITE_Plugin_Upgrade::updateInstallation()
#4 /wp-content/plugins/duplicator/duplicator-main.php(80): DUP_LITE_Plugin_Upgrade::onActivationAction()
#5 /wp-includes/class-wp-hook.php(307): duplicator_update()
#6 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#7 /wp-includes/plugin.php(476): WP_Hook->do_action()
#8 /wp-settings.php(461): do_action()
#9 /wp-config.php(80): require_once('')
#10 /wp-load.php(50): require_once('')
#11 /wp-admin/admin.php(34): require_once('')
#12 /wp-admin/index.php(10): require_once('')
#13 {main} thrown in /wp-content/plugins/duplicator/classes/utilities/class.u.php on line 644
Or :
[PHP ERR][FATAL] MSG:Allowed memory size of 134217728 bytes exhausted (tried to allocate 31461376 bytes) [CODE:1|FILE:/wp-includes/functions.php|LINE:3577]
#0 DUP_Handler::getMessage(1, Allowed memory size of 134217728 bytes exhausted (tried to allocate 31461376 bytes), /wp-includes/functions.php, 3577) called at [/wp-content/plugins/duplicator/classes/class.logging.php:415]
#1 DUP_Handler::error(1, Allowed memory size of 134217728 bytes exhausted (tried to allocate 31461376 bytes), /wp-includes/functions.php, 3577) called at [/wp-content/plugins/duplicator/classes/class.logging.php:528]
#2 DUP_Handler::shutdown()
)) called at [/wp-content/plugins/duplicator/classes/class.logging.php:264]
#2 DUP_Log::Error([PHP ERR][FATAL] MSG:Allowed memory size of 134217728 bytes exhausted (tried to allocate 31461376 bytes) [CODE:1|FILE:/wp-includes/functions.php|LINE:3577]
#0 DUP_Handler::getMessage(1, Allowed memory size of 134217728 bytes exhausted (tried to allocate 31461376 bytes), /wp-includes/functions.php, 3577) called at [/wp-content/plugins/duplicator/classes/class.logging.php:415]
#1 DUP_Handler::error(1, Allowed memory size of 134217728 bytes exhausted (tried to allocate 31461376 bytes), /wp-includes/functions.php, 3577) called at [/wp-content/plugins/duplicator/classes/class.logging.php:528]
#2 DUP_Handler::shutdown()
) called at [/wp-content/plugins/duplicator/classes/class.logging.php:416]
#3 DUP_Handler::error(1, Allowed memory size of 134217728 bytes exhausted (tried to allocate 31461376 bytes), /wp-includes/functions.php, 3577) called at [/wp-content/plugins/duplicator/classes/class.logging.php:528]
#4 DUP_Handler::shutdown()
11-09-15:55:59|DUP|1184923e|DUP_Log::Info | [PHP ERR][WARN] MSG:fwrite() expects parameter 1 to be resource, null given [CODE:2|FILE:/wp-content/plugins/duplicator/classes/class.logging.php|LINE:269]
#0 DUP_Handler::getMessage(2, fwrite() expects parameter 1 to be resource, null given, /wp-content/plugins/duplicator/classes/class.logging.php, 269) called at [/wp-content/plugins/duplicator/classes/class.logging.php:421]
#1 DUP_Handler::error(2, fwrite() expects parameter 1 to be resource, null given, /wp-content/plugins/duplicator/classes/class.logging.php, 269, Array ([msg] => [PHP ERR][FATAL] MSG:Allowed memory size of 134217728 bytes exhausted (tried to allocate 31461376 bytes) [CODE:1|FILE:/wp-includes/functions.php|LINE:3577]
#0 DUP_Handler::getMessage(1, Allowed memory size of 134217728 bytes exhausted (tried to allocate 31461376 bytes), /wp-includes/functions.php, 3577) called at [/wp-content/plugins/duplicator/classes/class.logging.php:415]
#1 DUP_Handler::error(1, Allowed memory size of 134217728 bytes exhausted (tried to allocate 31461376 bytes), /wp-includes/functions.php, 3577) called at [/wp-content/plugins/duplicator/classes/class.logging.php:528]
#2 DUP_Handler::shutdown()
,[behavior] => 2,[source] => 1. class.logging.php : Error (416)
2. class.logging.php : error (528)
3. : shutdown ()
,[err_msg] =>
Or :
[PHP ERR][FATAL] MSG:Uncaught TypeError: decoct(): Argument #1 ($num) must be of type int, string given in /installer.php:607
Stack trace:
#0 //installer.php(607): decoct('u+rwx')
#1 /installer.php(583): DUPX_Bootstrap >setPermsOnItem('/var/www/vhosts...', 'u+rwx')
#2 /installer.php(566): DUPX_Bootstrap->setPerms('/var/www/vhosts...', 'u+rwx', false)
#3 /installer.php(497): DUPX_Bootstrap->fixInstallerPerms('')
#4 /installer.php(1608): DUPX_Bootstrap->run()
#5 {main}
thrown [CODE:1|FILE:/installer.php|LINE:607]
Or :
[PHP ERR][FATAL] MSG:Uncaught Error: Call to undefined function mb_strimwidth() in /classes/class.engine.php:357 Stack trace: #0 /ctrls/ctrl.s3.php(222): DUPX_UpdateEngine::load(Object(mysqli), Array, Array, 0) #1 /main.installer.php(248): require_once(‘/var/www/’) #2 {main} thrown [CODE:1|FILE:/classes/class.engine.php|LINE:357]
Or :
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 77824 bytes) in /wp-admin/includes/dashboard.php on line 641
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 137 bytes) in /wp-content/plugins/duplicator/classes/utility.php on line 169
Or :
Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() in \dup-installer\classes\config\class.boot.php:17 Stack trace: #0 main.installer.php(52): require_once() #1 {main} thrown in \dup-installer\classes\config\class.boot.php on line 17
Or :
Warning: require_once(/wp-content/plugins/duplicator/lib/snaplib/class.snaplib.u.util.php): failed to open stream: No such file or directory in /wp-content/plugins/duplicator/lib/snaplib/snaplib.all.php on line 23
Fatal error: require_once(): Failed opening required ‘/wp-content/plugins/duplicator/lib/snaplib/class.snaplib.u.util.php’ (include_path=’.:/opt/cpanel/ea-php71/root/usr/share/pear’) in /wp-content/plugins/duplicator/lib/snaplib/snaplib.all.php on line 23
Or :
Error: Uncaught Error: Call to a member function render() on null in /dup-installer/classes/utilities/template/class.u.template.manager.php:111
Stack trace:
#0 /dup-installer/classes/utilities/template/class.u.template.manager.php(141): DUPX_Template->render()
#1 /dup-installer/main.installer.php(45): dupxTplRender()
#2 {main}
thrown
Type: 1
File: /dup-installer/classes/utilities/template/class.u.template.manager.php
Line: 111
Or :
The site is experiencing technical difficulties.[PHP ERR][NOTICE] MSG:ob_flush(): failed to flush buffer. No buffer to flush [CODE:8|FILE:/wp-content/plugins/duplicator/ctrls/ctrl.package.php|LINE:44]
#0 DUP_Handler::getMessage(8, ob_flush(): failed to flush buffer. No buffer to flush, /wp-content/plugins/duplicator/ctrls/ctrl.package.php, 44) called at [/wp-content/plugins/duplicator/classes/class.logging.php:409]
#1 DUP_Handler::error(8, ob_flush(): failed to flush buffer. No buffer to flush, /wp-content/plugins/duplicator/ctrls/ctrl.package.php, 44, Array ())
#2 ob_flush() called at [/wp-content/plugins/duplicator/ctrls/ctrl.package.php:44]
#3 duplicator_package_scan()
#4 call_user_func_array(duplicator_package_scan, Array ([0] => )) called at [/wp-includes/class-wp-hook.php:286]
#5 WP_Hook->apply_filters(, Array ([0] => )) called at [/wp-includes/class-wp-hook.php:310]
#6 WP_Hook->do_action(Array ([0] => )) called at [/wp-includes/plugin.php:465]
#7 do_action(wp_ajax_duplicator_package_scan) called at [/wp-admin/admin-ajax.php:173]
[PHP ERR][FATAL] MSG:Allowed memory size of 134217728 bytes exhausted (tried to allocate 20828322 bytes) [CODE:1|FILE:/wp-includes/functions.php|LINE:3582]
#0 DUP_Handler::getMessage(1, Allowed memory size of 134217728 bytes exhausted (tried to allocate 20828322 bytes), /wp-includes/functions.php, 3582) called at [/wp-content/plugins/duplicator/classes/class.logging.php:409]
#1 DUP_Handler::error(1, Allowed memory size of 134217728 bytes exhausted (tried to allocate 20828322 bytes), /wp-includes/functions.php, 3582) called at [/wp-content/plugins/duplicator/classes/class.logging.php:528]
#2 DUP_Handler::shutdown()
Or :
Uncaught Error: Call to undefined function shell_exec() in /wp-content/plugins/duplicator/classes/utilities/class.u.php:428
Or :
Fatal error: Uncaught Error: Call to undefined function disk_free_space() in /dup-installer/views/view.s1.base.php:77 Stack trace: #0 /dup-installer/main.installer.php(373): require_once() #1 {main} thrown in /dup-installer/views/view.s1.base.php on line 77
Fatal error: Uncaught Exception: [PHP ERR][FATAL] MSG:Uncaught Error: Call to undefined function disk_free_space() in /dup-installer/views/view.s1.base.php:77 Stack trace: #0 /dup-installer/main.installer.php(373): require_once() #1 {main} thrown [CODE:1|FILE:/dup-installer/views/view.s1.base.php|LINE:77] in /dup-installer/classes/class.logging.php:200 Stack trace: #0 /dup-installer/classes/class.logging.php(335): DUPX_Log::error() #1 /dup-installer/classes/class.logging.php(449): DUPX_Handler::error() #2 [internal function]: DUPX_Handler::shutdown() #3 {main} thrown in /dup-installer/classes/class.logging.php on line 200
Or :
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘duplicator_global_scripts’ not found or invalid function name in /wp-includes/class-wp-hook.php on line 303
Or :
Warning: require(/wp-includes/version.php): failed to open stream: No such file or directory in /wp-settings.php on line 33
Warning: require(/wp-includes/version.php): failed to open stream: No such file or directory in /wp-settings.php on line 33
Fatal error: require(): Failed opening required ‘/wp-includes/version.php’ (include_path=’.:/opt/alt/php72/usr/share/pear’) in /wp-settings.php on line 33
Or :
Warning: Use of undefined constant ‘WP_TEMP_DIR’ – assumed ‘‘WP_TEMP_DIR’’ (this will throw an Error in a future version of PHP) in /wp-config.php on line 20
Warning: Use of undefined constant ‘wp – assumed ‘‘wp’ (this will throw an Error in a future version of PHP) in /wp-config.php on line 20
Warning: Use of undefined constant content – assumed ‘content’ (this will throw an Error in a future version of PHP) in /wp-config.php on line 20
Warning: Use of undefined constant ’ – assumed ‘’’ (this will throw an Error in a future version of PHP) in /wp-config.php on line 20
Warning: A non-numeric value encountered in /wp-config.php on line 20
Warning: A non-numeric value encountered in /wp-config.php on line 20
Warning: Division by zero in /wp-config.php on line 20
Warning: A non-numeric value encountered in /wp-config.php on line 20
There are multiple solutions to try to make it work.
Updates
The first thing to do if you are stuck with Duplicator – WordPress Migration Plugin is to ensure that all your WordPress is up to date. You should check your :
- WordPress
- Plugins
- Theme
Once all these updates are done, check back if these errors appear.
Check Duplicator – WordPress Migration Plugin
Sometimes, you just need to disable the plugin, and enable it just after to make it work again.
If it doesn’t work, your Duplicator – WordPress Migration Plugin plugin may be corrupted. To ensure that it’s not your case, you have to re-download the plugin (or the theme delivered with the plugin) and try to install it again.
Check others plugins
Are you sure that the error is related to Duplicator – WordPress Migration Plugin? Maybe not.
It could be related to another plugin that is not compatible. It could happen when you use a cache plugin, a security plugin, or simply a poorly developed plugin.
Disable all plugins. Then, check for your error, if the error is still there, the problem is not related to plugins compatibility. If there are no more errors, then enable every plugin one by one and check for the error. The goal is to target the plugin involved.
Try another theme
The error can be a problem with your theme.
If it’s not already done, then you should install & activate the default WordPress theme like Twenty Twenty-Two. Check for the error, and see what is happening to be sure that your WordPress theme is not the cause.
Permalinks & htaccess
If it doesn’t work, you may have a problem with your WordPress permalinks and/or your htaccess file. You should go on your WordPress dashboard, and re-saving permalinks from the permalinks page.
Contact the developer
If all these solutions don’t work, we advise you to contact the plugin developer.
You may have found a new bug, or a specific issue. You should get in touch with the developer either on the WordPress plugin forum, either by mail, either on their specific website with their own support.
Alternative solutions
If the developer doesn’t reply, or your problem is very urgent, then you should try an alternative to the plugin.
There are thousands of plugins on the official directory, and many others outside. You should try to find and test them!
If the issue is very specific, and the plugin could not be replaced, we advise you to contact an expert.
This is the best way to ensure you're not going to break your site anymore.