2012-09-30 51 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);?' –