Parse error: syntax error, unexpected 'oggetto' (T_STRING) in /web/htdocs/

Hi Gang!
Using Form stack with Foundry 1.3.4.2, suddenly something seems broken (while it was working great with previous version of Foundry).

I’m getting this error:
Parse error: syntax error, unexpected ‘oggetto’ (T_STRING) in /web/htdocs/www.i--------.org/home/test/index.php on line 269

Tested with 2 different hosting co. using slightly different PHP 7.x.x

(An older Foundry generated website is still working great, now I’m scared when I’ll have to update content).
to check: http://www.isssitaly2019.org/test

UPDATE - Think I got it!

//Check if subject has been entered
if (!$_POST['subject']) {
  $errSubject = 'Inserite l'oggetto del messaggio';
		$errSubjectClass = 'has-error';

– l’oggetto – (means: the subject / in Italian)
it is the ’ ← causing mess.
but… there is no way to avoid the use of apostrophe in Italian!

Thanks in advance for any help.
mark

Hi,
Perhaps, you could try to write 'Inserite l\'oggetto del messaggio (a \ before the apostrophe).
We have the same problem in french et sometimes it works.
For me, I need this only with Form (v.1.3.4.2) but not with Form Pro (v.1.3.5).

1 Like

Good morning @mark_9000! Sorry for taking a while to get back to you. Someone in the neighborhood accidentally cut into the cables for our area’s internet connection. :roll_eyes:

That said, it looks like @annebourdon has got you covered. That is called escaping a quotation mark. In a future update I’ll likely add in some encoding of characters to get around needing to do this. For now though escaping those quotes should work just fine.

Thanks for your help annebourdon!

Any reason why there is no visitor-consent check/link in Form Pro?

Yes, because you can add a checkbox field of your own that is required to do that. :grin: