Error 520 during File Copy
-
Hi,
I’m trying to use your plugin but so far it has failed every attempt. At first it was not liking the backup zip files generated by BackupMyWordpress plugin. It copied the database tables but a few minutes after it starts copying files it just crashes with a 520 error.
[02-10-2016 10:10:23] Copy database table: wpan_wpms_links
DB has been cloned successfully
[02-10-2016 10:10:32] File copy in progress… 0.1%[02-10-2016 10:10:37] Copy LARGE file: /home/mysite/public_html/mysubfolder/wp-content/backupwordpress-96ef43721b-backups/mysite-com-1456618720-database-2016-10-01-23-45-28.zip. Batch size: 4.08 Mb (4081543 bytes)
The first thing I noticed with the log above is that the backupwordpress* folder was actually excluded from the backup (mainly because there’s a couple of 1Gb files there), and it seems to be stalling on a small file contained on that same folder. But even with the folder unselected apparently it tried to copy it any way.
So I moved the folder out of the WordPress folder and the file copy did go on up to 93%, only to fail again. The log tail at this time states nothing useful once again:
[Sunday 2nd October 2016 : 12:16:55pm] Copy file no: 21472 Total files:21776 File: /home/mysite/public_html/mysubfolder/wp-admin/css/widgets-rtl.min.css to /home/mysite/public_html/stage1/wp-admin/css/widgets-rtl.min.css
[Sunday 2nd October 2016 : 12:16:55pm] Copy file no: 21473 Total files:21776 File: /home/mysite/public_html/mysubfolder/wp-admin/css/install-rtl.min.css to /home/mysite/public_html/stage1/wp-admin/css/install-rtl.min.css
[Sunday 2nd October 2016 : 12:16:55pm] Batch size: 10.46 Mb (10464031 bytes). Current File: /home/mysite/public_html/mysubfolder/wp-admin/css/login.min.css
[Sunday 2nd October 2016 : 12:22:10pm] Fatal Error: This should not happen but is most often caused by other plugins. Try first the option \”Optimizer\” in WP Staging->Settings and try again. If this does not help, enable wordpress debug mode to find out which plugin is causing this: 520 error Fatal Error: This should not happen! Try first the option \”Optimizer\” in WP Staging->Settings and try again. If this does not fix it enable wordpress debug mode to find out what is causing this.Wordpress’s debug log has nothing apparently relevant in it (these lines are repeating a lot, so they’re probably warnings triggered by a plugin):
[02-Oct-2016 12:22:10 Europe/Lisbon] PHP Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the
wp_enqueue_scripts
,admin_enqueue_scripts
, orlogin_enqueue_scripts
hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/mysite/public_html/mysubfolder/wp-includes/functions.php on line 3996
[02-Oct-2016 12:22:10 Europe/Lisbon] PHP Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until thewp_enqueue_scripts
,admin_enqueue_scripts
, orlogin_enqueue_scripts
hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/mysite/public_html/mysubfolder/wp-includes/functions.php on line 3996
[02-Oct-2016 12:22:10 Europe/Lisbon] PHP Notice: get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /home/mysite/public_html/mysubfolder/wp-includes/functions.php on line 3707
[02-Oct-2016 12:24:50 Europe/Lisbon] PHP Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until thewp_enqueue_scripts
,admin_enqueue_scripts
, orlogin_enqueue_scripts
hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/mysite/public_html/mysubfolder/wp-includes/functions.php on line 3996
[02-Oct-2016 12:24:50 Europe/Lisbon] PHP Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until thewp_enqueue_scripts
,admin_enqueue_scripts
, orlogin_enqueue_scripts
hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/mysite/public_html/mysubfolder/wp-includes/functions.php on line 3996
[02-Oct-2016 12:24:50 Europe/Lisbon] PHP Notice: get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /home/mysite/public_html/mysubfolder/wp-includes/functions.php on line 3707I have also tried enabling Optimizer and selecting all plugins, to the same effect. WIthin settings I have also enable the subfolder setting, considering my site is located in a subfolder, not the root.
Any suggestions?
Side note:
You mention this folder path in the Debug description “wp-content/wp-staging/logs” and it’s actually “wp-content/plugins/wp-staging/logs”.
- The topic ‘Error 520 during File Copy’ is closed to new replies.