Presence Builder upgrade fails: PHP Fatal error: Call to a member function getWidgets() on a non-object

Created:

2016-11-16 12:40:44 UTC

Modified:

2017-08-16 15:44:47 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Presence Builder upgrade fails: PHP Fatal error: Call to a member function getWidgets() on a non-object

Applicable to:

  • Plesk 11.x for Linux

Symptoms

Presence Builder upgrade fails:

root@server:~# rpm -Uvh pp-sitebuilder-11.5.7-41714.13100419.noarch.rpm --force
Preparing... ########################################### [100%]
1:pp-sitebuilder ########################################### [100%]
[INFO]Initializing the Parallels Presence Builder's database...
[INFO]Creating database...
[INFO]Updating the database user credentials...
[INFO]The database already exists.
Logs saved to /usr/local/sb/tmp/sb_config-1310111117.log
0% [
] Upgrading the website '65969356-e4cd-7587-05b5-3ed1b5bf1d2d'...
PHP Fatal error: Call to a member function getWidgets() on a non-object in /usr/local/sb/include/SB/Upgrades/11_1_0/Site/Chunk2.php on line 34
=============================================================================
# Error: Call to a member function getWidgets() on a non-object #
=============================================================================

Cause

A site in the Presence Builder database is corrupted.

Resolution

  1. Back up the Presence Builder database and remove corrupted site using the UUID in the error message:

    # mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` sitebuilder5 > sb_db.sql

    # mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dsitebuilder5 -Ne"delete from site where uuid='65969356-e4cd-7587-05b5-3ed1b5bf1d2d'"
  2. Re-run the upgrade following the instructions provided in the article #117906 .

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