template_c directory not created or not pointing to the right place.

Bug #1942689 reported by Christopher C. Petro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postfixadmin (Ubuntu)
New
Undecided
Unassigned

Bug Description

When installing postfixadmin from scratch you get an error:

ERROR: the templates_c directory doesn't exist or isn't writeable for the webserver

This is because there's a bug in smarty.inc.php:

        // if it's not present or writeable, smarty should just not cache.
        $templates_c = dirname(__FILE__) . '/../templates_c';
        if (is_dir($templates_c) && is_writeable($templates_c)) {
  <...>
          die("ERROR: the templates_c directory doesn't exist or isn't writeable for the webserver");
        }

Where the location of templates_c is (a) hard-coded and (b) hard-coded to a questionable (and relative) location.

The manual fix for this is to create the directory and chown it to www-data:www-data.

Revision history for this message
Christopher C. Petro (petrocc) wrote :

Neglected to add:

Description: Ubuntu 20.04.3 LTS
Release: 20.04

apt-cache policy postfixadmin
postfixadmin:
  Installed: 3.2.1-3
  Candidate: 3.2.1-3
  Version table:
 *** 3.2.1-3 500
        500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.