WordPress升级7.3之后导致致命错误,页面无法正常显示
第一步
启用Wordpress的Debug模式,查看错误信息。
1 2 |
// 修改/wp-config.php define('WP_DEBUG', true); |
第二步根据错误信息排查问题
提示:Fatal error: Uncaucht error: Call to a member function id() xxx
/crayon-syntax-highlighter-php
/
显然crayon-syntax-highlighter-php
组件不能用了,可以理解,毕竟几年未更新从插件了。官方哭未更新,找到了follows的一个修复,这里有说明
提取了下变动的内容:(根目录(/wp-content/plugins/crayon-syntax-highlighter/
)下的5个文件)
1 2 3 4 5 |
crayon_formatter.class.php crayon_highlighter.class.php crayon_langs.class.php crayon_settings_wp.class.php crayon_settings.class.php |
最后,覆盖替换,关闭调试模式