Hi,
After upgrading the Plesk to version 12, there are chances that the following error is obtained on accessing the Plesk panel interface:
ERROR: Call to a member function sdkInstanceLimits() on a non-object (Limits.php:44)
The issue is caused by the failed Plesk upgrade. Such a situation may take a place when Plesk database is upgraded, but Plesk packages not.
This issue can be resolved by following the steps given below:
1) Check Plesk database version:
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e"select * from misc where param='version'"
+---------+-----------+
| param | val |
+---------+-----------+
| version | 012000018 |
+---------+-----------+
2) Check Plesk packages versions, example:
# rpm -qa |grep plesk
plesk-core-11.5.30-cos6.build115130819.13.x86_64
plesk-service-node-utilities-11.5.30-cos6.build115130819.13.x86_64
plesk-base-11.5.30-cos6.build115130819.13.x86_64
psa-libpam-plesk-11.5.30-cos6.build115130819.13.x86_64
plesk-web-hosting-11.5.30-cos6.build115130819.13.x86_64
plesk-management-node-11.5.30-cos6.build115130819.13.x86_64
drweb-common-6.0.2.1-1302081526pleskel5.noarch
plesk-skins-11.5.30-601.13081913.noarch
As you can see Plesk packages have version 11.5, but Plesk database is 12.0. So in this case it is necessary to roll back Plesk installation to a pre-upgrade state, resolve the issue that caused the upgrade failure, and re-run the upgrade.
It works