Support » Plugin: XCloner - Backup and Restore » Could not run restore script, sent HASH is empty!

  • Resolved John

    (@dsl225)


    Hello,

    For restoring to a remote server I uploaded the script there and I’m getting this error when connecting:

    {“status”:”404″,”statusText”:”Could not run restore script, sent HASH is empty!”,”error”:true,”message”:”Could not run restore script, sent HASH is empty!”}

    Any clues?

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Liuta Ovidiu

    (@xcloner)

    The restore script cannot be accessed directly, the script it’s an Api interface and you need to copy/paste it’s url in the restore box from where uou’vr download it, that should connect to it and allow you to run the remote restore.

    Yes, that’s exactly what I’ve done!
    I just tested from another remote server and now I get this:

    Could not run restore script, AUTH_KEY doesn’t match the sent HASH!

    Maybe the problem is the current server and not the remote?
    Will try with another site maybe, excep if you have other ideas?

    Plugin Author Liuta Ovidiu

    (@xcloner)

    The restore script can only be accessed from the place it was downloaded from, you can’t mix this between multiple sites restore.

    So if you are testing from another server, you need to download the restore script from there and use that for your restore.

    OK, I better understand now!

    When I have an existing site A and want to clone it to new site B, I have to download the script from site A and upload it to site B – right?

    And repeat this procedure every time there is a site A or B?

    Plugin Author Liuta Ovidiu

    (@xcloner)

    Yes, that’s correct!

    I restarted the whole process of downloading and uploading but still getting the same error:

    Could not access the restore script: 0 error. Please check the javascript console for more details. Are you able to see a valid JSON response of the restore script address in your browser?

    Maybe this remote server doesn’t support phar or something because I then tested at another remote from same site as before and it works.

    Plugin Author Liuta Ovidiu

    (@xcloner)

    Do you get any javascript errors in your browser when attempting to connect?

    I just checked the console and getting those (only edited the site’s urls as siteA and siteB):

    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.0.3:9

    JQMIGRATE: Migrate is installed, version 1.4.1

    admin.php?page=xcloner_restore_page:1

    Access to XMLHttpRequest at ‘http://siteB/xcloner_restore.php’ from origin ‘http:/siteA’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.0.3:4

    Cross-Origin Read Blocking (CORB) blocked cross-origin response http://siteB/xcloner/restore/xcloner_restore.php with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.
    send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.0.3:4
    ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.0.3:4
    do_ajax @ xcloner-restore-class.js?ver=4.0.4:760
    verify_restore_url @ xcloner-restore-class.js?ver=4.0.4:630
    (anonymous) @ xcloner-restore-class.js?ver=4.0.4:868
    dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.0.3:3
    r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils&ver=5.0.3:3

    Plugin Author Liuta Ovidiu

    (@xcloner)

    It seems your siteB server is blocking the Access-Control-Allow-Origin header, so the remote restore won’t work.

    In this case, i suggest installing a blank copy of wordpress with xcloner, and copy the backup archive to the new location and attempt a local restore, i would suggest to use a different table prefix when installing the new site to avoid any restore conflicts, or simply use an empty database for restore.

    Thanks, well noted, will do that.
    Anyhow, it’s only this host that seems to have this sort of issue.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Could not run restore script, sent HASH is empty!’ is closed to new replies.