2012-09-30 50 views
1

实现简单的图片廊,当我工作的一个网站使用Joomla(2.5)(本地主机在这一点上)和简单图片廊扩展。在错误的Joomla

我很新到Joomla,所以我只是用了如何修改模板摆弄周围。关于如何正确实现扩展,我遵循本教程http://www.youtube.com/watch?v=EqVgCfxW4ms。我没有得到和他们一样的结果。不幸的是,我得到了以下错误消息:

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery.php on line 31 

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery.php on line 32 

Strict Standards: Non-static method SimpleImageGalleryHelper::getTemplatePath() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\joomla2\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery.php on line 109 

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery\includes\helper.php on line 255 

Strict Standards: Non-static method SimpleImageGalleryHelper::getTemplatePath() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\joomla2\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery.php on line 112 

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery\includes\helper.php on line 255 

Strict Standards: Non-static method SimpleImageGalleryHelper::getTemplatePath() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\joomla2\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery.php on line 115 

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\joomla2\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery\includes\helper.php on line 255 

Strict Standards: Non-static method SimpleImageGalleryHelper::renderGallery() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\joomla2\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery.php on line 149 

Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 11264 bytes) in C:\xampp\htdocs\joomla2\plugins\content\jw_simpleImageGallery\jw_simpleImageGallery\includes\helper.php on line 105 

这是页面上的纯文本 - 甚至是模板展现出来的其他部分。在给予某人关于此问题的建议之后,我关闭了错误报告,但并不奇怪,只是给了我一个普通的白色页面,而不是告诉我发生了什么问题。

询问以下人员似乎与我的问题相同http://forum.joomlaworks.net/simple-image-gallery-(plugin)/(gallery)gallery-name(gallery)-question/但我检查了我的缓存文件夹的权限,它似乎是可写入的。

我出的关于如何解决这个问题的想法。有没有人有同样的问题,或有问题的地方?任何帮助将不胜感激。

回答

0

我的网站上有一个Strict Standards:一次。幸运的是,这次是在WAMP上,所以我可以访问php.ini,并且能够添加一小段代码片段以防止错误再次出现。

所以,如果你有机会到php.ini然后打开它,然后搜索

error_reporting(E_ALL); 

,并替换:

error_reporting(E_ALL | E_STRICT); 
+0

我使用XAMPP在这一点上,所以我有权访问php.ini文件。我已将error_reporting从error_reporting = E_ALL&〜E_NOTICE更改为error_reporting = E_ALL | E_STRICT,但它似乎没有区别。 ?:(任何其他的想法 – Anne

+0

你确定你已经改变了正确的路线将造成该行代码应关闭严格的标准误差 – Lodder

+0

我觉得应该改成'的error_reporting(E_ALL&〜E_STRICT);?' –