Buy Now
Sign in

Submitting form now results in error T_ENCAPSED_AND_WHITESPACE

MaestroC , November 14 2018
M
MaestroC 67
November 14 2018 #381496
We've had a pretty complex form done in V5 for several years now. Recently it has started throwing errors when a user submits it. Exact error is:
 0 - syntax error, unexpected ''/chronoforms/pdfs/SurveyForm/' (T_ENCAPSED_AND_WHITESPACE)
I've turned on debugging but it doesn't show me anything additional so I don't know where this is coming from. It appears to be saving the data to the database but it is not sending out the emails that it should after a user submits the form. Example of the form is here:
https://www.quantumleapuniversity.org/gps-survey?coach=56
Is this error due to something in the TCPDF creation code or is it somewhere else? In any case if no changes to the code of the form have been made is it possible an update to CF or TCPDF could be the cause of this error?
EDIT- I thought it might be related to TCPDF so I tried to install the action again with the version available in the CF downloads area. When I try to install the TCPDF action I get the error "Class ZipArchive not found".
SOLUTION FOUND? I had to turn my PHP on that entire account back down to 5.6. When I did so the error went away Is CF 5.0.17 not PHP7 compatible?
healyhatman 6.1
November 14 2018 #381498
CF5 is getting pretty old now and yes there are increasing reports of incompatibilities with PHP7
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman

You can now copy+paste code from forums
GreyHead 63.5
November 14 2018 #381502
Hi MaestroC,
I am only seeing one irritating PHP Notice with PHP 7.
The error message looks as though it might be coming somehow from the name of the TCPDF file being saved. Could that be it?
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
M
MaestroC 67
May 12 at 14:42 #386807
Sorry to reopen this but I am finally getting around to trying to fix this as I really need to get this site running on PHP7.1.
GreyHead, you mention you think it might be related to saving the file name. Would that be related to the TCPDF action or would it be somewhere else in the form?
Is there anything you can think of that is different between PHP5.6 and 7.1 that would affect that? The form saves just fine when I have it switched back to php5.6 but gives the (T_ENCAPSED_AND_WHITESPACE) error when I turn it up to 7.1.
GreyHead 63.5
May 13 at 15:57 #386827
Hi MaestroC,
It's probably due to some extra spaces somewhere - maybe in a file name or from some Custom Code.
I suggest that you make a copy of your form and try removing any custom code around the TCPDF action - that should help you pind down exactly what is causing this.
Note: I haven't seen this reported elsewhere so it probably isn't arising directly from the CF code.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much