PHP8 Fatal error
Posted: Thu Oct 06, 2022 6:39 pm
PHP8.0
CMSMS 2.2.16
config.php debug = TRUE
php.ini display_errors=on
php.ini error_reporting = E_ALL
causes CMSMS to crash with error
Fatal error: Uncaught TypeError: error_reporting(): Argument #1 ($error_level) must be of type ?int, string given in /homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php:185 Stack trace: #0 /homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(185): error_reporting('E_ALL') #1 /homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(107): Smarty_Internal_TemplateBase->_execute(Object(CMS_Smarty_Template), 'p9', NULL, NULL, 0) #2 /homepages/38/d242029264/htdocs/acuk_cmsms2/lib/classes/internal/class.CMS_Smarty_Template.php(20): Smarty_Internal_TemplateBase->fetch(NULL, 'p9', NULL, NULL) #3 /homepages/38/d242029264/htdocs/acuk_cmsms2/index.php(151): CMS_Smarty_Template->fetch() #4 {main} thrown in /homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php on line 185
----------------------------------------------
Cms Version: 2.2.16
Installed Modules:
AdminSearch: 1.0.6
CMSContentManager: 1.1.9
CMSMSExt: 1.1.0.1
CmsJobManager: 0.1.3
DesignManager: 1.1.9
ECB2: 1.99.4
FileManager: 1.6.12
FilePicker: 1.0.5
JMFilePicker: 1.0.1
LISE: 1.4.2
LISECHReviews: 1.4.2
LISEHomes: 1.4.2
LISEWelcomeBanner: 1.4.2
MenuManager: 1.50.3
MicroTiny: 2.2.5
ModuleManager: 2.1.8
Navigator: 1.0.9
News: 2.51.11
Search: 1.53
SitemapMgr: 1.7.1
SmartyExt: 1.0
UserGuide2: 1.4.1
Config Information:
php_memory_limit:
max_upload_size: 10000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: true
Php Information:
phpversion: 8.0.23
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 32M
max_execution_time: 60
register_globals: Off (False)
output_buffering: 1
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 10M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On
Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 4.4.302-icpu-088 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.7.38
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Permission Information:
tmp: /homepages/38/d242029264/htdocs/acuk_cmsms2/tmp (0705)
tmp_cache: /homepages/38/d242029264/htdocs/acuk_cmsms2/tmp/cache (0705)
templates_c: /homepages/38/d242029264/htdocs/acuk_cmsms2/tmp/templates_c (0705)
modules: /homepages/38/d242029264/htdocs/acuk_cmsms2/modules (0705)
uploads: /homepages/38/d242029264/htdocs/acuk_cmsms2/uploads (0705)
File Creation Mask (umask): /homepages/38/d242029264/htdocs/acuk_cmsms2/tmp/cache (0705)
config_file: 0644
----------------------------------------------
CMSMS 2.2.16
config.php debug = TRUE
php.ini display_errors=on
php.ini error_reporting = E_ALL
causes CMSMS to crash with error
Fatal error: Uncaught TypeError: error_reporting(): Argument #1 ($error_level) must be of type ?int, string given in /homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php:185 Stack trace: #0 /homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(185): error_reporting('E_ALL') #1 /homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(107): Smarty_Internal_TemplateBase->_execute(Object(CMS_Smarty_Template), 'p9', NULL, NULL, 0) #2 /homepages/38/d242029264/htdocs/acuk_cmsms2/lib/classes/internal/class.CMS_Smarty_Template.php(20): Smarty_Internal_TemplateBase->fetch(NULL, 'p9', NULL, NULL) #3 /homepages/38/d242029264/htdocs/acuk_cmsms2/index.php(151): CMS_Smarty_Template->fetch() #4 {main} thrown in /homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php on line 185
----------------------------------------------
Cms Version: 2.2.16
Installed Modules:
AdminSearch: 1.0.6
CMSContentManager: 1.1.9
CMSMSExt: 1.1.0.1
CmsJobManager: 0.1.3
DesignManager: 1.1.9
ECB2: 1.99.4
FileManager: 1.6.12
FilePicker: 1.0.5
JMFilePicker: 1.0.1
LISE: 1.4.2
LISECHReviews: 1.4.2
LISEHomes: 1.4.2
LISEWelcomeBanner: 1.4.2
MenuManager: 1.50.3
MicroTiny: 2.2.5
ModuleManager: 2.1.8
Navigator: 1.0.9
News: 2.51.11
Search: 1.53
SitemapMgr: 1.7.1
SmartyExt: 1.0
UserGuide2: 1.4.1
Config Information:
php_memory_limit:
max_upload_size: 10000000
url_rewriting: none
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: true
Php Information:
phpversion: 8.0.23
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 32M
max_execution_time: 60
register_globals: Off (False)
output_buffering: 1
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 10M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On
Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 4.4.302-icpu-088 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.7.38
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Permission Information:
tmp: /homepages/38/d242029264/htdocs/acuk_cmsms2/tmp (0705)
tmp_cache: /homepages/38/d242029264/htdocs/acuk_cmsms2/tmp/cache (0705)
templates_c: /homepages/38/d242029264/htdocs/acuk_cmsms2/tmp/templates_c (0705)
modules: /homepages/38/d242029264/htdocs/acuk_cmsms2/modules (0705)
uploads: /homepages/38/d242029264/htdocs/acuk_cmsms2/uploads (0705)
File Creation Mask (umask): /homepages/38/d242029264/htdocs/acuk_cmsms2/tmp/cache (0705)
config_file: 0644
----------------------------------------------