dongzhuo6137 2017-08-03 15:07
浏览 101

Joomla 1.5.x网站适用于PHP 5.3,但不适用于PHP 5.6

I tried to run my Joomla 1.x website with PHP 5.6 and got the following errors:

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

The website worked fine before with PHP 5.3 (on Ubuntu 12.X LTS), so probably this is something related to compatibility PHP 5.3/5.6.

Does anyone know what is it? What PHP extension this can relate to?

  • 写回答

2条回答 默认 最新

  • douhe4608 2017-08-04 11:22
    关注

    It is pointless to tinkering with such an old Joomla version and get it run with a php 5.6. Joomla 1.5.x is not compatible with PHP 5.4 nor with 5.6; it's old but still available: docs.joomla.org/Joomla_1.5_won't_work_on_PHP_5.4. Nevertheless, the library koowa is not part of Joomla itself; you could rename the declarations of your classes, rename all functions which are called static (i.e. JLoader::register()) to a static function, etc. But you are still working with unsecure old libraries/plugins/components and Joomla version. Maybe you've changed the error reporting somewhere else (.htaccess), and you should have a look at http://php.net/manual/en/appendices.php. You should better migrate your site to the latest Joomla3.7.4 and PHP7... By the way, Call-time pass-by-reference has been removed in /home/beauty/www/plugins/content/listitems.php on line 95 which can be solved like in PHP 5.4 Call-time pass-by-reference - Easy fix available?, usually the function call works without the @ . Please also specify the exact version of Joomla (in your question please), between 1.0 and 1.5 as well as 1.7 are huge differences!

    评论

报告相同问题?

悬赏问题

  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图