{"id":615,"date":"2022-02-14T13:26:34","date_gmt":"2022-02-14T18:26:34","guid":{"rendered":"https:\/\/www.amixa.com\/blog\/?p=615"},"modified":"2022-02-14T13:49:23","modified_gmt":"2022-02-14T18:49:23","slug":"wordpress-there-was-an-error-the-response-is-not-a-valid-json-response","status":"publish","type":"post","link":"https:\/\/www.amixa.com\/blog\/2022\/02\/14\/wordpress-there-was-an-error-the-response-is-not-a-valid-json-response\/","title":{"rendered":"WordPress There was an error. The response is not a valid JSON response."},"content":{"rendered":"<p>If you are running WordPress on IIS and experiencing this issue, another thing you can check is the FastCGI settings to make sure the OPTIONS verb is allowed.<\/p>\n<p>In my case, I am using a brand new setup of WordPress on a Windows Server 2019 IIS 10.0.\u00a0 When I went to Appearance, Widgets, made a change and clicked &#8220;update&#8221; I would get the &#8220;There was an error. The response is not a valid JSON response.&#8221; message.<\/p>\n<p>I looked at all my other settings including SSL, Permalinks, etc. and they all looked good.<\/p>\n<p><strong>THE FIX<\/strong><\/p>\n<p>On the site with this particular &#8220;There was an error. The response is not a valid JSON response.&#8221; issue, the fix was easy.<\/p>\n<p><a href=\"http:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2022\/02\/2022-02-14_13-20-22.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-616\" src=\"http:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2022\/02\/2022-02-14_13-20-22-300x99.jpg\" alt=\"\" width=\"300\" height=\"99\" srcset=\"https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2022\/02\/2022-02-14_13-20-22-300x99.jpg 300w, https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2022\/02\/2022-02-14_13-20-22-1024x339.jpg 1024w, https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2022\/02\/2022-02-14_13-20-22-768x254.jpg 768w, https:\/\/www.amixa.com\/blog\/wp-content\/uploads\/2022\/02\/2022-02-14_13-20-22.jpg 1429w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Go to <strong>Handler Mappings<\/strong> for the site in question.<\/p>\n<p>Double click the version of PHP that is setup (under PHP Manager)<\/p>\n<p>Go to <strong>REQUEST RESTRICTIONS<\/strong><\/p>\n<p><strong>VERBS<\/strong><\/p>\n<p>Make sure either &#8220;<strong>ALL<\/strong>&#8220;, or &#8220;<strong>One of the following<\/strong>&#8221; is selected.\u00a0 If &#8220;<strong>One of the following<\/strong>&#8221; is selected, use this list:<\/p>\n<p><strong>GET,HEAD,POST,OPTIONS<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Save your changes\/close the dialog boxes and retry your save operation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are running WordPress on IIS and experiencing this issue, another thing you can check is the FastCGI settings to make sure the OPTIONS verb is allowed. In my case, I am using a brand new setup of WordPress on a Windows Server 2019 IIS 10.0.\u00a0 When I went to Appearance, Widgets, made a change and clicked &#8220;update&#8221; I<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,22,41],"tags":[5,43,145,42],"class_list":["post-615","post","type-post","status-publish","format-standard","hentry","category-iis-tips-n-tricks","category-windows-server","category-wordpress-tips","tag-iis","tag-php","tag-valid-json","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/comments?post=615"}],"version-history":[{"count":1,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/615\/revisions"}],"predecessor-version":[{"id":617,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/615\/revisions\/617"}],"wp:attachment":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/media?parent=615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/categories?post=615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/tags?post=615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}