Softaculous


Topic : Restore previously deleted installation from backup not working


Posted By: deimos on December 14, 2018, 8:43 am
Hello!

Steps to reproduce:
  1. Install Wordpress
  2. Backup this installation
  3. Delete this istallation
  4. Restore this istallation

Expected result: Installation restored
Actual result: Restore failed with the error:

Error while opening {wp.26_21206.2018-12-14_07-49-12} in write binary mode

Softaculous Version : 5.1.3

Reproduces on several servers, including a completely freshly installed clean VPS.

Will appreciate any help.

Posted By: salman on December 14, 2018, 2:24 pm | Post: 1
Hi,

We have replicated the issue and fixed it, i have attached the patch file, please unzip the patch file you will get restore.php in respective includes folder , upload it /Path/To/softaculous/includes/main/
You can refer the Softaculous path according to panels here:http://softaculous.com/docs/Immediate_Synchronize_with_Softaculous_Servers

Edited by Moderator : December 14, 2018, 3:00 pm

Posted By: deimos on December 14, 2018, 2:53 pm | Post: 2
Hello salman,

Thank you for your quick response. Unfortunately after I replace the 'restore.php' with the files in your attachment, the 'restore' button redirects me to blank page:

https://sandbox:2083/cpsessXXXXX/frontend/paper_lantern/softaculous/index.live.php?act=restore&restore=wp.26_74255.2018-12-14_14-32-25.tar.gz

Files are 644, owned by root. Are there any other tweaks required?

Posted By: Moderator on December 14, 2018, 3:02 pm | Post: 3
Hi,

I have attached the file again with correct structure , please unzip it at
/usr/local/cpanel/whostmgr/docroot/cgi/softaculous/

Edited by Moderator : December 14, 2018, 3:03 pm

Posted By: deimos on December 14, 2018, 3:15 pm | Post: 4
Hello,

Let me clarify the exact steps:

1) I replace the old restore.php with the new ones:
archive:/includeXX/main/restore.php -> /path/to/softaculous/includeXX/main/restore.php
2) I open cPanel Softaculous menu -> Backups & Restore -> Click on Restore icon
3) I get to the black page, backup not restored.

List of updated files:

-rw-r--r-- 1 root root 63986 Dec 14  2018 /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/includes52/main/restore.php
-rw-r--r-- 1 root root 50478 Dec 14  2018 /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/includes53/main/restore.php
-rw-r--r-- 1 root root 47555 Dec 14  2018 /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/includes56/main/restore.php
-rw-r--r-- 1 root root 57659 Dec 14  2018 /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/includes71/main/restore.php

Posted By: Brijesh on December 17, 2018, 7:43 am | Post: 5
Hi,

We are releasing Softaculous 5.1.4 in a day or two with the fix.

If you want we can check your server and apply the patch again.

Please open a support ticket with the root details of your server :
https://www.softaculous.com/support/

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Posted By: salman on December 18, 2018, 11:35 am | Post: 6
Hi,

We have just released the Softaculous 5.1.4 which includes this fix:

https://www.softaculous.com/board/index.php?tid=14798&title=Softaculous_5.1.4_Launched_in_Stable_branch
Please run the cron command to get the Softaculous latest version.



Edited by salman : December 18, 2018, 11:39 am

Posted By: deimos on December 18, 2018, 7:33 pm | Post: 7
Thank you, salman, Brijesh, everything works like a charm.

Appreciate your support.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.