게시판 추가생성 오류
본문
현재 이움빌더 유료테마 사용중인데 갑자기 지금 게시판 추가 하려 했더니 오류가 아래와 같이 뜹니다. ㅠ
alter table `g5_write_test` add `wr_anonymous` char(1) NOT NULL default '' after `wr_hit`
1146 : Table 'duaflej1.g5_write_test' doesn't exist
error file : /adm/index.php
index 파일은 건드린게 없는데 이게 왜 생긴 오류일까요? ㅜㅜ
답변 4
빌더 추가후 처음 게시판 생성한것이라면, 빌더 오류 입니다
test라는 보드명으로 게시판이 생성되지 못했기 때문에 난 오류입니다.
위 오류정보로는 왜 게시판이 생성되지 못했는지는 알수없습니다.
그누보드 기준으로 말씀드리자면
"adm/board_form_update.php" 에서
if ($w == '') {
$row = sql_fetch(" select count(*) as cnt from {$g5['board_table']} where bo_table = '{$bo_table}' ");
if ($row['cnt'])
alert($bo_table.' 은(는) 이미 존재하는 TABLE 입니다.');
$sql = " insert into {$g5['board_table']}
set bo_table = '{$bo_table}',
bo_count_write = '0',
bo_count_comment = '0',
$sql_common ";
sql_query($sql);
// 게시판 테이블 생성
$file = file('./sql_write.sql');
$file = get_db_create_replace($file);
$sql = implode("\n", $file);
$create_table = $g5['write_prefix'] . $bo_table;
// sql_board.sql 파일의 테이블명을 변환
$source = array('/__TABLE_NAME__/', '/;/');
$target = array($create_table, '');
$sql = preg_replace($source, $target, $sql);
sql_query($sql, TRUE); exit;
여기를 true바꾸셔서 나오는 에러 메시지를 확인해 보세요.
} else if ($w == 'u') {
빌더 오류였습니다.
/eyoom/inc/board.init.php 파일 34줄을 아래와 같이 수정 후 게시판 정상 생성되는 것을 확인 했습니다.
전
if ($is_admin) $bbs->make_anonymous_fields($bo_table);
후
if ($is_admin && $board['bo_table'] == $bo_table) $bbs->make_anonymous_fields($bo_table);