I’m having a really weird error. I’ve narrowed it down to two lines, either one of which causes this error:
Parse error: syntax error, unexpected T_STRING in /local/data/http…/core/core.functions.php(637) : eval()'d code on line 293The two lines are:
&details;=<?php echo rawurlencode(trim(strip_tags("{description}")));?>
&location;=<?php echo rawurlencode("{address}");?>what’s weird is that a very similar line doesn’t cause any problem:
&text;=<?php echo rawurlencode(”{title}”);?>
But wait, it gets even stranger. That code is not even supposed to be executed. It’s inside an if statement, and when the condition is false the error pops up. But when the condition is true and the code does get executed, there’s no error and everything works fine.
Any clue what’s happening ? To give you more context, I’m trying to add a “add to google calendar” button, and for this I need to encode the content of my fields. “description” is a text zone, and “address” is a text field, and I’ve removed formatting from both.