Menu

PHP Fatal error on postfixadmin_3.0-1_all.deb

Dan
2016-09-19
2016-12-08
  • Dan

    Dan - 2016-09-19

    Hello, i downloaded postfixadmin_3.0-1_all.deb and found out that the dependencies are incorrect. They don't work on debian stable.

    After fixing the dependencies i got the following error on Debian Jessie:

    PHP Fatal error:  require_once(): Failed opening required '/usr/share/postfixadmin/smarty/libs/Autoloader.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/postfixadmin/smarty.inc.php on line 3
    

    I downloaded postfixadmin-3.0.tar.gz and copied the entire folder smarty to /usr/share/postfixadmin. Then i created the templates_c and make it writeable but received another error:

    PHP Fatal error:  Uncaught  --> Smarty: Unable to read config file 'menu.conf' <-- \n  thrown in /usr/share/postfixadmin/smarty/libs/sysplugins/smarty_internal_resource_file.php on line 164, referer: http://localhost/postfixadmin/login.php
    

    Back to postfixadmin-3.0.tar.gz and copied another folder - configs to /usr/share/postfixadmin. Works fine.

    It seems these folders (smarty, templates_c and configs) are missing from postfixadmin_3.0-1_all.deb

     

    Last edit: Dan 2016-09-19
  • GingerDog

    GingerDog - 2016-09-19

    Hi - sorry about this - I've fixed it - see revision:1864 and revision:1865.

    I'll rebuild the debian package soon....

     
  • GingerDog

    GingerDog - 2016-09-19

    There's a 3.0.1 debian package on sourceforge now. Hopefully it fixes the problems!

     
  • Dan

    Dan - 2016-09-19

    Good news, thanks

     
  • Michael

    Michael - 2016-12-07

    Hey!
    I've tried to use your Package, without success. But it's fixable.
    I think you should have a big warning that postfixadmin needs php7. This is not in Debian jessie right now. A hint to possible solutions would be nice.

    Here's what I've done:
    New /etc/apt/sources.list.d/stretch.list with

    deb http://ftp.de.debian.org/debian/ stretch main contrib non-free
    deb-src http://ftp.de.debian.org/debian/ stretch main contrib non-free
    
    deb http://security.debian.org/ stretch/updates main contrib non-free
    deb-src http://security.debian.org/ stretch/updates main contrib non-free
    
    # jessie-updates, previously known as 'volatile'
    deb http://ftp.de.debian.org/debian/ stretch-updates main contrib 
    deb-src http://ftp.de.debian.org/debian/ stretch-updates main contrib
    

    Prevend apt-get to make s slowly upgrade to stretch with Apt-Pinning or my prefered way - fixing your Debian version with
    /etc/apt/apt.conf.d/30version

    APT::Default-Release "jessie";
    

    install postfixadmin-3.0.1-1-all from stretch or install your package. I prefer the debian way, using debian repositorys only - no pain with stability or updates.
    Caution with dependencies, I hat to upgrade php to php7, what results in broken libapache-mod-php... and have a look at php7-modules.

    And this could be the end.... but it wasn't to me. As today 2016/12/07 I've found only that a-little-bit-broken 3.0.0-package, named as 3.0.1-1 in the repos. So I have to do what Dan wrote.
    download a postfixadmin.tar.gz, unpack, and copy smarty- templates_c and configs - folder to /usr/share/postfixadmin. set permissions to
    chown -R www-data:www-data .... for them.

    Now /postfixadmin/setup.php checks the installation and dependencies. I had to make a little change in /etc/postfixadmin/db.config.inc.php. php-mysql is now called mysqli
    $dbtype='mysqli';

    I'll hope that helps anybody.
    I know thats not your fault - but could you give the maintainers a hint? I'll write to them, too.
    Bye
    Michael

     

    Last edit: Michael 2016-12-07
  • GingerDog

    GingerDog - 2016-12-08

    I'm using dotdeb.org or debsury.org - there should be no need to pull in packages from Stretch.

    I thought I had the dependencies of it correct - but clearly not. It does not (yet) depend on PHP7, and should work fine on PHP 5.6.

    So, the missing magic is fixing permissions of templates_c ? and that's it?

     

Log in to post a comment.