Question: The Apache configs cannot be created on the server with Plesk: Template_Exception: Call to a member function configuration() on null
Applicable to:Symptoms- After a failed system package update, the following error message is shown in Plesk:
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/nginxDomainVhostIpDefault.php, error = Template_Exception: Call to a member function configuration() on null
- The following entries are found in /var/log/panel.log:
ERR [panel] Call to a member function configuration() on null
ERR [panel] 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/nginxDomainVhostIpDefault.php, error = Template_Exception: Call to a member function configuration() on null
file: /opt/psa/admin/plib/Template/Processor.php
line: 28
code: 0
Previous error: Error: Call to a member function configuration() on null
file: /opt/psa/admin/plib/Template/Variable/Server/WebServer.php
line: 172
CauseThe cause of the issue is not clear.
Resolution
1.Connect to the server via SSH
2.Reinstall Plesk microupdates:
# plesk installer update --repatch