各位先進:
近來預將 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遍)
請教該如何解決???
移除防護模組?
我的作法是
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遍)
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
************************
common.php on line 39 為
$xoopsErrorHandler =& XoopsErrorHandler::getInstance();
關掉防護模組是去模組管理將之移除。
mainfile.php也確實要去註解(刪掉更好,因為新版的早就不是這樣裝了)
XOOPS要升級,因為xampp的PHP版本太新,XOOPS卻太舊,就有這樣的訊息。
要不把xampp降到1.7.0版或許也是個方法