{"id":2490,"date":"2024-02-14T15:10:53","date_gmt":"2024-02-14T14:10:53","guid":{"rendered":"https:\/\/hoover.gplrank.de\/?p=2490"},"modified":"2024-02-14T15:16:14","modified_gmt":"2024-02-14T14:16:14","slug":"wordpress-new-editor-invalid-json-response-on-ubuntu-22-04-what-it-means-and-how-to-fix-it","status":"publish","type":"post","link":"https:\/\/hoover.gplrank.de\/?p=2490","title":{"rendered":"WordPress: new editor &#8220;Invalid JSON response&#8221; on Ubuntu 22.04 &#8212; what it means and how to fix it."},"content":{"rendered":"\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"306\" height=\"165\" src=\"https:\/\/hoover.gplrank.de\/wp-content\/uploads\/2024\/02\/download.png\" alt=\"\" class=\"wp-image-2493\" srcset=\"https:\/\/hoover.gplrank.de\/wp-content\/uploads\/2024\/02\/download.png 306w, https:\/\/hoover.gplrank.de\/wp-content\/uploads\/2024\/02\/download-300x162.png 300w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/figure>\n\n\n\n<p>In the world of cryptic and rather unhelpful error messages, &#8220;invalid json response&#8221; when trying to save &amp; update a post or page in wordpress&#8217; new editor runs a close second to my all time favourite &#8220;invalid shared memory realm&#8221; from Oracle&#8217;s absysmal overhyped, and overly expensive database stuff. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>So what do you have to do? Simple: <\/p>\n\n\n\n<p>o become &#8220;root&#8221;<\/p>\n\n\n\n<p>o edit \/etc\/apache2\/apache2.conf using the editor of your choice (nano, emacs, &#8230;) <\/p>\n\n\n\n<p>o find the section for \/var\/www<\/p>\n\n\n\n<p>o Change &#8220;AllowOverride None&#8221; to &#8220;AllowOverride All&#8221;<\/p>\n\n\n\n<p>o make sure mod_rewrite for apache is installed and enabled (a2enmod rewrite) <\/p>\n\n\n\n<p>o reload the apache config using systemctl reload apache2 <\/p>\n\n\n\n<p>That&#8217;s it, switching to SEO-friendly permalinks in Settings -> permalinks on your wordpress site should no longer break making changes to posts \/ pages and saving them. <\/p>\n\n\n\n<p>Oh yeah, I think I left out the &#8220;what it means&#8221; part, but hey, I guess you can come up with an explanation of your own \ud83d\ude42 <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the world of cryptic and rather unhelpful error messages, &#8220;invalid json response&#8221; when trying to save &amp; update a post or page in wordpress&#8217; new editor runs a close second to my all time favourite &#8220;invalid shared memory realm&#8221; from Oracle&#8217;s absysmal overhyped, and overly expensive database stuff. So what do you have to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-2490","post","type-post","status-publish","format-standard","hentry","category-it"],"_links":{"self":[{"href":"https:\/\/hoover.gplrank.de\/index.php?rest_route=\/wp\/v2\/posts\/2490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoover.gplrank.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hoover.gplrank.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hoover.gplrank.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hoover.gplrank.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2490"}],"version-history":[{"count":2,"href":"https:\/\/hoover.gplrank.de\/index.php?rest_route=\/wp\/v2\/posts\/2490\/revisions"}],"predecessor-version":[{"id":2494,"href":"https:\/\/hoover.gplrank.de\/index.php?rest_route=\/wp\/v2\/posts\/2490\/revisions\/2494"}],"wp:attachment":[{"href":"https:\/\/hoover.gplrank.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hoover.gplrank.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hoover.gplrank.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}