• skylarpurifoy

    (@skylarpurifoy)


    Hello,

    After a user submits an elementor form on our site, the error message “x parse error” shows up instead of the “Your submission was successful”. I checked the console and the ajax request. The console shows no errors and the ajax request is successful and shows the “Your submission was successful” text. I talked with Elementor support and when we swapped out the WP Ocean Child theme for another then the correct message was displayed when I submitted a form. They said there is some code in the child theme that is changing the success message to the error. Any help or insight on this is greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter skylarpurifoy

    (@skylarpurifoy)

    here is an image of the behavior

    Hello @skylarpurifoy,

    Thank you for reaching out,

    It seems you’ve some customization in your child theme that affects that form on your website. So, since you may have many customizations in the child theme on your website, please do the steps below to recheck your issue and let us know the results.

    Troubleshooting child theme:
    1- Remove all customization on the child theme.
    2- add your customization one by one to the child theme.
    3- After adding each customization code, check your issue

    Note 1: in the staging website, if you have a cache plugin or server cache. You need to clear its cache contents or disable them.

    Note 2: Please get a full backup from your website before removing all customization.

    Note 3: If you have any cache plugin or server cache(CDN / Browser Cache and Cookies and …), you need to clear its cache contents or disable them to see your changes. Also, remember to click on the regenerate all assets file and data in Elementor > Tools.

    Furthermore, I can see the Ajax call shows as successful, but the message in the form displays a parse error. It seems that it could be just a simple issue with the text message in the form. In this case, you can enable the WordPress debugger and check the log file for actual errors.

    I hope it helps.
    Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse Error on Form Submission’ is closed to new replies.