:::
XOOPS使用討論區

PHP升级后XOOPS网站当了,请教老师

discuss pic 2017-10-11 11:03:10
PHP5.6升级为PHP7后,浏览器提示如下:
Error : TypeError: Argument 1 passed to XoopsConfigHandler::__construct() must be an instance of XoopsDatabase, null given, called in /usr/share/nginx/html/xoops/include/functions.php on line 39
39行内容如下:
$handlers[$name] = new $class($xoopsDB);
}
求教解决方法,谢谢!
discuss pic 2017-10-11 11:49:58
tad
若是 PHP7.0.x XOOPS必須 2.5.8以上
若是 PHP7.1.x XOOPS必須 2.5.9以上
discuss pic 2017-10-11 12:07:08
xoops2.5.8.1
在PHP5.6上运行正常,PHP升级到了7.0.24,提示了上述错误。
discuss pic 2017-10-17 08:53:06
tad
這是官方檔案,理論上應該不會有問題,而且我們在無數網站跑了一年多,也都正常...
要不試試 XOOPS 2.5.9 好了
:::

搜尋

QR Code 區塊

https%3A%2F%2Fwww.tad0616.net%2Fmodules%2Ftad_discuss%2Fdiscuss.php%3FDiscussID%3D33729%26BoardID%3D17

線上使用者

33人線上 (19人在瀏覽討論留言)

會員: 0

訪客: 33

更多…