Duplicator - WordPress Migration Plugin

Erreur avec Duplicator – WordPress Migration Plugin

Vous rencontrez peut être ce type d'erreur avec 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

Ou :

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.

Ou :

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

Ou :

[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] => 

Ou :

[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]

Ou :

[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]

Ou :

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

Ou :

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

Ou :

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

Ou :

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

Ou :

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()

Ou :

Uncaught Error: Call to undefined function shell_exec() in /wp-content/plugins/duplicator/classes/utilities/class.u.php:428

Ou :

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

Ou :

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

Ou :

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

Ou :

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

Il existe de multiples solutions pour essayer de faire en sorte que cela fonctionne.

Mises à jour

La première chose à faire si vous êtes bloqué avec Duplicator – WordPress Migration Plugin est de vous assurer que tout WordPress est à jour. Cela comprend :

  • Le WordPress
  • Les Extensions
  • Le Thème

Une fois toutes les mises à jour effectuées, vérifiez si ces erreurs apparaissent.

Vérifier Duplicator – WordPress Migration Plugin

Parfois, il suffit de désactiver l'extension et de le réactiver juste après pour qu'il fonctionne à nouveau.

Si cela ne fonctionne pas, il se peut que votre extension Duplicator – WordPress Migration Plugin soit corrompu. Pour vous assurer que ce n'est pas votre cas, vous pouvez retélécharger l'extension (ou le thème livré avec l'extension) et essayer de l'installer à nouveau.

Essayer un autre thème

Êtes-vous sûr que voter problème est lié à Duplicator – WordPress Migration Plugin? Peut-être pas.

L’erreur que vous rencontrée peut être causée par une autre extension, qui ne serait pas compatible. Cela peut se produire par exemple lorsque vous utilisez un plugin de cache, un plugin de sécurité ou simplement un plugin mal développé.

Désactivez tous les extensions. Testez de nouveau votre site voir si l’erreur apparait toujours. Si cette dernière est toujours là, le problème n'est pas lié à la compatibilité des extensions. S'il n'y a plus d'erreur, réactivez chaque extension une par une, et à chaque fois, vérifiez si l'erreur survient. Le but est de cibler l'extension concerné.

Essayer un autre thème

L'erreur peut provenir d’un problème avec votre thème.

Si ce n'est pas déjà fait, vous pouvez installer et activer le thème WordPress par défaut, comme Twenty Twenty-Two. Vérifiez une nouvelle fois si erreur est déclenchée, et agissez en fonction afin d’être sûr que votre thème WordPress n'en est pas la cause.

Permaliens & htaccess

Si cela ne fonctionne toujours pas, vous avez peut-être un problème avec vos permaliens WordPress et/ou votre fichier htaccess. Vous devriez aller sur votre tableau de bord WordPress, et ré-enregistrer les permaliens depuis la page des permaliens (dans les réglages).

Contacter le développeur

Si toutes ces solutions ne fonctionnent pas, nous vous conseillons de contacter le développeur de l'extension.

Vous avez sinon peut-être trouvé un nouveau bug, ou un problème spécifique. Dans ces cas, nous vous invitons à vous diriger vers le développeur de l'extension, soit sur le forum de l'extension, soit par mail, soit sur leur site spécifique s’il existe avec leur propre support.

Solutions alternatives

Si le développeur ne répond pas, ou si votre problème est très urgent, vous pouvez vous orienter sur une alternative à ce extension.

Il y a des milliers d'extension sur le répertoire officiel, et beaucoup d'autres en dehors. Vous devriez essayer de les trouver et de les tester !

Si le problème est très spécifique, et que l'extension n'a pas pu être remplacée, nous vous conseillons de contacter un expert.
C'est le meilleur moyen pour parvenir à trouver une solution pour votre site web afin qu’il ne soit plus cassé et pour vous assurer que tout est en ordre.