• Resolved patbell101

    (@patbell101)


    I am trying to retrieve some lost pages and am going back to updraft backups and trying to restore to a localwp on my own machine. I keep getting backup failed with hosts of No such file or directory (line 382, C:\Users\pat\Local Sites\northern-exposure-photographers-group\app\public\wp-admin\includes\class-wp-filesystem-direct.php). The file is in the zip file and I am restoring so what dows this mean?

Viewing 1 replies (of 1 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Hi,

    In the first instance, you can exclude the “Others” section of the backup. It’s mostly standard wp files that are included in every install and cache (which which will be purged after the restore in most caching plugins)

    If you do want to restore the “Others”, please try the following;

    1- Ensure the file and directory permiyou ssions are correct on your server. The typical permissions for WordPress files should be set to 644, and for directories, they should be 755. You can modify these permissions using an FTP client like FileZilla or through your hosting control panel’s File Manager.

    2- Make sure you are using a recent PHP version supported by WordPress (ideally PHP 8.0 or higher). Many issues can be resolved by simply updating to the latest PHP version. 

    3- Check if there are old or redundant files related to a previously deleted or inactive plugin/theme. If you find any, delete the unused files to prevent any conflicts or errors.

    4- Open the file mentioned in the error message (class-wp-filesystem-direct.php) and navigate to line 173. You may notice a function call such as chmod, which attempts to change the file permissions. Examine the file path given to this function to identify where the issue is originating.

Viewing 1 replies (of 1 total)

The topic ‘Cannot restore to localWP’ is closed to new replies.