:::
XOOPS輕鬆架快速上手
更新tadtool4後,首頁空白
一次就要全部升級阿...只升級tadtools必然要掛
手動降版tadtool,然後再重新升級一次,包括所有模組及佈景
老師你好:
後來我把整站下載下來後在個人電腦中裝xampp更新,其中一站可以更新,但上傳至伺服器後,會出現下列訊息
- 頁面網址:https://natu.windelf.idv.tw/index.php
- 來源網址:https://natu.windelf.idv.tw/
- PHP 版本:7.1.33
- 錯誤訊息:Error: Call to undefined method mysqli_stmt::get_result()
另一站在則在更新過程中出現下列訊息:
- 頁面網址:http://127.0.0.1/modules/tad_adm/admin/xoops.php
- 來源網址:http://127.0.0.1/modules/tad_adm/admin/spam.php
- PHP 版本:7.4.33
- 錯誤訊息:SmartyCompilerException: Syntax error in template "file:/modules/system/themes/tad/theme.tpl" on line 5 "<{includeq file="$theme_tpl/`$smarty.config.bootstrap`/xo_metas.tpl"}>" unknown tag 'includeq'
想請問這2個問題可如何解決呢?感謝。
- 先升級所有模組、佈景、後台(缺一不可)
- 若是錯誤訊息有 mysqli_stmt::get_result() 關鍵字,需升級PHP。若無法升級PHP,可嘗試修改 /modules/tadtools/class/Utility.php,將 1747~1755 註解起來試試,看看有沒有效果,例如:
// 處理查詢結果 // $isSelect = self::isSelectQuery($sql); // if ($isSelect) { // $result = $stmt->get_result(); // if ($result === false) { // throw new \Exception(_FAILED_TO_GET_RESULT . $stmt->error); // } // return $result; // } - 若是錯誤訊息有 <{includeq 關鍵字,表示有模組、佈景、後台未升級,以上面錯誤訊息來看,是後台沒有升級。
- MySQL 8.0.41,PHP8.2,完全可以使用 2.5.11
老師你好,我有嘗試修改 /modules/tadtools/class/Utility.php,但無用。
後來我試著直接安裝一個新的2.5.11,結果還是出現下面訊息,請問該如何處理呢?
- 頁面網址:https://natu.windelf.idv.tw/
- 來源網址:https://natu.windelf.idv.tw/install/page_end.php
- PHP 版本:7.1.33
- 錯誤訊息:Error: Call to undefined method mysqli_stmt::get_result()
我提到的方法中,應該沒有「安裝一個新的2.5.11」這種方法吧?
若修改無用,只能升級PHP了,例如升級到PHP7.4。
老師你好,我升級PHP後,網站畫面可顯示了,但後台許多功能點選後會出現下列訊息,無法使用,要再請教師是什麼問題呢?
PHP 版本:8.2.27
系統管理/偏好設定/一般設定
錯誤訊息:TypeError: array_filter(): Argument #1 ($array) must be of type array, null given
本站消息/
錯誤訊息:Exception: SQL 查詢語法準備失敗:Incorrect datetime value: '0000-00-00 00:00:00' for column 'always_top_date' at row 1 in /modules/tadnews/index.php on line 249
