You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: