The Apache configs cannot be created on the server with Plesk: Template_

Started by Suhitha, Sep 10, 2025, 06:13 AM

Previous topic - Next topic

Suhitha

Question: The Apache configs cannot be created on the server with Plesk: Template_Exception: Call to a member function configuration() on null


Applicable to:

  • Plesk for Linux



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


Cause

The cause of the issue is not clear.


Resolution

1.Connect to the server via SSH

2.Reinstall Plesk microupdates:

# plesk installer update --repatch