Support » Plugin: Backup, Restore and Migrate WordPress Sites With the XCloner Plugin » PHP Warning: No such file or directory

  • Resolved Oleksandr

    (@track77)


    Plugin works but logs contain next messages

    PHP Warning: rmdir(/wp-content/backup//.xcloner-1x5r5): No such file or directory in /wp-content/plugins/xcloner-backup-and-restore/vendor/watchfulli/xcloner-core/src/Xcloner_File_System.php on line 518

    Thanks for your support

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support jimiero

    (@jimiero)

    Hello,

    Did you managed to sort this issue? Have you checked and made sure you have latest XCloner version installed?

    Because rmdir NEVER throws an exception, you’ll have to replace:

    try {
        rmdir($this->xcloner_settings->get_xcloner_tmp_path());
    } catch (Exception $e) {
        //silent continue
    }

    with:

    if (file_exists($this->xcloner_settings->get_xcloner_tmp_path()))
        rmdir($this->xcloner_settings->get_xcloner_tmp_path());

    which will check if directory exists. This does not check if directory is empty, but I believe that it was emptied (if exists) by preceding code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning: No such file or directory’ is closed to new replies.