We are migrating a fabrik App to Fabrik 3.9 and PHP 7.
In previous versions of PHP/Fabrik the "Parse Error" does not stop the code and fabrik continues working logging the error unless debug is active.
NOW stops working If the syntax of PHP in the calc fields or events or dropdowns is not correct.
In PHP 7 maybe is needed to add a try / Catch in all "eval" calls and only trown an screen error on debug mode.
It is:
try {
$res = eval($PHPcode);
}catch(ParseError $e){
// LOG ERROR OR DIE
}
Also maybe is better to centralize all calls to eval in a helper or class.
We are migrating a fabrik App to Fabrik 3.9 and PHP 7. In previous versions of PHP/Fabrik the "Parse Error" does not stop the code and fabrik continues working logging the error unless debug is active.
NOW stops working If the syntax of PHP in the calc fields or events or dropdowns is not correct.
In PHP 7 maybe is needed to add a try / Catch in all "eval" calls and only trown an screen error on debug mode.
It is:
try { $res = eval($PHPcode); }catch(ParseError $e){ // LOG ERROR OR DIE }
Also maybe is better to centralize all calls to eval in a helper or class.