Articles in this section

Web configuration error in Plesk interface: Call to a member function getId() on null file

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

Symptoms

  • The following web configuration error is shown in the Plesk interface:

    PLESK_ERROR: New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/webmail/webmail.php, error = Template_Exception: Call to a member function getId() on null file: /usr/local/psa/admin/plib/Template/Processor.php line: 38 code: 0 Previous error: Error: Call to a member function getId() on null file: /usr/local/psa/admin/plib/Template/Variable/Domain/LoopbackTrait.php line: 26 code: 0. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.

  • One of the IP addresses in Plesk > Tools & Settings > IP Addresses is shown as broken:

    PLESK_WARN: This IP address is not configured properly. Repair

  • The broken IP address is missing from the network configuration on the server:

    # ip a | grep 203.0.113.2
    # <empty output>

Cause

Some domains are assigned to a missing/broken IP.

Resolution

  1. Log in to Plesk.

  2. Reassign the domain to the existing IP address.
  3. Remove IP from Tools & Settings > IP Addresses.

  4. Repair configuration with the commands:

    # plesk repair db -y

    # plesk repair web -y

Was this article helpful?

Comments

1 comment
Date Votes
  • This error happens when relocated vhosts paths are not properly updated, causing “Path is invalid” and blank previews; fixing the directory path and permissions usually resolves it—just like a sports medicine doctor Astoria NY, where a small mistake leads to wrong results.


     

    0

Please sign in to leave a comment.