PHP5.6 -> PHP7: " 0 syntax error, unexpected '{', expecting ';' "

Status
Not open for further replies.

storm5

New Member
hi i am updating to PHP7 and i get error " 0 syntax error, unexpected '{', expecting ';' " in form.

Lists works fine and error is in frontend and backend.
If i create new form, error is there.

I am using Joomla 3.6.5 and just updated Fabrik from github, no effect to error

If i uninstall fabrik and after that delete all remaining files/folders that contains word "Fabrik", Then do fresh install from web site and do new form errror is gone away.

but this is not enough, be course i have couple list/form what i need.

What i can do?
everything works fine in PHP5.6, error is the only in PHP7
 
i get error " 0 syntax error, unexpected '{', expecting ';' " in form.
on load, on submit...?
Then do fresh install from web site and do new form errror is gone away.
So with a new Fabrik installation it's ok?
error is the only in PHP7
which exact php version?

Do you have custom code in your existing Fabrik?
e.g.
calc elements, conditions in plugins, php validation, php list or form plugins?
a customized bootstrap or bootstrap_tabs template?

Compare the "old" folders with the "new" ones. Do you have old addional files?
 
solved:

Problem was bad calc element whit my creative php-code :) :

PHP was:
PHP:
return {rek_2015___field1_raw} + {rek_2015___field2_raw};

changed to:
PHP:
$myCalc = (int)'{rek_2015___field1_raw}' + (int)'{rek_2015___pdga_field2_raw}' ;
return $myCalc;

answers for Troester:
1. On load
2. fresh install, fresh form whit sample-field works (ofcourse becourse broblem was in that calc element)
3. only tried php7.1.
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top