Upgrade failed and Plesk shows: ERROR: Call to a member function getName() on a non-object (MainMenu.php:48)

Created:

2016-12-12 03:41:53 UTC

Modified:

2017-08-16 17:18:19 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Upgrade failed and Plesk shows: ERROR: Call to a member function getName() on a non-object (MainMenu.php:48)

Applicable to:

  • Plesk 11.x for Linux

Symptoms

Upgrade failed and attempted to log in to Plesk produced the following error:

ERROR: Call to a member function getName() on a non-object (MainMenu.php:48)

Restart of sw-cp-server shown the following:

# /etc/init.d/sw-cp-server restart
nginx: the configuration file /etc/sw-cp-server/config syntax is ok
nginx: [emerg] listen() to 0.0.0.0:8443, backlog 511 failed (98: Address already in use)

Cause

Failed upgrade procedure, database was updated, but packages were not.

Resolution

  1. Find the dumps in /var/lib/psa/dumps :

    # ls -la /var/lib/psa/dumps

    mysql.preupgrade.11.5.30-12.5.30.20160925-031841.dump
    mysql.preupgrade.apsc.11.5.30-12.5.30.20160925-031842.dump
  2. Backup current psa and apsc database and restore preupgrade dump using this KB article.

  3. Run bootstrapper for the version you upgraded from (here is an example for Plesk 11.5):

    # /usr/local/psa/bootstrapper/pp11.5.30-bootstrapper/bootstrapper.sh repair
  4. Run the upgrade procedure again.

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