php 버전과 mySQL 버전이 낮은 버전으로 옮겼더니, 이런 에러가... 정보
php 버전과 mySQL 버전이 낮은 버전으로 옮겼더니, 이런 에러가...본문
php 버전과 mySQL 버전이 낮은 버전으로 옮겼더니, 맨 아래와 같은 에러 문구가 뜨네요.
★ 기존 환경 :
PHP 버전 5.3.8
MySQL 버전 5.5.18
문자셋 UTF-8
★ 현재 환경 :
PHP 버전 5.2.17
MySQL 버전 5.0.90
문자셋 UTF-8
그리고,
암호화 길이가 달라졌는지..로그인도 안되서 일단은 임시방편으로 암호 초기화해서 로그인했는데,
기존 회원들 로그인을 위해서 초기화 대신 로그인이 가능하도록 수정하고 싶은데..어떻게 해야 할지..
에러 주소: http://www.homzzang.com
--------------------------------------------------------------------------------------------
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 38
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 39
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 40
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 41
Warning: include_once(../common.php) [function.include-once]: failed to open stream: No such file or directory in /home4/homzzang21/html/usearch/index.php on line 3
Warning: include_once() [function.include]: Failed opening '../common.php' for inclusion (include_path='.:/usr/local/php-5.2.17/lib/php') in /home4/homzzang21/html/usearch/index.php on line 3
★ 기존 환경 :
PHP 버전 5.3.8
MySQL 버전 5.5.18
문자셋 UTF-8
★ 현재 환경 :
PHP 버전 5.2.17
MySQL 버전 5.0.90
문자셋 UTF-8
그리고,
암호화 길이가 달라졌는지..로그인도 안되서 일단은 임시방편으로 암호 초기화해서 로그인했는데,
기존 회원들 로그인을 위해서 초기화 대신 로그인이 가능하도록 수정하고 싶은데..어떻게 해야 할지..
에러 주소: http://www.homzzang.com
--------------------------------------------------------------------------------------------
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 38
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 39
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 40
Warning: Cannot modify header information - headers already sent by (output started at /home4/homzzang21/html/head.sub.php:2) in /home4/homzzang21/html/head.sub.php on line 41
Warning: include_once(../common.php) [function.include-once]: failed to open stream: No such file or directory in /home4/homzzang21/html/usearch/index.php on line 3
Warning: include_once() [function.include]: Failed opening '../common.php' for inclusion (include_path='.:/usr/local/php-5.2.17/lib/php') in /home4/homzzang21/html/usearch/index.php on line 3
댓글 전체
암호는 그버전대나 그 버전대나 별 차이 없습니다.
혹시 그럴리는 없지만 old_password함수를 써보세요..
저 에러들은 저 폴더에 파일이 없다는 애기입니다.
config파일을 보셔서 상대경로를 제대로 넣어주세요..
혹시 그럴리는 없지만 old_password함수를 써보세요..
저 에러들은 저 폴더에 파일이 없다는 애기입니다.
config파일을 보셔서 상대경로를 제대로 넣어주세요..
소스에 대해 문외한이라 그러는데, config 파일을 어떻게 수정해줘야 할지...
기존에 사용하던 config.php 파일 소스입니다. (배추빌더)
-----------------------
<?php
// 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음
define("_GNUBOARD_", TRUE);
if (function_exists("date_default_timezone_set"))
date_default_timezone_set("Asia/Seoul");
// 디렉토리
$g4['bbs'] = "bbs";
$g4['bbs_path'] = $g4['path'] . "/" . $g4['bbs'];
$g4['bbs_img'] = "img";
$g4['bbs_img_path'] = $g4['path'] . "/" . $g4['bbs'] . "/" . $g4['bbs_img'];
$g4['admin'] = "adm";
$g4['admin_path'] = $g4['path'] . "/" . $g4['admin'];
$g4['editor'] = "cheditor";
$g4['editor_path'] = $g4['path'] . "/" . $g4['editor'];
$g4['cheditor4'] = "cheditor4";
$g4['cheditor4_path'] = $g4['path'] . "/" . $g4['cheditor4'];
$g4['is_cheditor5'] = true;
$g4['geditor'] = "geditor";
$g4['geditor_path'] = $g4['path'] . "/" . $g4['geditor'];
// 자주 사용하는 값
// 서버의 시간과 실제 사용하는 시간이 틀린 경우 수정하세요.
// 하루는 86400 초입니다. 1시간은 3600초
// 6시간이 빠른 경우 time() + (3600 * 6);
// 6시간이 느린 경우 time() - (3600 * 6);
$g4['server_time'] = time();
$g4['time_ymd'] = date("Y-m-d", $g4['server_time']);
$g4['time_his'] = date("H:i:s", $g4['server_time']);
$g4['time_ymdhis'] = date("Y-m-d H:i:s", $g4['server_time']);
//
// 테이블 명
// (상수로 선언한것은 함수에서 global 선언을 하지 않아도 바로 사용할 수 있기 때문)
//
$g4['table_prefix'] = "g4_"; // 테이블명 접두사
$g4['write_prefix'] = $g4['table_prefix'] . "write_"; // 게시판 테이블명 접두사
$g4['auth_table'] = $g4['table_prefix'] . "auth"; // 관리권한 설정 테이블
$g4['config_table'] = $g4['table_prefix'] . "config"; // 기본환경 설정 테이블
$g4['group_table'] = $g4['table_prefix'] . "group"; // 게시판 그룹 테이블
$g4['group_member_table'] = $g4['table_prefix'] . "group_member"; // 게시판 그룹+회원 테이블
$g4['board_table'] = $g4['table_prefix'] . "board"; // 게시판 설정 테이블
$g4['board_file_table'] = $g4['table_prefix'] . "board_file"; // 게시판 첨부파일 테이블
$g4['board_good_table'] = $g4['table_prefix'] . "board_good"; // 게시물 추천,비추천 테이블
$g4['board_new_table'] = $g4['table_prefix'] . "board_new"; // 게시판 새글 테이블
$g4['login_table'] = $g4['table_prefix'] . "login"; // 로그인 테이블 (접속자수)
$g4['mail_table'] = $g4['table_prefix'] . "mail"; // 회원메일 테이블
$g4['member_table'] = $g4['table_prefix'] . "member"; // 회원 테이블
$g4['memo_table'] = $g4['table_prefix'] . "memo"; // 메모 테이블
$g4['poll_table'] = $g4['table_prefix'] . "poll"; // 투표 테이블
$g4['poll_etc_table'] = $g4['table_prefix'] . "poll_etc"; // 투표 기타의견 테이블
$g4['point_table'] = $g4['table_prefix'] . "point"; // 포인트 테이블
$g4['popular_table'] = $g4['table_prefix'] . "popular"; // 인기검색어 테이블
$g4['scrap_table'] = $g4['table_prefix'] . "scrap"; // 게시글 스크랩 테이블
$g4['visit_table'] = $g4['table_prefix'] . "visit"; // 방문자 테이블
$g4['visit_sum_table'] = $g4['table_prefix'] . "visit_sum"; // 방문자 합계 테이블
$g4['token_table'] = $g4['table_prefix'] . "token"; // 토큰 테이블
$g4['my_menu_table'] = $g4['table_prefix'] . "my_menu"; // 마이메뉴
//
// 기타
//
// www.sir.co.kr 과 sir.co.kr 도메인은 서로 다른 도메인으로 인식합니다. 쿠키를 공유하려면 .sir.co.kr 과 같이 입력하세요.
// 이곳에 입력이 없다면 www 붙은 도메인과 그렇지 않은 도메인은 쿠키를 공유하지 않으므로 로그인이 풀릴 수 있습니다.
$g4['cookie_domain'] = ".homzzang.com";
// 게시판에서 링크의 기본갯수를 말합니다.
// 필드를 추가하면 이 숫자를 필드수에 맞게 늘려주십시오.
$g4['link_count'] = 2;
$g4['charset'] = "utf-8";
$g4['phpmyadmin_dir'] = $g4['admin'] . "/phpMyAdmin/";
$g4['token_time'] = 3; // 토큰 유효시간
// config.php 가 있는곳의 웹경로. 뒤에 / 를 붙이지 마세요.
// 예) http://g4.sir.co.kr
$g4['url'] = "http://www.homzzang.com";
$g4['https_url'] = "";
// 입력예
//$g4['url'] = "http://www.sir.co.kr";
//$g4['https_url'] = "https://www.sir.co.kr";
// 배추빌더 설정파일
@include_once("$g4[path]/mw.config.php");
기존에 사용하던 config.php 파일 소스입니다. (배추빌더)
-----------------------
<?php
// 이 상수가 정의되지 않으면 각각의 개별 페이지는 별도로 실행될 수 없음
define("_GNUBOARD_", TRUE);
if (function_exists("date_default_timezone_set"))
date_default_timezone_set("Asia/Seoul");
// 디렉토리
$g4['bbs'] = "bbs";
$g4['bbs_path'] = $g4['path'] . "/" . $g4['bbs'];
$g4['bbs_img'] = "img";
$g4['bbs_img_path'] = $g4['path'] . "/" . $g4['bbs'] . "/" . $g4['bbs_img'];
$g4['admin'] = "adm";
$g4['admin_path'] = $g4['path'] . "/" . $g4['admin'];
$g4['editor'] = "cheditor";
$g4['editor_path'] = $g4['path'] . "/" . $g4['editor'];
$g4['cheditor4'] = "cheditor4";
$g4['cheditor4_path'] = $g4['path'] . "/" . $g4['cheditor4'];
$g4['is_cheditor5'] = true;
$g4['geditor'] = "geditor";
$g4['geditor_path'] = $g4['path'] . "/" . $g4['geditor'];
// 자주 사용하는 값
// 서버의 시간과 실제 사용하는 시간이 틀린 경우 수정하세요.
// 하루는 86400 초입니다. 1시간은 3600초
// 6시간이 빠른 경우 time() + (3600 * 6);
// 6시간이 느린 경우 time() - (3600 * 6);
$g4['server_time'] = time();
$g4['time_ymd'] = date("Y-m-d", $g4['server_time']);
$g4['time_his'] = date("H:i:s", $g4['server_time']);
$g4['time_ymdhis'] = date("Y-m-d H:i:s", $g4['server_time']);
//
// 테이블 명
// (상수로 선언한것은 함수에서 global 선언을 하지 않아도 바로 사용할 수 있기 때문)
//
$g4['table_prefix'] = "g4_"; // 테이블명 접두사
$g4['write_prefix'] = $g4['table_prefix'] . "write_"; // 게시판 테이블명 접두사
$g4['auth_table'] = $g4['table_prefix'] . "auth"; // 관리권한 설정 테이블
$g4['config_table'] = $g4['table_prefix'] . "config"; // 기본환경 설정 테이블
$g4['group_table'] = $g4['table_prefix'] . "group"; // 게시판 그룹 테이블
$g4['group_member_table'] = $g4['table_prefix'] . "group_member"; // 게시판 그룹+회원 테이블
$g4['board_table'] = $g4['table_prefix'] . "board"; // 게시판 설정 테이블
$g4['board_file_table'] = $g4['table_prefix'] . "board_file"; // 게시판 첨부파일 테이블
$g4['board_good_table'] = $g4['table_prefix'] . "board_good"; // 게시물 추천,비추천 테이블
$g4['board_new_table'] = $g4['table_prefix'] . "board_new"; // 게시판 새글 테이블
$g4['login_table'] = $g4['table_prefix'] . "login"; // 로그인 테이블 (접속자수)
$g4['mail_table'] = $g4['table_prefix'] . "mail"; // 회원메일 테이블
$g4['member_table'] = $g4['table_prefix'] . "member"; // 회원 테이블
$g4['memo_table'] = $g4['table_prefix'] . "memo"; // 메모 테이블
$g4['poll_table'] = $g4['table_prefix'] . "poll"; // 투표 테이블
$g4['poll_etc_table'] = $g4['table_prefix'] . "poll_etc"; // 투표 기타의견 테이블
$g4['point_table'] = $g4['table_prefix'] . "point"; // 포인트 테이블
$g4['popular_table'] = $g4['table_prefix'] . "popular"; // 인기검색어 테이블
$g4['scrap_table'] = $g4['table_prefix'] . "scrap"; // 게시글 스크랩 테이블
$g4['visit_table'] = $g4['table_prefix'] . "visit"; // 방문자 테이블
$g4['visit_sum_table'] = $g4['table_prefix'] . "visit_sum"; // 방문자 합계 테이블
$g4['token_table'] = $g4['table_prefix'] . "token"; // 토큰 테이블
$g4['my_menu_table'] = $g4['table_prefix'] . "my_menu"; // 마이메뉴
//
// 기타
//
// www.sir.co.kr 과 sir.co.kr 도메인은 서로 다른 도메인으로 인식합니다. 쿠키를 공유하려면 .sir.co.kr 과 같이 입력하세요.
// 이곳에 입력이 없다면 www 붙은 도메인과 그렇지 않은 도메인은 쿠키를 공유하지 않으므로 로그인이 풀릴 수 있습니다.
$g4['cookie_domain'] = ".homzzang.com";
// 게시판에서 링크의 기본갯수를 말합니다.
// 필드를 추가하면 이 숫자를 필드수에 맞게 늘려주십시오.
$g4['link_count'] = 2;
$g4['charset'] = "utf-8";
$g4['phpmyadmin_dir'] = $g4['admin'] . "/phpMyAdmin/";
$g4['token_time'] = 3; // 토큰 유효시간
// config.php 가 있는곳의 웹경로. 뒤에 / 를 붙이지 마세요.
// 예) http://g4.sir.co.kr
$g4['url'] = "http://www.homzzang.com";
$g4['https_url'] = "";
// 입력예
//$g4['url'] = "http://www.sir.co.kr";
//$g4['https_url'] = "https://www.sir.co.kr";
// 배추빌더 설정파일
@include_once("$g4[path]/mw.config.php");
head.sub.php 에서 공백이 있는지 확인해보시고, ftp 파일 업로드를 다시 해보세요.
(케릭셋 utf-8 로 제대로 하셨는지도 보시구요.)
config 파일에 별다른 이상은 없어보이네요.
<?
?>
(케릭셋 utf-8 로 제대로 하셨는지도 보시구요.)
config 파일에 별다른 이상은 없어보이네요.
<?
?>
기존 파일과 동일한데.... 공백이라 하심 어떤 공백을 말씀하시는지?
저 오류가 나는 이유가 대부분 해당 파일를 인크루드하면서 나는 오류라서
<? 앞에 공백이 있거나 다른걸 인크루드하다가 나올수 있는부분입니다.
아니면, 케릭셋이 utf-8 bom 이거나요
<? 앞에 공백이 있거나 다른걸 인크루드하다가 나올수 있는부분입니다.
아니면, 케릭셋이 utf-8 bom 이거나요
헉, 12zeo 님께서 링크해둔지도 모르고, 열심히 찾아헤메서 방금 전 찾은 글인데..ㅎㅎ
근데, 예전에 제가 같은 문제로 찾아서 도움을 받고 댓글까지 남긴 글이더라구요.. ㅋ
다시 처음부터 도전해봐야겠네요. 아무튼, 신경 많이 써주셔서 정말 고맙습니다. ^^
근데, 예전에 제가 같은 문제로 찾아서 도움을 받고 댓글까지 남긴 글이더라구요.. ㅋ
다시 처음부터 도전해봐야겠네요. 아무튼, 신경 많이 써주셔서 정말 고맙습니다. ^^
headers already sent~~어쩌구
이 에러는 header(~~)라는 문구 앞쪽에 무언가 출력이 있으면 나오는 것입니다
해결이 어려우면 head.sub.php에서 header(~~)이렇게 된 행을 모두 삭제해도 됩니다
이 에러는 header(~~)라는 문구 앞쪽에 무언가 출력이 있으면 나오는 것입니다
해결이 어려우면 head.sub.php에서 header(~~)이렇게 된 행을 모두 삭제해도 됩니다
고맙습니다. 덕분에 에러 문구는 출력이 안되는데, 여전히 로그인이 해결 안되네요.
http://mwt.so/0CoO0 팁을 참고해 old_password로 수정해줬는데도 로그인이 안되네요.
혹, 다른 해결 방법이 있을까요?
http://mwt.so/0CoO0 팁을 참고해 old_password로 수정해줬는데도 로그인이 안되네요.
혹, 다른 해결 방법이 있을까요?