黑白帽SEO,跨境电商,外贸独立站,站群

WordPress发布失败。错误信息:此响应不是合法的JSON响应

WordPress进行https改造之后,后台发布文章,提示:

发布失败。错误信息:此响应不是合法的JSON响应

可能性及解决方法:

第一种情况:Wordpress编辑器插件的问题

网上有很多文章都说是“新版古腾堡编辑器”的问题,如果真是这个问题,解决方法如下:

直接在模版文件的 fuctions.php 的600多行的样子直接添加代码

//禁用 Gutenberg 编辑器
 add_filter('use_block_editor_for_post', '__return_false');
 remove_action( 'wp_enqueue_scripts', 'wp_common_block_scripts_and_styles' );

第二种情况:Wordpress WP Rest API的问题

如果你在发表文章的时候通过浏览器的F12功能来审查资源,你会发现WP REST API会报错,这个时候可以尝试禁用WP REST API来测试是否正常工作。

想要禁用WP REST API,可以安装下面这个插件来实现。

WP REST API插件地址:https://cn.wordpress.org/plugins/disable-wp-rest-api/

第三种情况:https中请求了http文件

F12发现错误提示:

Mixed Content: The page at ‘xxx’ was loaded over HTTPS, but requested an insecure resource ‘xxx’. This request has been blocked; the content must be served over HTTPS.

解决办法在head中添加:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

意思是自动将http的不安全请求升级为https。

我是第三种方法解决的。

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    When shopping for a coat, remember to select the right colour, measurement and magnificence. You can wear the coat with high-waisted denims or ankle boots for a more edgy look, or go for a extra classic look with a blazer and pencil skirt. Accessories like scarves and sunglasses complete the look. The coat ought to be tailored to suit snugly and intensify curves in the best locations. One of the gadgets you’ll need is a women’s wool houndstooth coat. We provide free shipping on all orders over $50, and we now have a big selection of coats to choose from.

    And what higher method to do this than with a trendy +j cashmere blend lengthy wrap coat? This type is new and trending, and the most effective materials to use are 100 percent wool and cashmere blends. Not only will this coat hold you warm, but it’s going to additionally add a touch of luxurious and class to your look. Wrap yourself up in fashion this winter season with a +j cashmere mix long wrap coat.

    Don’t Misss this Offer: Women Cashmere Blend Long Wrap Coat

    This great piece of clothes is out there in varied colors and types, making it sure to fit any woman’s type. The coat is made of nice knit woolen material that’s durable and comfortable to wear, adding a contact of luxury to any outfit. Women’s wool houndstooth coats are a must-have this fall season.

    No exception is the +J winter collection, which launched at present. Actually good deals, good buying advice, and unique reductions. Send me exclusive provides, unique gift ideas, and customized tips for shopping and selling on Etsy.

    From heat and sensible to luxurious and classy, we’ve a coat for everybody. When it comes to buying a women’s wool coat, there are numerous options to choose from. It’s essential to search out the proper one in your specific wants and local weather. For instance, if heat is your high precedence, go for a coat created from heavy-duty sheepskin. When the winter winds start howling, there’s nothing better than slipping into a warm, trendy coat.

    待审核
    Donaldephen3个月前 (09-10)