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;
        }

Leave a Reply

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