Unable to reconfigure domain: Invalid argument supplied for foreach()

Refers to:

  • Plesk

Created:

2016-11-16 13:00:27 UTC

Modified:

2016-12-21 19:44:34 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to reconfigure domain: Invalid argument supplied for foreach()

Symptoms

Unable to reconfigure domain:

# /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain example.com

PHP Warning: syntax error, unexpected '"' in Unknown on line 8
; File: /usr/local/psa/admin/plib/Db/Table/Row/PhpSettings.php, Line: 191

file: /usr/local/psa/admin/smb/application/library/Smb/Exception/Syntax.php
line: 55
code: 0

PHP Warning: Invalid argument supplied for foreach(); File: /usr/local/psa/admin/plib/Db/Table/Row/PhpSettings.php, Line: 475

Exception: PHP Warning: Invalid argument supplied for foreach(); File: /usr/local/psa/admin/plib/Db/Table/Row/PhpSettings.php, Line: 475

Unable to add sub-domain:

Error: phpinimng failed: Cannot parse php.ini: (, PhpIniSyntaxError('[:16] Invalid configuration line. Are there excessive leading spaces?',))

Cause

Incorrect PHP syntax in PHP Settings > Additional Directives for a domain.

Resolution

Correct PHP syntax for additional directives:

For Plesk 11.5 and later:

Plesk > Domains > example.com > Hosting Settings > PHP Settings > Additional directives

For Plesk 11.0 and older:

Plesk > Domains > example.com > Customize > PHP Settings > Additional directives

Have more questions? Submit a request
Please sign in to leave a comment.