Syntax error, unexpected '=' when saving data

ranggasan

New Member
My form was working fine but I don't know why few days ago when I wanted to add data and click save button, syntax error showed up, I have no idea which element causing this issue

Image-6.png


Does anybody experience same issue?
 
Do you have any custom code (calc element, "advanced" features, conditions in validations, form plugins...)?
Enable Joomla's system debug to get the error stack.
 
I don't remember have this php validation on my element

Image-8.png


This code have no problem before but recently it throw syntax error. I unpublished this validation and my form is now working fine
 
Your validation code looks totally weird. It should be a PHP and return either false or true. e.g. like:

$somevalue = '{tablename___element}';
return $somevalue == "something";

So I cannot imagine how your code could have worked before.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top