{"id":1553,"date":"2020-05-04T17:38:39","date_gmt":"2020-05-04T15:38:39","guid":{"rendered":"https:\/\/www.wp-moon.com\/?p=1553"},"modified":"2020-05-14T11:58:04","modified_gmt":"2020-05-14T09:58:04","slug":"problem-when-publishing-publishing-failed","status":"publish","type":"post","link":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/","title":{"rendered":"Problem when publishing: Publishing failed"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_custom_heading text=&#8221;Problem&#8221; use_theme_fonts=&#8221;yes&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]You edit a page, you try to publish or even just add an image and you encounter the following error:[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<code>Publishing failed. Error message: The response is not a valid JSON response.<\/code>[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_custom_heading text=&#8221;The cause&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]There are two main causes for this problem<\/p>\n<ul>\n<li>Problem with permalinks: a permalink, to keep it simple, represents the URLs of the pages of your site. In WordPress, you can use permalinks to manage the link format of your pages. Example:<em> www.exemple.com\/?p=953<\/em> can be changed to <em>www.exemple.com\/my-post<\/em>, which is still more readable.<\/li>\n<li>Your site has &#8220;mixed-content&#8221;: these are resources that are loaded in http and others in https in your site, <a href=\"https:\/\/www.wp-moon.com\/what-is-the-cause-about-internal-server-error\/\" title=\"What is the cause about &#8220;Internal Server Error&#8221; ?\">causing alerts or sometimes some errors<\/a>.<\/li>\n<\/ul>\n<p>[\/vc_column_text][\/vc_column][vc_column][vc_custom_heading text=&#8221;The solution&#8221; use_theme_fonts=&#8221;yes&#8221;][vc_column_text]If your problem is related to permalinks, there is a simple tip to solve your problem:<\/p>\n<ul>\n<li>Go to your WordPress administration<\/li>\n<li>Go to &#8220;Settings&#8221; and then &#8220;Permalinks&#8221;.<\/li>\n<li>And&#8230; simply save the settings directly. This will re-save good settings (WordPress will generate the URL rewriting rules and will try to include them in the .htaccess file at the root of your site; if writing the htaccess file is impossible, check the read\/write permissions linked to this file).<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>If your concern is related to mixed content, it should be able to identify if you have resources loaded in http and others in https. You can observe this in a console when you are on each page of your website (to open the developer console when you visit a page: F12 under Firefox \/ Chrome, CTRL + SHIFT + C under Opera; then go to the &#8220;Console&#8221; tab). Example of an alert result :<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-1496\" src=\"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/mixed.jpg\" alt=\"\" width=\"603\" height=\"84\" srcset=\"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/mixed.jpg 1178w, https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/mixed-300x42.jpg 300w, https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/mixed-1024x143.jpg 1024w, https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/mixed-768x107.jpg 768w\" sizes=\"(max-width: 603px) 100vw, 603px\" \/><\/p>\n<p>You will then have to locate each problem and correct them in the right places. If necessary, you may need to re-upload elements to https.<\/p>\n<p>You can also check if your WordPress is properly configured :<\/p>\n<ul>\n<li>Login to your WordPress administration<\/li>\n<li>Go to &#8220;Settings&#8221; then &#8220;General&#8221;.<\/li>\n<li>Look at the WordPress address \/ your site address, if it starts with http or https. If necessary, correct it and save the changes.<\/li>\n<\/ul>\n<p>[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>You edit a page, you try to publish or even just add an image and you encounter the following error: Publishing failed. Error message: The response is not a valid JSON response.<\/p>\n","protected":false},"author":2,"featured_media":1529,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[111,110],"class_list":["post-1553","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fix-errors","tag-publishing","tag-update"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Problem when publishing: Publishing failed - WP Moon<\/title>\n<meta name=\"description\" content=\"You edit a page, you try to publish or even just add an image and you encounter the following error: Publishing failed. Error message: The response is not a valid JSON response.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Problem when publishing: Publishing failed - WP Moon\" \/>\n<meta property=\"og:description\" content=\"You edit a page, you try to publish or even just add an image and you encounter the following error: Publishing failed. Error message: The response is not a valid JSON response.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Moon\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpmoonwebsite\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-04T15:38:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-14T09:58:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/publish.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Alexandre G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@alexgaboriau\" \/>\n<meta name=\"twitter:site\" content=\"@WPMoon4\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alexandre G\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Problem when publishing: Publishing failed - WP Moon","description":"You edit a page, you try to publish or even just add an image and you encounter the following error: Publishing failed. Error message: The response is not a valid JSON response.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/","og_locale":"en_US","og_type":"article","og_title":"Problem when publishing: Publishing failed - WP Moon","og_description":"You edit a page, you try to publish or even just add an image and you encounter the following error: Publishing failed. Error message: The response is not a valid JSON response.","og_url":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/","og_site_name":"WP Moon","article_publisher":"https:\/\/www.facebook.com\/wpmoonwebsite","article_published_time":"2020-05-04T15:38:39+00:00","article_modified_time":"2020-05-14T09:58:04+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/publish.jpg","type":"image\/jpeg"}],"author":"Alexandre G","twitter_card":"summary_large_image","twitter_creator":"@alexgaboriau","twitter_site":"@WPMoon4","twitter_misc":{"Written by":"Alexandre G","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/#article","isPartOf":{"@id":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/"},"author":{"name":"Alexandre G","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/person\/72a64e6910977ec9e4b32fd8da54369d"},"headline":"Problem when publishing: Publishing failed","datePublished":"2020-05-04T15:38:39+00:00","dateModified":"2020-05-14T09:58:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/"},"wordCount":414,"commentCount":0,"publisher":{"@id":"https:\/\/www.wp-moon.com\/en\/#organization"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/publish.jpg","keywords":["publishing","update"],"articleSection":["Fix Errors"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/","url":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/","name":"Problem when publishing: Publishing failed - WP Moon","isPartOf":{"@id":"https:\/\/www.wp-moon.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/#primaryimage"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/publish.jpg","datePublished":"2020-05-04T15:38:39+00:00","dateModified":"2020-05-14T09:58:04+00:00","description":"You edit a page, you try to publish or even just add an image and you encounter the following error: Publishing failed. Error message: The response is not a valid JSON response.","breadcrumb":{"@id":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/#primaryimage","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/publish.jpg","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/04\/publish.jpg","width":1280,"height":720,"caption":"publish"},{"@type":"BreadcrumbList","@id":"https:\/\/www.wp-moon.com\/en\/problem-when-publishing-publishing-failed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wp-moon.com\/en\/"},{"@type":"ListItem","position":2,"name":"Fix Errors","item":"https:\/\/www.wp-moon.com\/en\/category\/fix-errors\/"},{"@type":"ListItem","position":3,"name":"Problem when publishing: Publishing failed"}]},{"@type":"WebSite","@id":"https:\/\/www.wp-moon.com\/en\/#website","url":"https:\/\/www.wp-moon.com\/en\/","name":"WP Moon","description":"","publisher":{"@id":"https:\/\/www.wp-moon.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wp-moon.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.wp-moon.com\/en\/#organization","name":"WP Moon","url":"https:\/\/www.wp-moon.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/logo.png","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2020\/02\/logo.png","width":290,"height":95,"caption":"WP Moon"},"image":{"@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/wpmoonwebsite","https:\/\/x.com\/WPMoon4"]},{"@type":"Person","@id":"https:\/\/www.wp-moon.com\/en\/#\/schema\/person\/72a64e6910977ec9e4b32fd8da54369d","name":"Alexandre G","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","url":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","contentUrl":"https:\/\/www.wp-moon.com\/wp-content\/uploads\/2023\/09\/312419460_10229483707296045_2919774527885824513_n-100x100.jpg","caption":"Alexandre G"},"description":"Alexandre, Web Developer &amp; Website Editor. I've been using WordPress for over 10 years in my professional environment and on personal projects. I created WP Moon to teach you how to use this CMS, solve your problems and show you all the tricks.","sameAs":["https:\/\/www.croque-pixel.com\/","https:\/\/x.com\/alexgaboriau","https:\/\/www.youtube.com\/@wp_moon\/videos"],"url":"https:\/\/www.wp-moon.com\/en\/author\/wp-moon\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts\/1553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/comments?post=1553"}],"version-history":[{"count":0,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/posts\/1553\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/media\/1529"}],"wp:attachment":[{"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/media?parent=1553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/categories?post=1553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wp-moon.com\/en\/wp-json\/wp\/v2\/tags?post=1553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}