Fatal error: Call to a member function sdkInstancePermissions when you try to retrieve admin password

Created:

2016-11-16 13:05:58 UTC

Modified:

2017-08-16 18:30:40 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Fatal error: Call to a member function sdkInstancePermissions when you try to retrieve admin password

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux
  • Plesk 11.x for Windows
  • Plesk 12.0 for Linux

Symptoms

Plesk admin password can not be retrieved after failed Plesk upgrade:

/usr/local/psa/bin/admin --show-password

PHP Fatal error:  Call to a member function sdkInstancePermissions() on a non-object in /usr/local/psa/admin/plib/Core/Service/Registry.php on line 75

Cause

Plesk database was upgraded, but Plesk packages are not upgraded.

Resolution

  1. Check version of psa database:

    mysql -uadmin -p`cat /etc/psa/.psa.shadow ` psa -e"select * from misc where param='version'"
  2. Make sure that version of Plesk packagesis correcpond Plesk database version:

    # rpm -qa | grep plesk-core
    plesk-core-11.5.30-cos5.build115130819.13
  3. If database version does not correspond version of Plesk packages, for example, Plesk database version is 12 already, but Plesk packages are 11.5:

    mysql> select * from misc where param like '%version%';
    +---------+-----------+
    | param | val |
    +---------+-----------+
    | version | 012000018 |
    +---------+-----------+

    # cat /usr/local/psa/version
    11.5.30 CentOS 5 115140407.17

    # rpm -qa |grep plesk-c
    plesk-completion-11.5.30-cos5.build115130819.13
    plesk-core-11.5.30-cos5.build115130819.13

Restore Plesk 11.5 database from good valid backup.

The same may happen during 11.0.9 -> 11.5.30 upgrade

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