PHP Fatal error on job queue after activating PHP 8.0

Discussion in 'General' started by cccaballero, Nov 13, 2020.

  1. cccaballero

    cccaballero New Member

    Hi.
    I am using ISPConfig 3.2 and Ubuntu 18.04, and the task queue stopped right after including PHP 8.0 as an extra version of php-fpm and activating it on a site. I have reviewed the instructions at <I can't include a link, but they are instructions for debugging task queue issues that I found on this forum> and when running the script manually I get the following warnings and error:

    Code:
    PHP Warning:  Undefined array key "admin_mail" in /usr/local/ispconfig/server/server.php on line 97
    PHP Warning:  Undefined array key "php_fpm_incron_reload" in /usr/local/ispconfig/server/plugins-available/z_php_fpm_incron_reload_plugin.inc.php on line 109
    PHP Warning:  Undefined array key "CA_path" in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 269
    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 "csr" in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 1314
    PHP Warning:  Undefined array key "website_autoalias" in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 1428
    PHP Warning:  Undefined array key "vhost_proxy_protocol_enabled" in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 1815
    PHP Warning:  Undefined array key "vhost_proxy_protocol_enabled" in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 1839
    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 Fatal error:  Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, bool given in /usr/local/ispconfig/server/lib/classes/tpl.inc.php(1344) : eval()'d code:77
    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(3473): tpl->grab()
    #3 /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php(2007): apache2_plugin->php_fpm_pool_update()
    #4 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): apache2_plugin->update()
    #5 /usr/local/ispconfig/server/mods-available/web_module.inc.php(137): 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 77
    Any ideas what may be causing it and how to fix it?
    Thanks.
     
  2. ahrasis

    ahrasis Well-Known Member

    cccaballero and till like this.
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You can do this manually aswell:
    Code:
    update-alternatives --config php
    update-alternatives --config php-cgi
    Select the default PHP version for your OS
     
    cccaballero likes this.
  4. cccaballero

    cccaballero New Member

    Thanks a lot, that was exactly the issue.
     
  5. cccaballero

    cccaballero New Member

    Thanks!!
     

Share This Page