Joomla Phoca画廊问题

时间:2014-01-10 05:45:01

标签: joomla

我在 Joomla 3.2 网站上安装了 Phoca gallery插件。安装插件后,我遇到了一些错误。(Snapshot

错误如下所述,

Strict Standards: Declaration of PhocaGalleryCpController::display() should be
compatible with JControllerLegacy::display($cachable = false, $urlparams = Array) in
C:\xampp\htdocs\Joomla\administrator\components\com_phocagallery\controller.php 
on line 55


Strict Standards: Non-static method PhocaGalleryUtils::setVars() should not be
called statically, assuming $this from incompatible context in 
C:\xampp\htdocs\Joomla\administrator\components\com_phocagallery\views\
phocagallerycp\view.html.php on line 19


Strict Standards: Non-static method PhocaGalleryRenderInfo::getPhocaVersion() 
should not be called statically, assuming $this from incompatible context in 
C:\xampp\htdocs\Joomla\administrator\components\com_phocagallery\views\
phocagallerycp\view.html.php on line 38

2 个答案:

答案 0 :(得分:1)

更新到Phoca Gallery 4.1.0,此版本被覆盖,以防止出现严格标准警告:

http://www.phoca.cz/news/770-phoca-gallery-4-1-0-released

如果你在Joomla上运行一些过时的版本!制作网站(Phoca Gallery是Joomla!组件),禁用Joomla中的严格标准!配置,将错误报告参数设置为:无。

有关严格标准的详细信息,请参阅:http://www.phoca.cz/documents/50-phoca/625-strict-standards-non-static-method

答案 1 :(得分:0)

这些不是正确的错误,但注意到插件不符合(当前)PHP标准。为了将来的兼容性和维护,解决它们很重要,但现在它们绝不是问题:将它们视为通知,而不是警告。

显示它们是因为您的服务器的PHP配置文件php.ini上有开发设置,很可能是:

error_reporting = E_ALL | E_STRICT

或者你设置Joomla!从全局配置开发模式中报告错误。

你应该在生产环境中将error_reporting设置为更简洁的东西,让开发人员了解它,他们应该快速,轻松地修复它。