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:41:12 UTC

Modified:

2017-04-24 11:18:56 UTC

2

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 Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Linux version of article 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 the serviceinstanceproperties table with the following scripts:

  1. Get list of domains and their instances:

     "%plesk_dir%"\\MySQL\\bin\\mysql -uadmin -p"********" -P8306 psa -Ne"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');" > C:\\domains.txt
  2. Add missing records in the serviceinstanceproperties table:

     FOR /F "tokens=1,2,3" %a in (C:\\domains.txt) do "%plesk_dir%"\\MySQL\\bin\\mysql -uadmin -p"********" -P8306 psa -e"insert into serviceinstanceproperties (`serviceInstanceId`, `name`, `value`) values (%c,'root','C:\\\\Inetpub\\\\vhosts\\\\%a')"
Have more questions? Submit a request
Please sign in to leave a comment.