Unable to access Web Presence Builder for domain: Argument 1 passed to SB_Site_Serialization_Strategy_Ui::_isNeedToRemoveWidget()

Created:

2016-11-16 13:21:55 UTC

Modified:

2017-08-16 17:20:28 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to access Web Presence Builder for domain: Argument 1 passed to SB_Site_Serialization_Strategy_Ui::_isNeedToRemoveWidget()

Applicable to:

  • Web Presence Builder for Linux

Symptoms

Unable to access Web Presence Builder for domain:

/sitebuilder/JsonApi/ Base_SyntaxException: PHP Error : Argument 1 passed to SB_Site_Serialization_Strategy_Ui::_isNeedToRemoveWidget() must be an instance of SB_Widget_Abstract, null given, called in /usr/local/sb/include/SB/Site/Serialization/Strategy/Ui.php on line 120 and defined
file: /usr/local/sb/include/SB/Site/Serialization/Strategy/Ui.php

There is orphan record in 'widget_container' that is referring to a non-existent widget in 'widget' table:

mysql> select * from widget_container where widget_id not in (select id from widget);
+------+--------------+-----------+----------+
| id | container_id | widget_id | position |
+------+--------------+-----------+----------+
| 1982 | 190 | 3873 | 1 |
+------+--------------+-----------+----------+
1 row in set (0.00 sec)

Cause

Database inconsistency

Resolution

Remove redundant entry:

mysql> delete from widget_container where id=1982;
Query OK, 1 row affected (0.08 sec)
Have more questions? Submit a request
Please sign in to leave a comment.