[INFO] Why aren't site snapshots shown on the Revert page?

Created:

2016-11-16 12:49:05 UTC

Modified:

2017-04-24 12:10:49 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[INFO] Why aren't site snapshots shown on the Revert page?

Applicable to:

  • Web Presence Builder 12.0 for Windows
  • Web Presence Builder 11.5 for Linux

Symptoms

Site snapshots were created through Web Presence Builder with the option " Save " in the main menu, but the snapshots are not visible on the " Revert " page. Why snapshots are not visible?

Your text to link here...

Cause

Snapshots are stored in the domain's root directory, in the subdirectory " /data/snapshots ". For example, here are snapshot files of WPB site for Plesk domain DOMAIN.TLD:

~# ls -l HTTPD_VHOSTS_D/DOMAIN.TLD/httpdocs/data/snapshots/
total 3772
-rw-r--r-- 1 plesk104 psacln 307008 Feb 14 07:23 7832d2146b27f2f47a5dbe525133a204.php
-rw-r--r-- 1 plesk104 psacln 307007 Feb 14 07:48 4ef806a5f51d8e39a73c5962e04f5288.php
-rw-r--r-- 1 plesk104 psacln 588 Feb 17 15:13 fc57a105e2447c76f2656c00bc6c24d4_list.xml
~#

Where " HTTPD_VHOSTS_D/DOMAIN.TLD/httpdocs " is virtual host directory, plesk104 is domain's system user, psacln is user's group. A list of the snapshots is configured in the file <SITE_ID>_list.xml .

The issue may be caused by the fact that file <SITE_ID>_list.xml is not readable by Apache or empty.

The same for POA application WPB and WPB Standalone Edition.

Resolution

Verify the file exists and has proper permissions - it should be readable by Apache. If the file is missing, then create it. To make all snapshots be shown, make sure to add all of them into the file. For example:

fc57a105e2447c76f2656c00bc6c24d4_list.xml
--->8---
<?xml version="1.0" encoding="utf-8"?>
<snapshots>

<snapshot id="quick"><file>7832d2146b27f2f47a5dbe525133a204.php</file><title>Website snapshot 1</title><date>1329182614</date></snapshot>
<snapshot id="0"><file>4ef806a5f51d8e39a73c5962e04f5288.php</file><title>Website snapshot 2</title><date>1329184131</date></snapshot>
</snapshots>
---8<---

Additional information

Use the following query to get SITE_ID:

mysql> select s.site_id, sps.url from site s, site_publish_settings sps where s.site_publish_settings_id=sps.id and sps.url  like '%DOMAIN.TLD%';
+----------------------------------+--------------------+
| site_id | url |
+----------------------------------+--------------------+
| fc57a105e2447c76f2656c00bc6c24d4 | http://DOMAIN.TLD/ |
+----------------------------------+--------------------+
1 row in set (0.00 sec)

mysql>
Have more questions? Submit a request
Please sign in to leave a comment.