Warning: Missing argument 31 for display_avatar_gallery() in c:\appserv\www\includes\usercp_avatar.php on line 245
Warning: Missing argument 32 for display_avatar_gallery() in c:\appserv\www\includes\usercp_avatar.php on line 245
Warning: Missing argument 33 for display_avatar_gallery() in c:\appserv\www\includes\usercp_avatar.php on line 245
Warning: Missing argument 34 for display_avatar_gallery() in c:\appserv\www\includes\usercp_avatar.php on line 245
請問一下哪裡出問題了~?幫我看一下~~多謝
紅色那段是第245行
代碼: 選擇全部
$l_avatar_size = sprintf($lang['Avatar_imagesize'], $board_config['avatar_max_width'], $board_config['avatar_max_height']);
$error = true;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $l_avatar_size : $l_avatar_size;
}
return $avatar_sql;
}
[color=red]function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id)[/color]
{
global $board_config, $db, $template, $lang, $images, $theme;
global $phpbb_root_path, $phpEx;
$dir = @opendir($board_config['avatar_gallery_path']);
還有一個問題
我在"會員管理"管理選項時..查詢會員的時候...上面會出現\r
Warning: opendir(../../language): failed to open dir: Invalid argument in c:\appserv\www\includes\functions_selects.php on line 31
Warning: readdir(): supplied argument is not a valid Directory resource in c:\appserv\www\includes\functions_selects.php on line 34
Warning: closedir(): supplied argument is not a valid Directory resource in c:\appserv\www\includes\functions_selects.php on line 45
藍色是第31行~還請多多幫忙~
代碼: 選擇全部
[color=blue]$dir = opendir($phpbb_root_path . $dirname);[/color]
$lang = array();
while ( $file = readdir($dir) )
{
if (preg_match('#^lang_#i', $file) && !is_file(@phpbb_realpath($phpbb_root_path . $dirname . '/' . $file)) && !is_link(@phpbb_realpath($phpbb_root_path . $dirname . '/' . $file)))
{
$filename = trim(str_replace("lang_", "", $file));
$displayname = preg_replace("/^(.*?)_(.*)$/", "\\\1 [ \\\2 ]", $filename);
$displayname = preg_replace("/\[(.*?)_(.*)\]/", "[ \\\1 - \\\2 ]", $displayname);
$lang[$displayname] = $filename;
}
}
closedir($dir);

