繁体   English   中英

Modx:可捕获的致命错误:传递给modParser :: collectElementTags()的参数2必须为数组类型,给定为null

[英]Modx: Catchable fatal error: Argument 2 passed to modParser::collectElementTags() must be of the type array, null given

刚开始使用新项目,并想尝试ModX将其用于项目,但会卡在此错误上(它不会消失):

**Catchable fatal error: Argument 2 passed to modParser::collectElementTags() must be of the type array, null given, called in D:\Personal\illumation\modx\core\model\modx\modstaticresource.class.php on line 57 and defined in D:\Personal\illumation\modx\core\model\modx\modparser.class.php on line 101**

目前,我想尝试编写插件时出现了问题,因此我在Manager中的外部文件webit-core-plugin.php创建了一个新插件。 向其中添加一个事件并保存。 此后,出现上述错误。

试图删除它,再做一次,等等,没有任何帮助。 有人知道发生了什么吗?

我使用具有管理员权限的在localhost(Windows 7)上运行的最新XAMPP,最新SQL / PHP和最新ModX。

  1. 通过文件浏览器手动删除Cache文件夹
  2. 打开您的SQL客户端,检查元素(模板-* modx_site_templates *,块-* modx_site_htmlsnippets *,代码段-* modx_site_snippets *和插件-* modx_site_plugins *),这些元素的“静态”字段为1,但“静态文件”为空。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM