更新1.3后网站报错 作者: aixiaxue 时间: 2026-02-05 分类: Windows服务器技术 阅读 58次 更新1.3后,网站除了首页外,其他浏览页面网站顶部均会报错 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /www/wwwroot/wangyubin/var/Widget/Base/Contents.php on line 784 #原因 经证实是网站的编辑插件【EditorMD】和新网站冲突 新网站会访问网站摘要,但是【EditorMD】编辑器不会返回该值,值为null,导致报错 #处理方法 1、关闭网站后台编辑器。我还很喜欢这个编辑器,所以我不会使用这种方式 2、将返回的null值返回空,将不会返回报错 找到var/Widget/Base/Contents.php,第784行 将 ```php [$excerpt] = explode('', $content); ``` 替换为 ```php [$excerpt] = explode('', $content ?? ''); ``` 即可解决 标签: none