Creation of hosting on subscription fails with error: Call to a member function getRootPath () on a non-object (Abstract.php: 141)

Created:

2016-11-16 12:47:56 UTC

Modified:

2017-04-24 12:11:23 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Creation of hosting on subscription fails with error: Call to a member function getRootPath () on a non-object (Abstract.php: 141)

Applicable to:

  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Windows version of the article is available here .

Symptoms

Creation of hosting on subscription fails with error:

Internal error. ERROR: Call to a member function getRootPath () on a non-object (Abstract.php: 141)

Cause

Empty ServiceInstanceProperties table in psa database.

mysql> SELECT * FROM `ServiceInstanceProperties`;
Empty set (0.00 sec)

Resolution

Recreate records in ServiceInstanceProperties table with the following scripts:

  1. Get list of domains and their instances:

    mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e"select d.name,s.id,si.id from domains d LEFT JOIN Subscriptions s ON d.id=s.object_id LEFT JOIN ServiceInstances si ON s.id=si.servicePackageId AND serviceInstallationId = (select id from ServiceInstallations where name = 'PleskFileSystem');" > domains.list
  2. Add missing records in the ServiceInstanceProperties table:

    while read a b c; do mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e"insert into ServiceInstanceProperties (\\`serviceInstanceId\\`, \\`name\\`, \\`value\\`) values ($c,'root','/var/www/vhosts/$a')"; done < domains.list
Have more questions? Submit a request
Please sign in to leave a comment.