Contact Form 7 Submit doesn’t work: SyntaxError: JSON.parse

I experienced situation with Contact Form 7 on one WordPress website recently, when submit button didn’t want to work at all. Spinning circle didn’t appeared, not any message (error or succesfuly sent) email wasn’t sent, nothing. On click to Submit button just notning happened.
When I opened Developer Tools Console in Chrome browser, I got this error message:
JSON.parse: unexpected non-whitespace character after JSON data at line X column X of the JSON data

Some may see JSON.parse: unexpected character at line X column X of the JSON data

After hours of figuring out the solution, here is how I resolved it:

I found out that “WP Super Cache” plugin whitch was deleted previously, left two files that produced the error. The files
advanced-cache.php
and
wp-cache-config.php

was in “wp-content” folder. I just deleted that two files and voila, Contact Form 7 submit button worked perfectly as it should.

contact form 7 submit doesnt work

Facebooktwitterredditpinterestlinkedinmail

3 comments for “Contact Form 7 Submit doesn’t work: SyntaxError: JSON.parse

  1. Sohaib Aziz
    December 14, 2016 at 8:01 pm

    Really helped me man ! Thanks

  2. Roms
    March 12, 2019 at 8:50 pm

    Totally what I needed to resolve the issue!

  3. August 21, 2019 at 10:59 am

    I hope this helps you fix your Contact Form 7 validation and syntax errors quickly with less work to do digging through comments, and posts that are close, but don’t have the same problem as you.

Leave a Reply

Your email address will not be published. Required fields are marked *