我们在错误日志文件中收到以下错误,也无法在事件页面上查看事件。也找不到相关脚本。
index: Undefined module: eventcalendar
error/view.php:
Error ocurred using URI: /dffestival_eng_GB/eventcalendar/fullcalendarprogramme
我们正在使用 eZ 发布社区项目 2012.6 版本。
任何人都可以解释如何解决此错误。
谢谢
eZ 发布社区项目 2012.6 是 eZ 发布 5 版本的 eZ 发布,您提到的模块可能是基于旧项目的自定义模块。
这意味着它的源代码应该在 ezpublish_legacy/extension/中。
eZ Publish 5 要求在其module.ini.append.php
中很好地定义遗留模块。
首先,找到自定义模块所在的扩展。您可能在类似这样的目录中定义了一个名为 fullcalendarprogramme.php
的模块视图ezpublish_legacy/extension/<EXTENSIONNAME>/modules/eventcalendar/
然后在ezpublish_legacy/extension/<EXTENSIONNAME>/settings/module.ini.append.php
中编辑相关的module.ini
文件,并确保它看起来像这样:
<?php /* #?ini charset="utf-8"?
[ModuleSettings]
ExtensionRepositories[]=EXTENSIONNAME
ModuleList[]=eventcalendar
*/
请注意,fullcalendarprogramme
视图可能在另一个脚本中定义。您将在模块的module.php
文件中找到视图名称和脚本之间的映射:
$ViewList['fullcalendarprogramme'] = array(
'script' => 'fullcalendarprogramme.php'
);