1

我正在使用 Joomla (2.5) 和 Simple Image Gallery 扩展开发一个网站(此时为 localHost)。

我对 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/但我检查了我的缓存文件夹的权限,它似乎是可写的。

我不知道如何解决这个问题。有没有人遇到过同样的问题或对问题出在哪里有想法?任何帮助将不胜感激。

4

1 回答 1

0

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

因此,如果您确实可以访问 php.ini,请打开它并搜索

error_reporting(E_ALL);

并替换为:

error_reporting(E_ALL | E_STRICT);
于 2012-09-30T12:08:35.873 回答