Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Step 1: Edit the file safe_mode.php 

You need to update a source code file of the app if you want to restore your site in Safe Mode.

You can find the file at:

Panel

[PATH_OF_YOUR_SITE]/PF.Site/Apps/phpFox_Backup_Restore/safe_mode.php

At the beginning of the file, you can see something like this:

Code Block
languagephp
themeEclipse
<?php
//Set to true to enable safe mode
define('BACKUP_SAFE_MODE', false);
//DO NOT change below this line
//----------------------------//

The one thing you need to do is change the definition of this constant to true.

Code Block
languagephp
themeEclipse
<?php
//Set to true to enable safe mode
define('BACKUP_SAFE_MODE', true);
//DO NOT change below this line
//----------------------------//

Save your change and go to next step.

Step 2: Access the Restore Page in Safe Mode

The link for this page is something like this

Panel

[YOUR_SITE_DOMAIN]/PF.Site/Apps/phpFox_Backup_Restore/safe_mode.php

Access the page via this link, you can see all the available backup packages. Select one and click to restore button will help to revert your site to the state of the package.

Image Added