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

Refers to:

  • Plesk 11.5 for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows
  • MT:0b20aabbd825d0a69fd31706678e2963
  • MG:79a2753e2e1e083307e9126ac87493ee

Created:

2016-11-16 12:41:12 UTC

Modified:

2017-02-20 17:33:46 UTC

1

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)

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.