始終都找不到原因~因此煩請大家幫幫忙 看一下~到底是哪裡錯了呢~
謝謝大家^^"~
我在控制台點attachments裡的"control panel" 會出現以下錯誤
Fatal error: Call to undefined function: get_var() in c:\appserv\www\phpbb2\admin\admin_attach_cp.php on line 62
而此行的代碼則為\r
接著 小女子 又點了 attachments裡的"管理選項"//
// Init Variables
//
$start = get_var('start', 0); <====這行錯了
if(isset($HTTP_POST_VARS['order']))
{
$sort_order = ($HTTP_POST_VARS['order'] == 'ASC') ? 'ASC' : 'DESC';
}
else if(isset($HTTP_GET_VARS['order']))
{
$sort_order = ($HTTP_GET_VARS['order'] == 'ASC') ? 'ASC' : 'DESC';
}
else
{
$sort_order = '';
}
又發現有錯問訊息Fatal error: Cannot redeclare process_quota_settings() (previously declared in c:\appserv\www\phpbb2\includes\functions_admin.php:31) in c:\appserv\www\phpbb2\attach_mod\includes\functions_admin.php on line 31
而此行的code如下
再來 小女子 又點了 attachments裡的"quote limits"//
// Set/Change Quotas
//
function process_quota_settings($mode, $id, $quota_type, $quota_limit_id = 0) <==這行錯了
{
global $db;
if ($mode == 'user')
{
if (!$quota_limit_id)
{
$sql = 'DELETE FROM ' . QUOTA_TABLE . "
WHERE user_id = $id
AND quota_type = $quota_type";
}
else
{
// Check if user is already entered
$sql = 'SELECT user_id
FROM ' . QUOTA_TABLE . "
WHERE user_id = $id
AND quota_type = $quota_type";
則發現與上方的錯誤訊息一樣Fatal error: Cannot redeclare process_quota_settings() (previously declared in c:\appserv\www\phpbb2\includes\functions_admin.php:31) in c:\appserv\www\phpbb2\attach_mod\includes\functions_admin.php on line 31
同樣的 點 attachments裡的"shadow attachments" 錯誤訊息一樣\r
Fatal error: Cannot redeclare process_quota_settings() (previously declared in c:\appserv\www\phpbb2\includes\functions_admin.php:31) in c:\appserv\www\phpbb2\attach_mod\includes\functions_admin.php on line 31
點attachments 裡的 sync attachments 錯誤訊息 還是依樣\r
Fatal error: Cannot redeclare process_quota_settings() (previously declared in c:\appserv\www\phpbb2\includes\functions_admin.php:31) in c:\appserv\www\phpbb2\attach_mod\includes\functions_admin.php on line 31
點extention裡的 extension group 會出現以下錯誤訊息\r
Fatal error: Call to undefined function: get_var() in c:\appserv\www\phpbb2\admin\admin_extensions.php on line 539
code 如下
點extentions 裡的 "special categories"if ($max_add_filesize >= 1048576)
{
$max_add_filesize = round($max_add_filesize / 1048576 * 100) / 100;
}
else if ( $max_add_filesize >= 1024)
{
$max_add_filesize = round($max_add_filesize / 1024 * 100) / 100;
}
$viewgroup = get_var(POST_GROUPS_URL, 0); <==這行錯了
$template->assign_vars(array(
'L_EXTENSION_GROUPS_TITLE' => $lang['Manage_extension_groups'],
'L_EXTENSION_GROUPS_EXPLAIN' => $lang['Manage_extension_groups_explain'],
'L_EXTENSION_GROUP' => $lang['Extension_group'],
'L_ADD_NEW' => $lang['Add_new'],
'L_ALLOWED' => $lang['Allowed'],
'L_DELETE' => $lang['Delete'],
'L_CANCEL' => $lang['Cancel'],
'L_SUBMIT' => $lang['Submit'],
'L_SPECIAL_CATEGORY' => $lang['Special_category'],
會出現 這樣的錯誤訊息Fatal error: Cannot redeclare process_quota_settings() (previously declared in c:\appserv\www\phpbb2\includes\functions_admin.php:31) in c:\appserv\www\phpbb2\attach_mod\includes\functions_admin.php on line 31
code 如同上方\r
==============================
小女子用的是app v2.4.4a 在windows xp上架站
sql 是 4.x版的
phpbb版本是 2.0.18 (繁體正文)
已裝的外掛: 各版版面圖示 ; advanced link mod
安裝風格Igloo Theme Version 1.0
目前 只是以 http://localhost/phpbb2作為價站外掛安裝測試用\r
等外掛裝好 會將其搬到虛擬主機上
============================
麻煩大家幫幫忙 指導一下~~
謝謝大家
