Contact Form 7: invalid_json error whith WP Super Cache enabled
-
Hi all! I’m struggling and I hope you can help me: I just installed WP Super Cache and ran into a serious problem with Contact Form 7: as soon as I activate caching, sending CF7 forms no longer works. Console shows the error “Object { code: “invalid_json”, message: “The response is not a valid JSON response.” }”. Checking the requests using the network inspector, the REST API from Contac Form 7 (/wp-json/contact-form-7/v1/contact-forms/190/feedback) is responding with the source code of the start page instead of the expected JSON. What I tried so far to resolve the issue:
- adding “/wp-json/” to the “Rejected URL Strings” in advanced config
- activating “late init” in advanced config
- deactivating 304 caching in advanced config
- disable dynamic caching in advanced config
- deactivating potentially conflicting plugins (Autoptimize, WP-Optimize)
None of that helped so far and I did not find a solution here, either. I hope you have any further ideas…
Thank you!
The topic ‘Contact Form 7: invalid_json error whith WP Super Cache enabled’ is closed to new replies.