Site has empty space between header and picture in the main content area.

Created:

2016-11-16 13:19:36 UTC

Modified:

2017-08-16 16:02:10 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Site has empty space between header and picture in the main content area.

Applicable to:

  • Web Presence Builder for Linux

Symptoms

Published site not identical to editor version.

In Web Presence Builder site has no empty space between the header and the picture in the main content area but published has a huge space.

Cause

Unnecessary "widget_containers" generate empty widgets on the main page.

Resolution

NOTE: If you do not have root access to the server, contact your hosting provider.

  1. Backup the 'sitebuilder5' database

    # mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` sitebuilder5 > ~/sitebuilder5.`date +%F`.sql
  2. Using a Firebug (or similar tools) find widget uuids' by pointing cursor on the problematic empty space and then find their id in 'sitebuilder5' database:

    mysql> select * from widget where uuid="01537b5b-c3c0-056d-d0c1-1fb3ff06636a";
    +-------+--------------------------------------+---------+

    | id | uuid | type_id |
    +-------+--------------------------------------+---------+

    | 61701 | 01537b5b-c3c0-056d-d0c1-1fb3ff06636a | 3 |
    +-------+--------------------------------------+---------+
    1 row in set (0.00 sec)

    mysql> select * from widget where uuid="695e4e2b-6e46-5610-e832-36d1ddb156b4";
    +-------+--------------------------------------+---------+

    | id | uuid | type_id |
    +-------+--------------------------------------+---------+

    | 61702 | 695e4e2b-6e46-5610-e832-36d1ddb156b4 | 3 |
    +-------+--------------------------------------+---------+
    1 row in set (0.00 sec)
  3. Find widget_container for wigets from step 2:

    mysql> select * from widget_container where widget_id=61701;
    +-------+--------------+-----------+----------+

    | id | container_id | widget_id | position |
    +-------+--------------+-----------+----------+

    | 58144 | 61424 | 61701 | 0 |
    +-------+--------------+-----------+----------+
    1 row in set (0.00 sec)

    mysql> select * from widget_container where widget_id=61702;
    +-------+--------------+-----------+----------+

    | id | container_id | widget_id | position |
    +-------+--------------+-----------+----------+

    | 58147 | 61427 | 61702 | 0 |
    +-------+--------------+-----------+----------+
    1 row in set (0.00 sec)
  4. Delete widget_containers:

    mysql> delete from widget_container where container_id=61424;
    Query OK, 1 row affected (0.00 sec)

    mysql> delete from widget_container where container_id=61427;
    Query OK, 1 row affected (0.00 sec)
  5. Publish site again.

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