WordPress 从4.9.8升级到5.0.2 编辑器出错的问题

顺利升级后,打开新帖子或者编辑已有帖子,均提示:The editor has encountered an unexpected error. 点击 Copy Error,提示:

TypeError: Cannot read property ‘show_ui’ of undefined    at http://nanzt.info/wp-includes/js/dist/editor.min.js?ver=9.0.6:55:240816

原因在于nginx try_files的设置,修改为如下,重启nginx则问题消失。

location / {
                try_files $uri $uri/ /index.php$is_args$args;
        }

1 thought on “WordPress 从4.9.8升级到5.0.2 编辑器出错的问题

  1. idoctorcloud

    你好,请问下我的网站也出现了这样的情况,有一个错误跟你的一样,但是不止这一个,有很多个,也是修改这一项就可以了吗?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *