• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Resolved CLI error getting subdomain info

Pradins

New Pleskian
I have Plesk Obsidian 18.0.23.

When executing the command to get info of a subdomain:
/usr/sbin/plesk bin subdomain -i subdomain.domain.com

I get this error:
[2020-02-12 21:42:44.996] ERR [panel] Call to a member function isMailAutodiscoveryEnabled() on null:
0: /usr/local/psa/admin/plib/report/class.DomainReport.php:715
DomainReport->make_report_summary_mailnames_()
1: /usr/local/psa/admin/plib/report/class.Report.php:278
Report->make_report(integer '171')
2: /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php:2953
AbstractCuDomain->_cmdInfo(string 'subdomain.domain.com')
3: /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php:1673
AbstractCuDomain->_processDomainNameCmd(string 'info', string 'subdomain.domain.com')
4: /usr/local/psa/admin/plib/api-common/cuDomain.php:65
cuDomain->_processDomainNameCmd(string 'info', string 'subdomain.domain.com')
5: /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php:78
AbstractCuDomain->__construct(NULL null)
6: /usr/local/psa/admin/plib/api-common/CuExecutor.php:61
CuExecutor->execUtil(string 'cuSubDomain', NULL null)
7: /usr/local/psa/admin/plib/api-common/CuExecutor.php:131
CuExecutor->run()
8: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:25
CliUtilityRunner->run()
9: /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php:34
require_once(string '/usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php')
10: /usr/local/psa/admin/plib/api-cli/subdomain.php:4

I have the same problem in all domains on the server.
 
This is caused by a bug in the product with ID PPP-45257 which will be released in future releases of the product.

As a workaround apply the following steps:

Create the mail service for the domain via:

# plesk bin mail --create-service example.com

disable the mail service for the domain via:

# plesk bin mail --off example.com
 
Fixed:


If the mail service for a domain or a subscription (for example, example.com) is disabled, the plesk bin subscription -i example.com command no longer fails. (PPP-45257)
 
Back
Top