我試圖用PHP 5.6運行我的Joomla 1.x的網站,並得到了以下錯誤:的Joomla 1.5.x的網站工作與PHP 5.3,但不與PHP工作5.6
Strict Standards: Declaration of KHttpUri::set() should be compatible with KObject::set($property, $value = NULL) in /home/beauty/www/libraries/koowa/http/uri.php on line 0 Strict Standards: Declaration of KHttpUri::get() should be compatible with KObject::get($property = NULL, $default = NULL) in /home/beauty/www/libraries/koowa/http/uri.php on line 0 Strict Standards: Non-static method JLoader::register() should not be called statically in /home/beauty/www/libraries/joomla/cache/cache.php on line 19 Strict Standards: Declaration of JCacheStorage::get() should be compatible with JObject::get($property, $default = NULL) in /home/beauty/www/libraries/joomla/cache/storage.php on line 0 Strict Standards: Non-static method JLoader::register() should not be called statically in /home/beauty/www/libraries/joomla/document/document.php on line 19 Strict Standards: Non-static method JLoader::import() should not be called statically in /home/beauty/www/libraries/loader.php on line 186 Strict Standards: Non-static method JLoader::import() should not be called statically in /home/beauty/www/libraries/loader.php on line 186 Fatal error: Call-time pass-by-reference has been removed in /home/beauty/www/plugins/content/listitems.php on line 95
網站與工作正常之前PHP 5.3(在Ubuntu 12.X LTS上),所以這可能與PHP 5.3/5.6的兼容性有關。
有誰知道這是什麼?這可能涉及哪些PHP擴展?
你是否也改變了php.ini文件? - 禁用嚴格的標準? –
我沒有更改php.ini,但我有「error_reporting = E_ALL&〜E_DEPRECATED&〜E_STRICT」 – Koban
,但在PHP 5.3中,我有'error_reporting = E_ALL&〜E_DEPRECATED',我的網站正常工作。很可能PHP 5.3和5.6中的這兩個設置都是等價的,因爲E_ALL在PHP 5.6中發生了變化。 – Koban