Wordpress/Woocommerce - 空白的“新帖子"管理页面,无法创建帖子 [英] Wordpress/Woocommerce - blank 'new post' admin page, can't create posts

查看:32
本文介绍了Wordpress/Woocommerce - 空白的“新帖子"管理页面,无法创建帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经拥有这家商店多年了,但从未添加过博客文章,所以我不确定它已经坏了多久 - 可能是从第一个版本开始.

我现在正在考虑向商店添加博客,但选择新帖子"只会显示空白屏幕 - chrome 中的控制台显示以下错误.

<代码>>JQMIGRATE:已安装Migrate,版本1.4.1data.min.js?ver=4.2.0:1 Uncaught TypeError: Object(...) is not a function在 Module.308 (data.min.js?ver=4.2.0:1)在 r (data.min.js?ver=4.2.0:1)在 wp.data.0 (data.min.js?ver=4.2.0:1)在 data.min.js?ver=4.2.0:1post-new.php:2018 Uncaught TypeError:无法读取未定义的属性使用"在 post-new.php:2018在 post-new.php:2020

代码太抽象了,我不确定它实际上在做什么 - 但所有代码都在 wp-includes/js/dist/

抛出错误的代码如下所示(第二行突出显示为失败).

 var A = {减速器:对象(f.flowRight)([S(reducerKey"),S(选择器名称")])(函数(){var t = arguments.length >0 &&void 0 !== 参数[0] ?参数[0]:新的m.a, e = arguments.length >1 ?参数[1]:无效0;开关(e.type){案例START_RESOLUTION":案例FINISH_RESOLUTION":var r = "START_RESOLUTION" === e.type, n = 新 m.a(t);返回 n.set(e.args, r),n;案例INVALIDATE_RESOLUTION":var o = 新 m.a(t);返回 o.delete(e.args),○}返回}),

我已经在 chrome 和 edge 中尝试了这个,两者都得到了完全相同的结果 - 同样的错误,但在 edge 控制台中的信息量较少.

解决方案

好像是guttenburg/block编辑器问题,老经典编辑器,可以用这个插件启用

https://wordpress.org/plugins/classic-editor/

I have had the store for years, but never added blog posts, so I am not sure how long this has been broken - it may have been from the very first version.

I am now looking at adding a blog to the store but selected 'new post' just gives a blank screen - the console in chrome shows the following errors.

> JQMIGRATE: Migrate is installed, version 1.4.1
data.min.js?ver=4.2.0:1 Uncaught TypeError: Object(...) is not a function
    at Module.308 (data.min.js?ver=4.2.0:1)
    at r (data.min.js?ver=4.2.0:1)
    at wp.data.0 (data.min.js?ver=4.2.0:1)
    at data.min.js?ver=4.2.0:1
post-new.php:2018 Uncaught TypeError: Cannot read property 'use' of undefined
    at post-new.php:2018
    at post-new.php:2020

The code is so abstracted that I am not sure what it is actually doing - but all the code is in wp-includes/js/dist/

And the bit of code throwing the error looks like this (the second line is highlighted as failing).

      var A = {
        reducer: Object(f.flowRight)([S("reducerKey"), S("selectorName")])(function() {
            var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : new m.a
              , e = arguments.length > 1 ? arguments[1] : void 0;
            switch (e.type) {
            case "START_RESOLUTION":
            case "FINISH_RESOLUTION":
                var r = "START_RESOLUTION" === e.type
                  , n = new m.a(t);
                return n.set(e.args, r),
                n;
            case "INVALIDATE_RESOLUTION":
                var o = new m.a(t);
                return o.delete(e.args),
                o
            }
            return t
        }),

I have tried this in chrome and edge, both get exactly the same result - same error, but a bit less informative in the edge console.

解决方案

It seems to be a guttenburg/block editor issue, the old classic editor, can be enabled using this plug in

https://wordpress.org/plugins/classic-editor/

这篇关于Wordpress/Woocommerce - 空白的“新帖子"管理页面,无法创建帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆