CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#12677] Update CMSMS ver 2.2.18 to 2.2.19 >>> USER DEFINE TAGS - ERROR 500 (only when i try to create a new UDT)

avatar
Created By: Mirko Speelman (masterbe)
Date Submitted: Sun Dec 24 10:26:05 -0500 2023

Assigned To: Fernando Morgado (JoMorg)
Version: 2.2.18
CMSMS Version: 2.2.18
Severity: Minor
Resolution: Fixed
State: Open
Summary:
Update CMSMS ver 2.2.18 to 2.2.19 >>> USER DEFINE TAGS - ERROR 500 (only when i try to create a new UDT)
Detailed Description:
Update CMSMS ver 2.2.18 to 2.2.19 >>> USER DEFINE TAGS -  ERROR 500 
Only when i try to create a new UDT



History

Comments
avatar
Date: 2023-12-24 11:00
Posted By: Matt Hornsby (DIGI3) (DIGI3)

Please include the error from your error log. Note that creating a UDT with
invalid PHP will generate a PHP Parse error, and this isn't new behaviour for
2.2.19.
      
avatar
Date: 2023-12-24 11:56
Posted By: Mirko Speelman (masterbe)

AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected token
"}" in /var/www/vhosts/bestreclame.nl/httpdocs/admin/editusertag.php(93) :
eval()'d code on line 2', referer: https://bestreclame.nl/

(apache)

------------------------------------------------------------------------------------------------------------------------------------------------------------

2618842#0: *435694 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax
error, unexpected '}' in
/var/www/vhosts/bestreclame.nl/httpdocs/admin/editusertag.php(93) : eval()'d
code on line 2" while reading response header from upstream

( nginx-foutmelding )


I tried different PHP and settings 
7.4
8.0
8.1
8.2

      
avatar
Date: 2023-12-24 12:03
Posted By: Matt Hornsby (DIGI3) (DIGI3)

This likely means your PHP isn't valid. This isn't a CMSMS bug but I have
suggested we look at ways to catch errors more gracefully.
      
avatar
Date: 2024-04-04 12:46
Posted By: Fernando Morgado (JoMorg)

Before PHP 7.0 the code was able to trap the errors and give a somewhat
reasonable hint of the error(s) being triggered. From PHP 7.0 on, the way eval
behaved changed and started triggering a Parse Exception instead. This is now
handled as intended and the error being triggered is shown on the popup error
message on submit, apply, and run. Fixed in svn, will be released in CMSMS 
2.2.20. Thanks
      
Updates

Updated: 2024-04-04 12:46
resolution_id: 6 => 7

Updated: 2024-03-30 09:20
resolution_id: 5 => 6
severity_id: 1 => 3
assigned_to_id: 100 => 12532

Updated: 2023-12-24 11:00
resolution_id: => 5