Restore From Backup 3.63 Problems
2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 22, 2023 (RSS)
By KennyH - November 22, 2023
When I am setting up a new website, I usually upload the software (including a backup file with minimal information and user accounts) and go to the One-Minute Install screen. Most of the data is already there for me and all I need to do is accept the terms, enter the DB password, and select my Restore From Backup file (which has the standard admin user accounts already loaded).
In 3.63, I get the following error messages that I have never received previously:
Please enter 'Admin Full Name'
Please enter 'Admin Email'
Please enter 'Admin Username'
Please enter password.
If I choose to do a fresh install and input the first user account, it sets up without any problems. I was able to go to Backup & Restore and load that same exact file from there without any issues.
In short, Restore From Backup is not working for me when setting up the software - only after I set it up.
Kenny
By Dave - November 22, 2023
Hi Kenny,
I can confirm that's a bug and we can recreate it locally. As a workaround you can either enter admin info, which will be ignored, or apply this patch to /lib/admin_functions.php
Search for "isValidEmail" to find this block that starts around line 160, and remove the ! before the first empty.
// New Installation
if (!empty($_REQUEST['restoreFromBackup'])) {
if (!$_REQUEST['adminFullname']) { alert("Please enter 'Admin Full Name'<br>\n"); }
if (!$_REQUEST['adminEmail']) { alert("Please enter 'Admin Email'<br>\n"); }
elseif (!isValidEmail($_REQUEST['adminEmail'])) { alert("Please enter a valid email for 'Admin Email' (Example: user@example.com)<br>\n"); }
if (!$_REQUEST['adminUsername']) { alert("Please enter 'Admin Username'<br>\n"); }
$passwordErrors = getNewPasswordErrors($_REQUEST['adminPassword1'], $_REQUEST['adminPassword2'], $_REQUEST['adminUsername']); // v2.52
if ($passwordErrors) { alert( nl2br(htmlencode($passwordErrors)) ); }
}
So that this:
if (!empty($_REQUEST['restoreFromBackup'])) {
Becomes this:
if (empty($_REQUEST['restoreFromBackup'])) {
Let me know if that works for you and thanks for reporting this!
interactivetools.com