黑白帽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

    In this primer, we’ll focus on the different kinds of sq. and rectangular patterns in tailored garments and present you tips on how to “check yourself” without wrecking your self. The windowpane is a basic looking examine shirt, the design consists of blue verify on a white background to offer that added look. Suitable for each formal or that informal occasion, seems good with a suit or certainly open necked with denims, whatever the event this shirt will not look misplaced. Mufti was launched in 1998 with one driving ambition – to offer Indian men with another dressing solution, that didn’t conform to the ‘uniform’ codes of mainstream fashion. Mr Kamal Khushlani, our founder, mastered the artwork of producing shirts in fabrics, colours and match that sat at the intersection of international style and the Indian spirit.

    If you wish to be on the safer aspect then we’d suggest you to go together with the lighter facet of the shirt colours. Our first recommendation is to go with the mens white windowpane shirts since they’re the most versatile. You can type the white windowpane examine shirt with almost something and thus would make for a cool formal style.

    It makes excellent sense to go for half examine shirts for males since they’re the best for summers when you don’t want to wear full sleeve verify shirt. The smartest thing about these examine shirts is that they are in style all through the years. Additionally, not solely as a part of a proper outfit but in addition as an integral a part of trend, half check shirts for males have all the time been well-liked. For instance, even within the 80’s and early ninety’s, you can spot males wearing half examine shirts. Even at present these haven’t lost their floor as there has been huge improve within the vary of fabric and styling. Check shirts are not just formal wear; they’re smart-casual dressing materials for positive.

    Get Free Shipping: White Shirt Men’s

    Small packing containers simply accommodate a tie, as a outcome of the simple sample doesn’t assert itself that a lot. You can still put on a tie, perhaps a knit tie from Fort Belvedere, or something with texture, however an open collar appears good too with a bigger grid, particularly in warm weather. Whatever the size of the grids, properly lining up the rows of squares on the parts of a shirt which might be made from different pieces of material, like where the shoulder and sleeve meet, can be an indicator of qualityto search for. Checks are outlined by horizontal and vertical strains that cross one another at right angles, forming squares or rectangles on the fabric. Therefore, they’re always more complex than stripes, which also means they tend to be bolder and extra casual.

    For instance if you’re buying for summer use then go with windowpane linen costume shirts. Usually folks avoid linen for formal use since they tend to wrinkle simply but when it is for informal use then linen is a good alternative. When the occasion is more of a fun and dressy one then you’ll be able to strive going with satin windowpane costume shirt and such. For example in case you are looking for a formal windowpane costume shirt you could style with the suits and blazers then we might recommend you to go together with the windowpane cotton gown shirts since they’re the most comfortable alternative.

    We do our greatest to course of and ship orders inside 1-2 business days (8 a.m. to five p.m. CT, M-F, not together with holidays). Our complete product line is made with recycled materials or sustainable components.

    待审核
    Donaldephen3周前 (09-10)