Utility httpdmng --reconfigure-all failed with message: Call to a member function isDefault() on a non-object Domain.php on line 966

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows

Created:

2016-11-16 13:08:21 UTC

Modified:

2016-12-21 20:02:07 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Utility httpdmng --reconfigure-all failed with message: Call to a member function isDefault() on a non-object Domain.php on line 966

Symptoms

Some domains are showing default page. The following error can be found in /var/log/plesk/panel.log with enabled debug :

     PHP Fatal error:  Call to a member function isDefault() on a non-object in /usr/local/psa/admin/plib/Smb/Plesk/Bridge/Domain.php on line 966
[09-Jan-2015 14:15:33 Europe/Berlin] PleskUtilException: /usr/local/psa/admin/bin/httpdmng '--reconfigure-all' failed with message: Execution failed.
Command: httpdmng
Arguments: Array
(

Cause

The issue is caused by inconsistency in Plesk psa database for the domain.tld domain.
The PhpSettings value is missing for the affected domain.

Resolution

  1. Create dump of Plesk databases
  2. Find the affected domain:

    mysql> select * from Configurations where status <>'ok';
  3. From the request above take objectId and check domain Name (Optional)

    mysql> select id,name from domains where id = 339;
    +-----+----------------+
    | id | name |
    +-----+----------------+
    | 339 | domain.tld |
    +-----+----------------+
    1 row in set (0.00 sec)
  4. Find Subscription Id using the same objectId .

    mysql> select id, object_id  from Subscriptions where object_id=339;
    +-----+-----------+
    | id | object_id |
    +-----+-----------+
    | 233 | 339 |
    +-----+-----------+
    1 row in set (0.00 sec)
  5. Check SubscriptionProperties values for this domain using id from the request above :

    mysql>select * from SubscriptionProperties where subscription_id=233;
    +-----------------+--------------------------------------+-----------+
    | subscription_id | name | value |
    +-----------------+--------------------------------------+-----------+
    | 233 | aps_bundle_filter_id | 197 |
    | 233 | default_server_mysql | 3 |
    | 233 | default_server_postgresql | none |
    | 233 | informer_files | true |
    | 233 | limitsId | 233 |
    | 233 | outgoing_messages_domain_limit | default |
    | 233 | outgoing_messages_enable_sendmail | default |
    | 233 | outgoing_messages_mbox_limit | default |
    | 233 | outgoing_messages_overlimit_percent | 0 |
    | 233 | outgoing_messages_subscription_limit | default |
    | 233 | OveruseBlock | true |
    | 233 | OveruseNotify | false |
    | 233 | OveruseSuspend | true |
    | 233 | permissionsId | 234 |
    | 233 | phpSettingsId | 294 |
    | 233 | unpaid_website_status | suspended |
    +-----------------+--------------------------------------+-----------+
    16 rows in set (0.00 sec)
  6. Make sure that phpSettings value is missing and this article is applicable for you:

    mysql>select * from PhpSettings where id=294;
    Empty set (0.00 sec)
  7. Insert required values:

    insert into PhpSettings values (294,0);
    Query OK, 1 row affected (0.06 sec)
  8. Rebuild web configuration :

    /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Have more questions? Submit a request
Please sign in to leave a comment.