특정 시스템에 설치한 그누보드 2.60 ~ 2.61 에서 나타나는 몇가지 오류 때려잡기 정보
일반 특정 시스템에 설치한 그누보드 2.60 ~ 2.61 에서 나타나는 몇가지 오류 때려잡기본문
오류 1. 특정 시스템에서 lib.inc.php, dbconn.inc.php를 못찾는 문제.
DB의 설정이 올바르지 않거나 dbconfig.inc.php가 존재하지 않습니다. 설치방법 : http://도메인/그누보드디렉토리/_admin/install.php |
/그누경로/lib.inc.php 에 다음을 수정
12라인쯤
$inc_dir = (file_exists("config.inc.php"))? "./" : "../"; 추가
14, 15라인
@include_once $inc_dir."config.inc.php";
@include_once $inc_dir."dbconfig.inc.php"; 로 수정
41라인
session_start() ;
//-------------------------------------------
include_once $inc_dir."dbconfig.inc.php"; 로 수정
마지막 쯤
// 개발자(사용자) 함수 및 변수 라이브러리
@include_once $inc_dir."libdev.inc.php"; 로 수정.
2. 로그인 시 나오는 오류.
Warning: Invalid argument supplied for foreach() in /home/iwoman/public_html/v2/bbs/mblogincheck.php on line 46 Warning: Cannot add header information - headers already sent by (output started at /home/iwoman/public_html/v2/bbs/mblogincheck.php:46) in /home/iwoman/public_html/v2/bbs/mblogincheck.php on line 73 |
/그누경로/bbs/mblogincheck.php 의 46 라인의 foreach문을 다음과 같이 고쳐준다.
// 최근 로그인일시 UPDATE
$sql = " update $cfg[table_member] set mb_today_login = '$now' where mb_id = '$mb_id' ";
sql_query_error($sql);
if ($url) {
$link = urldecode($url);
// 2003-06-14 추가 (다른 변수들을 넘겨주기 위함)
if (preg_match("/\?/", $link)) { $split= "&"; }
else { $split= "?"; }
foreach($_POST as $key=>$value) {
if ($key != "mb_id" && $key != "mb_passwd" && $key != "url") {
$link .= "$split$key=$value";
$split = "&";
}
}
위에서 foreach 함수 내부를 foreach($HTTP_POST_VARS as $key=>$value) { } 로 수정
3. 게시판 생성시 나오는 오류.
Warning: Wrong parameter count for mkdir() in /경로/_admin/boardupdate.php on line 104 Warning: chmod failed: No such file or directory in /경로/_admin/boardupdate.php on line 105 Warning: Cannot add header information - headers already sent by (output started at /경로/_admin/boardupdate.php:104) in /경로/_admin/boardupdate.php on line 212 |
/그누경로/_admin/boardupdate.php 의 103 번째 줄을 다음과 같이 고쳐준다.
// 게시판 폴더 생성
mkdir("$reldir/$cfg[dir_file]/$bo_table", 0707);
//chmod("$reldir/$cfg[dir_file]/$bo_table", 0707);
추천
2
2
댓글 전체
바로위 3. 게시판 생성시 오류에서 전 2.61버젼인 /bbs/boardupdate.php 화일 있나요? 찾아봐도 안보입니다.
링크왕국님 /bbs/가 아니고 /_admin/ 입니다.
우와....! 감사 합니다...
^^