Title: Parse error when submitting form
Last modified: August 30, 2016

---

# Parse error when submitting form

 *  [johhhn](https://wordpress.org/support/users/johhhn/)
 * (@johhhn)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/parse-error-when-submitting-form/)
 * Hi! I spent the last day creating a 3 page form and have ‘tested’ it throughout
   and today after finally finishing it, I get a Parse error when submitting it.
 * Error when submitting:
 *     ```
       Parse error: syntax error, unexpected '{' in /home/dd/public_html/dd/wp-content/plugins/caldera-forms/classes/core.php(1147) : runtime-created function on line 1
   
       Fatal error: Function name must be a string in /home/dd/public_html/dd/wp-content/plugins/caldera-forms/classes/core.php on line 1149
       ```
   
 * I also need to purchase the Stripe plugin, but would like help resolving this
   issue as soon as possible.
 * Thank you for creating this plugin, it works really well!
 * John
 * [https://wordpress.org/plugins/caldera-forms/](https://wordpress.org/plugins/caldera-forms/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [johhhn](https://wordpress.org/support/users/johhhn/)
 * (@johhhn)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/parse-error-when-submitting-form/#post-6246874)
 * I found the source of the problem and it had to do with calculations.
 * Manual calculations seem to work and allow you to submit without errors.
 *  [raoabid491](https://wordpress.org/support/users/raoabid491/)
 * (@raoabid491)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/parse-error-when-submitting-form/#post-6246963)
 * Hi,
 * I had the same issue. by the hint of [@johhhn](https://wordpress.org/support/users/johhhn/),
   i checked and it was a faulty calculation in a field. Removing that field solved
   the issue.
 * [@johhhn](https://wordpress.org/support/users/johhhn/) Thanks.
 *  [clemixx](https://wordpress.org/support/users/clemixx/)
 * (@clemixx)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/parse-error-when-submitting-form/#post-6247033)
 * Hey guys,
 * I’ve got the same issue and it’s also because of the calculation field. I’m just
   trying to use a variable which I created in the variables tab.
 * Your solution is not to use the field??^^ That’s not a solution. I want to use
   it that way.
    Is this a bug or is there a way to use variables in a calculation?
   I’m quite sure I made it the right way, I tryed different cases and values.
 * For now I built a solution around it by creating a hidden input field with a 
   value instead of a variable. That works. But is not nice.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Parse error when submitting form’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

## Tags

 * [caldera](https://wordpress.org/support/topic-tag/caldera/)

 * 3 replies
 * 3 participants
 * Last reply from: [clemixx](https://wordpress.org/support/users/clemixx/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/parse-error-when-submitting-form/#post-6247033)
 * Status: not resolved