Form gives a parse error when send email option is checked
Permalink
I have 2 forms on my site that worked fine in testing whilst the site was being built in a sub folder but now fail with this error if the send email notification option is checked now that the site has been moved to the root.
The form collects the data which can be accessed via the admin panel and doesn't give the error as long as I leave the email notification unchecked. We need those email notifications though.
Could the move to the root folder have caused this? I'm on 5.6. I've compared the block_form_submission.php to the version in the download package, nothing is missing, encoding is ansi. I've tried deleteing the form block and rebuilding it. I've tried to create a new form on a new page, same problem. The move went smoothly and - other than some .htaccess editing - everything else about the site seems to work as it should.
Any suggestions would be gratefully received.
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in /home/st10/public_html/mail/block_form_submission.php on line 14
The form collects the data which can be accessed via the admin panel and doesn't give the error as long as I leave the email notification unchecked. We need those email notifications though.
Could the move to the root folder have caused this? I'm on 5.6. I've compared the block_form_submission.php to the version in the download package, nothing is missing, encoding is ansi. I've tried deleteing the form block and rebuilding it. I've tried to create a new form on a new page, same problem. The move went smoothly and - other than some .htaccess editing - everything else about the site seems to work as it should.
Any suggestions would be gratefully received.
You should also check your 'overrides cache' in the Dashboard. Flip it off until you are happy with your site and then flip it back on again for speed.