:::
XOOPS使用討論區

請問將 xoops2 從 UNIX 系統移機到 win 的 xampp 需要注意什麼?

discuss pic 2013-12-21 00:39:36
各位先進:
近來預將 xoops2 從 UNIX 系統移機到 win 的 xampp 
我的做法如下
1.先到原機將目錄壓縮,再用 phpmyadmin 將sql 匯出
2.再到 win 底下,解壓縮,及 sql 匯入
3.修改 mainfile.php
卻出現

Strict Standards: Non-static method Protector::getInstance() should not be called statically in D:\xampp\htdocs\xoops2\modules\protector\include\precheck.inc.php on line 31

Strict Standards: Non-static method XoopsErrorHandler::getInstance() should not be called statically in D:\xampp\htdocs\xoops2\include\common.php on line 39

Strict Standards: Non-static method XoopsErrorHandler::getInstance() should not be called statically in D:\xampp\htdocs\xoops2\class\errorhandler.php on line 218
(此行重複8遍)

請教該如何解決???
discuss pic 2013-12-23 00:31:19
tad
移除防護模組試試
discuss pic 2013-12-24 10:20:54
移除防護模組?

我的作法是

1.將 xoops2/module/protector 目錄改名

2.註解 mainfile.php 的此行敘述
include( XOOPS_ROOT_PATH . '/modules/protector/include/precheck.inc.php' ) ;

是否就是關掉防護模組了?

步驟 1 結果訊息變為---------

Warning: include(D:/xampp/htdocs/xoops2/modules/protector/include/precheck.inc.php): failed to open stream: No such file or directory in D:\xampp\htdocs\xoops2\mainfile.php on line 96

Warning: include(): Failed opening 'D:/xampp/htdocs/xoops2/modules/protector/include/precheck.inc.php' for inclusion (include_path='.;\xampp\php\PEAR') in D:\xampp\htdocs\xoops2\mainfile.phpon line 96

Strict Standards: Non-static method XoopsErrorHandler::getInstance() should not be called statically in D:\xampp\htdocs\xoops2\include\common.php on line 39

Strict Standards: Non-static method XoopsErrorHandler::getInstance() should not be called statically in D:\xampp\htdocs\xoops2\class\errorhandler.php on line 218
(此行重複8遍)



步驟 2 結果訊息變為---------

Strict Standards: Non-static method XoopsErrorHandler::getInstance() should not be called statically in D:\xampp\htdocs\xoops2\include\common.php on line 39

Strict Standards: Non-static method XoopsErrorHandler::getInstance() should not be called statically in D:\xampp\htdocs\xoops2\class\errorhandler.php on line 218
(此行重複8遍)

************************

common.php on line 39
$xoopsErrorHandler =& XoopsErrorHandler::getInstance();
discuss pic 2013-12-24 11:34:42
tad
關掉防護模組是去模組管理將之移除。
mainfile.php也確實要去註解(刪掉更好,因為新版的早就不是這樣裝了)

XOOPS要升級,因為xampp的PHP版本太新,XOOPS卻太舊,就有這樣的訊息。
要不把xampp降到1.7.0版或許也是個方法
discuss pic 2013-12-24 13:27:06
感謝老師,試試後回報結果~~~
:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.cp27.secserverpros.com%2Fmodules%2Ftad_discuss%2Fdiscuss.php%3FBoardID%3D17%26DiscussID%3D22452%26g2p%3D1

線上使用者

63人線上 (39人在瀏覽討論留言)

會員: 0

訪客: 63

更多…