Changes not propagated + server.sh tpl.inc.php error (fixed)

Discussion in 'General' started by Richard Foley, Jun 28, 2021.

  1. Richard Foley

    Richard Foley Member

    I'm using IspConfig3 3.2.5 on Debian Buster 10.9
    I noticed changes were not being propagated and followed the debug instructions here: https://www.faqforge.com/linux/debugging-ispconfig-3-server-actions-in-case-of-a-failure/
    When I run server.sh I get:
    Code:
    PHP Warning:  Undefined array key "template" in /usr/local/ispconfig/server/lib/classes/tpl_ini.inc.php on line 92
    PHP Warning:  Trying to access array offset on value of type null in /usr/local/ispconfig/server/lib/classes/tpl_ini.inc.php on line 92
    PHP Warning:  Undefined array key "template" in /usr/local/ispconfig/server/lib/classes/tpl_ini.inc.php on line 92
    PHP Warning:  Trying to access array offset on value of type null in /usr/local/ispconfig/server/lib/classes/tpl_ini.inc.php on line 92
    28.06.2021-08:19 - DEBUG - SSL Disabled. webit.rfi.net
    28.06.2021-08:19 - DEBUG - safe_exec cmd: nginx -V 2>&1 | grep 'built with OpenSSL' | sed 's/.*built\([a-zA-Z ]*\)OpenSSL \([0-9.]*\).*/\2/' - return code: 0
    28.06.2021-08:19 - DEBUG - safe_exec cmd: nginx -V 2>&1 | grep 'running with OpenSSL' | sed 's/.*running\([a-zA-Z ]*\)OpenSSL \([0-9.]*\).*/\2/' - return code: 0
    28.06.2021-08:19 - DEBUG - safe_exec cmd: which 'nginx' 2> /dev/null - return code: 0
    28.06.2021-08:19 - DEBUG - Enable TLS 1.3 for: webit.rfi.net
    PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in /usr/local/ispconfig/server/lib/classes/tpl.inc.php(1344) : eval()'d code:78
    Stack trace:
    #0 /usr/local/ispconfig/server/lib/classes/tpl.inc.php(1344): eval()
    #1 /usr/local/ispconfig/server/lib/classes/tpl.inc.php(788): tpl->_parse()
    #2 /usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php(1942): tpl->grab()
    #3 /usr/local/ispconfig/server/plugins-available/nginx_plugin.inc.php(339): nginx_plugin->update()
    #4 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): nginx_plugin->insert()
    #5 /usr/local/ispconfig/server/mods-available/web_module.inc.php(136): plugins->raiseEvent()
    #6 /usr/local/ispconfig/server/lib/classes/modules.inc.php(302): web_module->process()
    #7 /usr/local/ispconfig/server/lib/classes/modules.inc.php(235): modules->raiseTableHook()
    #8 /usr/local/ispconfig/server/server.php(180): modules->processDatalog()
    #9 {main}
      thrown in /usr/local/ispconfig/server/lib/classes/tpl.inc.php(1344) : eval()'d code on line 78
    It's not clear to me how to fix this, but all helpful suggestions are welcome.
     
  2. Richard Foley

    Richard Foley Member

    Update. I think this was related to having php8.0 on the system, and I saw various posts relating to IspConfig3 (currently) only configurable for php7.*
    I've now removed php8.0 and am running php7.4 alone.
    I restarted server.sh which ran through sweetly and all jobs processed correctly.
    Again, @till et al. much kudos for solid software!
     
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    You don't need to remove php8.0 as multiple php is supported by ISPConfig. Just make sure the default php is php7.3 (the official default php shipped with Debian Buster) and not php7.4 should work fine.
     
    Richard Foley likes this.

Share This Page