Title: Infinite loading &amp; invalid_json error
Last modified: July 14, 2021

---

# Infinite loading & invalid_json error

 *  Resolved [atip](https://wordpress.org/support/users/atip/)
 * (@atip)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/infinite-loading-invalid_json-error/)
 * Hi!
    I have a problem on my website with Contact Form 7. After pressing ‘submit’
   it causes infinite spinning wheel rotation and doesn’t show success message. 
   However email is successfully sent.
 * I get error in console:
 *     ```
       {code: "invalid_json", message: "The response is not a valid JSON response."}
       code: "invalid_json"
       message: "The response is not a valid JSON response."
       ```
   
 * Error is thrown in:
    [https://artbud.kyiv.ua/wp-content/plugins/contact-form-7/includes/js/index.js](https://artbud.kyiv.ua/wp-content/plugins/contact-form-7/includes/js/index.js)
   On line: 312
 * Wordpress ver. 5.7.2
 * Installed and activated plugins:
    Contact Form 7 Advanced Custom Fields 5.9.4
   Photo Gallery 1.5.68 Redirection 5.1.1 Webcraftic Cyr to Lat reloaded 1.2.0 WP
   Google Maps 8.1.9
 * Steps I made to solve the issue:
    - I tried to deactivate all plugins it didn’t help
    - I tried to update permalinks in **Settings->Permalinks**
    - I tried to create another contact form
    - Everything works just fine on my demo webpage – [https://artbud.neon-studio.site/](https://artbud.neon-studio.site/)
 * Reproduction steps:
    1. Go to home page 2. Click on big yellow button with label‘
   Обратный звонок’ 3. Try to send message
 * I have the same problem with another form on this page – [https://artbud.kyiv.ua/kontakty/](https://artbud.kyiv.ua/kontakty/)
   (
   When WP Google Maps activated it throws an error but if I deactivate this plugin
   I see error from Contact Form 7).
 * Thanks for your help in advance!
    -  This topic was modified 4 years, 8 months ago by [atip](https://wordpress.org/support/users/atip/).
      Reason: Added Wordpress version
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finfinite-loading-invalid_json-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [atip](https://wordpress.org/support/users/atip/)
 * (@atip)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/infinite-loading-invalid_json-error/#post-14659833)
 * I was able to solve the problem with help of my hosting provider. Hope this will
   be useful if you also encounter this problem:
    You need to disable **display_errors**
   in PHP settings of your hosting.

Viewing 1 replies (of 1 total)

The topic ‘Infinite loading & invalid_json error’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [atip](https://wordpress.org/support/users/atip/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/infinite-loading-invalid_json-error/#post-14659833)
 * Status: resolved