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

时间:2013-07-10 21:35:10

标签: php plugins compiler-errors modx

刚刚开始使用新项目,并希望尝试使用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的外部文件中创建了一个新的插件。添加一个事件并保存。在此之后,出现上述错误。

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

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

1 个答案:

答案 0 :(得分:0)

  1. 通过文件浏览器
  2. 手动清除缓存文件夹
  3. 打开你的SQL客户端,检查你的元素(模板 - * modx_site_templates *,chunks - * modx_site_htmlsnippets *,snippets - * modx_site_snippets *和插件 - * modx_site_plugins *),其中“static”字段= 1,但是有“static_file” “空。