If you don't want to pay for the PRO version of this plugin, and you want to use the "Restore from Server" functionally that was present in the version 6.77, follow the instructions below:
- Open the js file: wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/backups.min.js
- On line 1208, replace the code below:
$('.ai1wm-backup-restore').click(function (e) {
e.preventDefault();
if (!!Ai1wm.MultisiteExtensionRestore) {
var restore = new Ai1wm.MultisiteExtensionRestore($(this).data('archive'));
} else if (!!Ai1wm.UnlimitedExtensionRestore) {
var restore = new Ai1wm.UnlimitedExtensionRestore($(this).data('archive'));
} else if (!!Ai1wm.FreeExtensionRestore) {
var restore = new Ai1wm.FreeExtensionRestore($(this).data('archive'));
} else {
var restore = new Ai1wm.Restore($(this).data('archive'));
}
});
with the following code:
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-restore', function (e) {
e.preventDefault();
var modelimport = new Import();
var storage = Ai1wm.Util.random(12);
var options = Ai1wm.Util.form('#ai1wm-backups-form').concat({ name: 'storage', value: storage }).concat({ name: 'archive', value: $(this).data('archive') });
// Set global params
modelimport.setParams(options);
// Start import
modelimport.start();
});
- Go to your All-in-One WP Migration > Backups page and you should be able to use the Restore button now.
OMG,thanks and love you guys so much. The following still works in January 26th, 2024. (YES 2024!!)
"@JonGrvla sorry, English is not my first https://github.com/language... ii hope to be more clear now ;) 1 > Instal " all-in-one-wp-migration 7.72 " 2 > dont activate ! 3 > Open by FTP " all-in-one-wp-migration\lib\view\assets\javascript\ " 4 > donwload " backups.min.js " 5 > Open: " backups.min.js "
use this tools: Notepadd ++ Winmerge
go to... line 2688 to 2733
/////////// ORIGINAL 7.72 ///////////////
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-restore', function (e) {
e.preventDefault();
/* eslint-disable no-unused-vars */
}); // List file content
///////////////////////////////////////////
change by:
$('#ai1wm-backups-list').on('click', '.ai1wm-backup-restore', function (e) {
e.preventDefault();
var modelimport = new Import();
}); // List file content
//////////////// END ///////////////////
UPLAOD TO > " all-in-one-wp-migration\lib\view\assets\javascript\ "
//////////////////////////////////////////////////////
IMPORTANT ! go to " wp-content/ai1wm-backups " look inside and remove: in case of previous version
.htaccess index.html index.php robots.txt web.config
this files will be recreated after activation.
NOW >>> ACTIVATE >>> " all-in-one-wp-migration 7.72 "
This is working for 7.74 as well"