參考連結:http://phpbb-tw.net/phpbb/viewtopic.php ... t=cash+mod
使用版本:phpBB 2.0.6
網站位置:http://w4.csps.tp.edu.tw/~julia/phpBB2/ ... c.php?t=21
這一頁就是發生問題的其中一頁
狀況描述:
我剛剛裝完cash mod之後,就無法看到以發表的文章內容,且有錯誤訊息:
代碼: 選擇全部
Fatal error: Class template_plus: Cannot inherit from undefined class template in /home/julia/public_html/phpBB2/includes/classes_cash.php on line 40
[php]<?php
class Template_plus extends Template
{
var $classname = "Template";
var $_tpldata = array();
var $files = array();
var $root = "";
var $compiled_code = array();
var $uncompiled_code = array();
function set(&$template)?>[/php]
class Template_plus extends Template就是第40行
同樣,在控制台控制cash mod的地方也有錯誤,而無法進入cash mod的控制台:
代碼: 選擇全部
Fatal error: Call to a member function on a non-object in /home/julia/public_html/phpBB2/includes/functions_cash.php on line 655
[php]<?php
$sql = "SELECT * FROM " . CASH_TABLE . " ORDER BY cash_order ";
if ( !($result = $db->sql_query($sql)) ) {
message_die(GENERAL_ERROR, 'Error retrieving cash data', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
?>[/php]
if ( !($result = $db->sql_query($sql)) )就是第655行
請教各位大大,上面的問題到底出在哪??我看了老半天,還是不知道要怎麼解決,懇請大大告知,感激不盡


