{"id":11030488,"date":"2018-12-27T17:43:57","date_gmt":"2018-12-27T17:43:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/gutenberg-updating-failed-4\/"},"modified":"2018-12-27T17:43:57","modified_gmt":"2018-12-27T17:43:57","slug":"gutenberg-updating-failed-4","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/gutenberg-updating-failed-4\/","title":{"rendered":"Gutenberg &#8220;Updating Failed&#8221;"},"content":{"rendered":"<p>Alright, I&#8217;ve looked through every post I can find about this error and haven&#8217;t found any useful solutions so I guess I&#8217;ll make my own post.<\/p>\n<p>We have a dev site that has WordPress 5.0.2 installed and its running on PHP 7.0.33. It is a fresh install with 2 plugins but no plugins are active at this time.  When attempting to create a page\/post it throws an &#8220;Updating Failed&#8221; or a &#8220;Publishing Failed&#8221; error. I also cannot preview anything but I think this has something to do with WordPress not having a save to pull the preview from so I think this is a symptom of the main updating failed issue.<\/p>\n<p>First I had issues with 404&#8217;s coming from the REST API calls but I ended up getting that resolved. Server logs are not throwing any errors at all after that. I am getting Javascript errors though:<\/p>\n<p><code>Uncaught (in promise) SyntaxError: Unexpected token &lt; in JSON at position 0<\/code><\/p>\n<p><code>redux-routine.min.js?ver=3.0.3:1 Uncaught (in promise) Error: [object Object]<\/code><\/p>\n<p>Those errors show up immediately upon loading the page.<\/p>\n<p>I get another Javascript error when I click the editor to start typing:<\/p>\n<p><code>editor.min.js?ver=9.0.6:12 Uncaught (in promise) {code: &quot;invalid_json&quot;, message: &quot;The response is not a valid JSON response.&quot;}<\/code><\/p>\n<p>The javascript errors have an arrow that expands to show more information but I&#8217;m not sure its very helpful information. Here is a sample of what all of it looks like:<\/p>\n<pre><code>\tPromise.then (async)\t\t\nn\t@\tdata.min.js?ver=4.1.0:1\nc\t@\tdata.min.js?ver=4.1.0:1\n(anonymous)\t@\tdata.min.js?ver=4.1.0:1\n(anonymous)\t@\tdata.min.js?ver=4.1.0:1\na\t@\tdata.min.js?ver=4.1.0:1\n(anonymous)\t@\tdata.min.js?ver=4.1.0:1\n(anonymous)\t@\tdata.min.js?ver=4.1.0:1\n(anonymous)\t@\teditor.min.js?ver=9.0.6:55\nn\t@\tdata.min.js?ver=4.1.0:1<\/code><\/pre>\n<p>and that sort of stuff continues for many lines.<\/p>\n<p>The network tab has all status code 200&#8217;s and 304&#8217;s.<\/p>\n<p>I&#8217;m using Chrome. I thought it might be some weird Chrome Extension thing but I opened an incognito window that has no browser extensions and had the same issues.<\/p>\n<p>I think I covered everything in here, let me know if there is any more information I can provide that may be helpful, I&#8217;m all ears at this point.<\/p>\n<p>Thanks,<br \/>\nTravis<\/p>\n","protected":false},"template":"","class_list":["post-11030488","topic","type-topic","status-publish","hentry","topic-tag-editor","topic-tag-failed","topic-tag-updating"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11030488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11030488\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11030488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}