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 which 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

3 thoughts on “Contact Form 7 Submit doesn’t work: SyntaxError: JSON.parse

  1. 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.

Comments are closed.