Update website settions issues

Discussion in 'Installation/Configuration' started by AWHarvard, Jun 10, 2021.

  1. AWHarvard

    AWHarvard New Member

    Using the latest version of ISPconfig3, the website module fails to apply the settings (changing php version).

    Output of server.sh:
    Code:
    10.06.2021-14:37 - WARNING - There is already a lockfile set, but no process running with this pid (20999). Continuing.
    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
    PHP Warning:  Undefined array key "serverconfig" in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 1846
    PHP Warning:  Trying to access array offset on value of type null in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 1846
    PHP Warning:  Trying to access array offset on value of type null in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 1846
    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:621
    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/apache2_plugin.inc.php(1885): tpl->grab()
    #3 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): apache2_plugin->update()
    #4 /usr/local/ispconfig/server/mods-available/web_module.inc.php(137): plugins->raiseEvent()
    #5 /usr/local/ispconfig/server/lib/classes/modules.inc.php(302): web_module->process()
    #6 /usr/local/ispconfig/server/lib/classes/modules.inc.php(235): modules->raiseTableHook()
    #7 /usr/local/ispconfig/server/server.php(180): modules->processDatalog()
    #8 {main}
      thrown in /usr/local/ispconfig/server/lib/classes/tpl.inc.php(1344) : eval()'d code on line 621
    I also cannot find the mentioned existing lockfile at all.
    Settings are not applyed at all, same server with a older version was working propperly.
     
    Last edited: Jun 10, 2021
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You seem to have updated system PHP to PHP 8, which is not supported by ISPConfig. Take care to use the default PHP of the operating system and do not replace it with a newer PHP version. You can run older and newer PHP versions incl. PHP 8 an additional PHP version though.
     
  3. AWHarvard

    AWHarvard New Member

    Thanks for the hind.
    Seems that the auto update updated php7.4 to php8.0. Forgot about the missing php8 support for ISPconfig.
    Any plans to support php8 in the near future?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    We add support for it when PHP 8 becomes the default version of a supported OS version as there is no reason to support it earlier as the default PHP version of an OS should never be changed anyway. Supporting PHP 8 is not that easy as it requires rewriting the whole templating layer. So probably when Ubuntu 22.04 comes out, or Debian 11.
     

Share This Page