CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12565] debug mode causes fatal error in PHP 8

avatar
Created By: Matt Hornsby (DIGI3) (DIGI3)
Date Submitted: Mon Oct 10 11:32:06 -0400 2022

Assigned To:
Version: 2.2.16
CMSMS Version: 2.2.16
Severity: Minor
Resolution: Fixed
State: Open
Summary:
debug mode causes fatal error in PHP 8
Detailed Description:
Setting $config['debug'] = TRUE; in config.php causes:
Fatal error: Uncaught TypeError: error_reporting(): Argument #1 ($error_level)
must be of type ?int, string given in
/home/path/lib/smarty/sysplugins/smarty_internal_templatebase.php:201 Stack
trace: #0
/home/path/lib/smarty/sysplugins/smarty_internal_templatebase.php(201):
error_reporting() #1
/home/path/lib/smarty/sysplugins/smarty_internal_templatebase.php(116):
Smarty_Internal_TemplateBase->_execute() #2
/home/path/lib/classes/internal/class.CMS_Smarty_Template.php(20):
Smarty_Internal_TemplateBase->fetch() #3 /home/path/index.php(151):
CMS_Smarty_Template->fetch() #4 {main} thrown in
/home/path/lib/smarty/sysplugins/smarty_internal_templatebase.php on line 201


History

Comments
avatar
Date: 2022-10-10 18:10
Posted By: tom (tomphantoo)

the several instances of 'E_ALL' have already been adjusted to E_ALL
      
Updates

Updated: 2022-10-10 18:10
resolution_id: => 7
severity_id: 12 => 3