登录 注册

登录

问题 请教老白

更多
2015年05月03日 07:01 #1 作者: zhuyun008
zhuyun008 创建了话题: 请教老白
模板升级到3.2后。网站和后台显示许多警告信息:
Strict Standards: Non-static method JApplicationSite::getMenu() should not be called statically, assuming $this from incompatible context in Q:\xampp\htdocs\academy32\templates\hot_academy\index.php on line 218
Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevinfo.php on line 22

Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevview.php on line 37

Strict Standards: Non-static method JEV_CommonFunctions::getJEventsViewList() should not be called statically, assuming $this from incompatible context in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevview.php on line 43

Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevmenu.php on line 46

Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevmenu.php on line 54

Strict Standards: Non-static method JApplication::getMenu() should not be called statically, assuming $this from incompatible context in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevmenu.php on line 68

Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\administrator\components\com_jevents\fields\jevmenu.php on line 68

Strict Standards: Only variables should be assigned by reference in Q:\xampp\htdocs\academy32\components\com_jevents\libraries\helper.php on line 2161

记得老白在什么地方讲过此事。说在php/php.ini中改改error_reporting 参数就可以了,找到了这段。
error_reporting
; Default Value: E_ALL &~E_NOTICE &~E_STRICT &~E_DEPRECATED
; Development Value: E_ALL
; Production Value: E_ALL &~E_DEPRECAYED &~E_STRICT

真不知怎么改,不得要领,烦老白再给讲讲。谢了。

登录 或者   注册一个会员帐号 来参与讨论

更多
2015年05月03日 21:56 #2 作者: Joomla之门
Joomla之门 回复了话题: 请教老白
首先检查你的 XAMPP 服务器版本,推荐使用 XAMPP 1.8.2 版本。

然后,检查你的 JEvents 组件,因为上述报错消息似乎都是与 com_jevents 有关。检查你的 JEvents 组件是不是最新版本?如果不是,请升级到支持 Joomla 3 的版本。

最后,如果想彻底隐藏这些消息,也不需编辑 php.ini 文件,直接到 Joomla 3 后台“全局设置”里面,把“错误报告”选择为“无”就可以了。

付费下载 Joomla 3 扩展汉化版: 我要付费支持 Joomla 之门!
下列用户已致谢:: zhuyun008

登录 或者   注册一个会员帐号 来参与讨论