Articles in this section

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

Plesk for Linux kb: technical apache

Applicable to:

  • Plesk for Linux

Symptoms

  • After a failed system package update, the following error message is shown in Plesk:

    PLESK_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/nginxDomainVhostIpDefault.php, error = Template_Exception: Call to a member function configuration() on null

  • The following entries are found in /var/log/panel.log:

    CONFIG_TEXT: 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.

In case you face this issue, create a 3-rd line to investigate that and confirm the possible bug of the product

Resolution

  1. Connect to the server via SSH
  2. Reinstall Plesk microupdates:

    # plesk installer update --repatch

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.