• Resolved WilliamKF

    (@williamkf)


    Tried to do a restore and it failed:

    Plugins

    Unpacking backup… (backup_2014-06-14-1600_Example_8a8a34a42471-plugins.zip, 4.4 Mb)
    Moving old data out of the way…
    Moving unpacked backup into place…

    Warning: copy(): The first argument to copy() function cannot be a directory in C:\Apache24\htdocs\Example\wp-admin\includes\class-wp-filesystem-direct.php on line 217
    Error message: Could not move the files into place. Check your file permissions.
    Error data: C:/Apache24/htdocs/Example/wp-content/upgrade/5e5a1a13/plugins/updraftplus -> C:/Apache24/htdocs/Example/wp-content/plugins/updraftplus
    Restore failed…

    It appears the updraft plus plugin was not restored due to the copy command failing when passed a directory.

    https://ww.wp.xz.cn/plugins/updraftplus/

Viewing 1 replies (of 1 total)
  • Hi,

    The error from WordPress is misleading, because the “move” function inside WordPress will, upon failure, try a copy-followed-by-delete; which also then usually fails, and gives the confusing error about copying.

    The true cause is file permissions. You need to adjust your file permissions so that your webserver/PHP is able to write to wp-content and all folders inside wp-content.

    Best wishes,
    David

Viewing 1 replies (of 1 total)

The topic ‘Error during restore’ is closed to new replies.