In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1327 [In-Portal CMS] Template System bug report always 2012-06-19 03:53 2012-07-25 05:29
alex  
alex  
normal  
closed 5.2.0-RC1  
fixed  
 
none 5.2.0  
https://groups.google.com/d/topic/in-portal-bugs/HKg_H7M90qQ/discussion
Fixes fatal error on e-mail event denial (on PHP 5.2.x)
1
0001327: Denying e-mail event produces fatal error (only on PHP < 5.3.0)
In In-Portal 5.1.2 we've introduced e-mail event syntax check before saving (see 0000822) to prevent user from getting Fatal Error due incorrect template syntax when e-mail event will be sent.

However if you'll have a project were e-mail email events have template syntax errors in them and you upgrade this project to 5.1.2 then you still get Fatal Error, when trying to send out that e-mail event (because no automatic way to fix e-mails events, that are broken).
Also when trying to enable/disable these e-mail events from e-mail event list you'll get "Query method undefined" error and selected e-mail events will still be in same status as before.

Template syntax checking code was reworked in 5.2.0-RC1 to use PHP exceptions (http://lv.php.net/manual/en/language.exceptions.php), but by mistake this code was made PHP 5.3.0+ compatible only (see http://lv.php.net/manual/en/exception.construct.php) due $previous parameter usage, that was added only in PHP 5.3.0.
related to 0000822closed  (5.1.2)alex Email event translation not being validated before saving 
patch denying_email_event_produces_fatal_error.patch (471) 2012-06-19 03:53
http://tracker.in-portal.org/file_download.php?file_id=1711&type=bug
Issue History
2012-07-25 05:29 alex Note Added: 0004859
2012-07-25 05:29 alex Status resolved => closed
2012-06-19 03:55 alex Changeset attached 5.2.x r15413
2012-06-19 03:55 alex Note Added: 0004733
2012-06-19 03:55 alex Status reviewed and tested => resolved
2012-06-19 03:55 alex Fixed in Version => 5.2.0
2012-06-19 03:55 alex Resolution open => fixed
2012-06-19 03:55 alex Assigned To !COMMUNITY => alex
2012-06-19 03:55 alex Note Added: 0004732
2012-06-19 03:55 alex Status needs testing => reviewed and tested
2012-06-19 03:55 alex Assigned To => !COMMUNITY
2012-06-19 03:55 alex Developer => alex
2012-06-19 03:55 alex Status active => needs testing
2012-06-19 03:54 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/HKg_H7M90qQ/discussion
2012-06-19 03:53 alex Relationship added related to 0000822
2012-06-19 03:53 alex New Issue
2012-06-19 03:53 alex File Added: denying_email_event_produces_fatal_error.patch
2012-06-19 03:53 alex Change Log Message => Fixes fatal error on e-mail event denial (on PHP 5.2.x)
2012-06-19 03:53 alex Estimate Points => 1

Notes
(0004732)
alex   
2012-06-19 03:55   
Will test all together later.
(0004733)
alex   
2012-06-19 03:55   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001327: Denying e-mail event produces fatal error (only on PHP < 5.3.0)
(0004859)
alex   
2012-07-25 05:29   
Since 5.2.0 version was released.