Applicable to:
- Plesk Obsidian for Linux
Symptoms
-
There is this error on the home page of Plesk:
PLESK_ERROR: Error: New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /opt/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: Argument 3 passed to Db_Table_Row_PhpSettings::getConfigurationText() must be of the type string, array given, called in /opt/psa/admin/plib/Template/Variable/Domain/PhysicalHosting.php on line 556 file: /opt/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Exception: Argument 3 passed to Db_Table_Row_PhpSettings::getConfigurationText() must be of the type string, array given, called in /opt/psa/admin/plib/Template/Variable/Domain/PhysicalHosting.php on line 556 file: /opt/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: TypeError: Argument 3 passed to Db_Table_Row_PhpSettings::getConfigurationText() must be of the type string, array given, called in /opt/psa/admin/plib/Template/Variable/Domain/PhysicalHosting.php on line 556 file: /opt/psa/admin/plib/Db/Table/Row/PhpSettings.php line: 59 code: 0. Search in KB
-
Some domains are not working on the server
-
The server was upgraded from some old version of Plesk, e.g. 11 or even older, or the domains were migrated from
-
There are entries in
psa.hosting
table where same_ssl is set to false:CONFIG_TEXT: # plesk db "select count(*) from hosting where same_ssl='false';"
+----------+
| count(*) |
+----------+
| 13 |
+----------+which means that "Separate SSL/TLS and non-SSL/TLS content" option was enabled for some domains in their hosting settings on old Plesk server.
Cause
Product issue:
-
#PPPM-11952 "Website configs are now regenerated if Plesk had previous upgrades from version 11 or earlier."
Fixed in:- Plesk Obsidian 25 May 2020
Resolution
Workaround
If update is not possible for some reason you may try the following
As a workaround, set same_ssl setting in psa.hosting
table to true for all domains. In Plesk Obsidian, this value should always be set to true as there is no Separate SSL/TLS and non-SSL/TLS content setting in Plesk anymore:
-
Connect to the server via SSH with root privileges
-
Run this command to set same_ssl setting in
psa.hosting
table to true:# plesk db "update hosting set same_ssl='true'"
-
Run this command to regenerate broken configuration files:
# plesk repair web
Comments
0 comments
Please sign in to leave a comment.