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

    Again, less atmospheric, however you presumably can see better and it’s less distracting. The MS12 Mini is the successor of the a lot bigger MS12, however at about half of of its size. I kid you not, this one is even brighter at sixty five,000 lumens, and may even fit in your cargo or jack pocket.

    Manufacturers usually constructed them to be small and compact, however don’t assume that means you’re shedding energy. These sleek, tiny flashlights pack a lot of punch regardless of how small they are. The Flood profile refers to a light-weight that is unfold more extensively from the lens, enabling the person to have a wider subject of view. Most of the time, a flashlight reaches its highest lumen output at the throw profile.

    These batteries are capable of between 500 and 1,000 charges on average before they start degrading. By turning the crank on the flashlight, you employ kinetic power to generate electrical energy in order that the flashlight can perform with nothing more than a little extra effort on your part. Some hand-crank flashlights are even designed with extra emergency features, like a built-in radio, a seat-belt cutter, or an emergency hammer that’s designed for breaking automotive home windows. Take a glance below at the listing of top merchandise for help in finding the most effective hand-crank flashlight in your emergency package. LED flashlights have largely changed these with conventional light bulbs.

    Many flashlights with excessive lumen levels skimp on these features for the sake of focusing solely on brightness. RunningSnail’s hand-crank flashlight comes with all the necessary features for a flashlight but in addition includes a quantity of extras that make this gadget invaluable for emergencies. The light degree of a hand-crank flashlight is measured in lumens with a median brightness degree between eight and a hundred and fifty lumens, depending on the precise product. To put it in perspective, a normal cell phone flashlight will often produce about 10 lumens, whereas a standard incandescent mild bulb can create about 800 lumens. Hand-crank flashlights are normally intended for standard use throughout emergency situations, so it isn’t widespread to see merchandise that exceed 300 lumens. Also notice, manufacturers might listing the highest attainable lumen output of the LED of their light—although they is in all probability not powering it to its full functionality to scale back heat or extend battery life.

    None of that basically issues all that a lot although, as a outcome of a lightweight with a ton of lumens doesn’t necessarily mean it’s the brightest in practice—or the best mild for you. The Nitecore TM10K lets you carry a six-emitter light that tops out at 10,000 lumens right off your belt or in your pocket. A massive momentary swap on the bottom plus a separate power and mode facet switches offer straightforward operation. Since we reviewed the Acebeam X80-GT with 32,500 lumens, we couldn’t lose out and reviewed the X80-GT2 as properly.

    A handy 2-point attachment point permits you to grasp the battery close to your tools. With flashlights such because the G collection Klarus lights, to unlock them you probably can triple press both the tail swap or facet switch three times. Each CLARITY™ 365 comes with an induction charger for wireless charging. The battery doesn’t have to be removed to charge it, preventing contamination contained in the unit. An indicator gentle will inform the user when the flashlight is fully charged in the induction charger, which is compatible with both AC and USB shops. The pip boy mild is much less harsh and fades out more gradually.

    Buy Now with Free Shipping: spytostyle

    As you’ll see in the article under, all of it comes right down to lumen rating which you’ll understand after studying my tactical flashlight critiques. This hand-crank flashlight has a small reading lamp, a pink SOS beacon, and a primary LED mild to light up the campsite. Built-in charging ports to attach a cell phone or pill are extraordinarily useful. The outer frame of this flashlight is made from impact- and waterproof ABS material that’s suitable for protecting the interior components during a protracted hike or portage.

    待审核
    Donaldephen3周前 (09-10)