我正在使用Joomla(2.5)和Simple Image Gallery扩展程序在一个网站(local.host)上工作。
我对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 :(得分:0)
我的网站上有Strict Standards:
次。幸运的是,它当时在WAMP上,所以我可以访问php.ini并且能够添加一个小代码片段以防止错误再次出现。
所以,如果你有权访问你的php.ini然后打开它并搜索
error_reporting(E_ALL);
并替换为:
error_reporting(E_ALL | E_STRICT);