我试图用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