답변 6개 / 댓글 9개
음
php 7 로 올리셨다면
디비 호출 함수에서 문제가 발생할수있습니다
php7 이상은 mysql_* 관련 함수를 지원하지 않습니다
따라서 mysql_ 관련 함수 주석을 풀어주시던지
아니면 mysql_ 로 사용되는 부분을 변경해주셔야 할거같습니다
지금 올려주신 거에선 500에러가 날만한건 안보이는데
적용된 페이지 주소가 있나요 ?
common.php에서
error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING );
여기를
error_reporting( E_CORE_ERROR | E_COMPILE_ERROR | E_ERROR | E_PARSE | E_USER_ERROR );
이렇게 바꿔 보세요.
페이지 상단에
Copy
error_reporting(E_ALL);
ini_set("display_errors", 1);
코드 넣으셔서 나오는 오류 메시지를 적어주세요
답변에 대한 댓글 6개
Notice: Undefined index: wr_2 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_3 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_4 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_5 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_6 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_7 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_8 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_9 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_10 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 148
Warning: Use of undefined constant val - assumed 'val' (this will throw an Error in a future version of PHP) in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 149
Notice: Undefined index: wr_3 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_4 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_5 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_6 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_7 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_8 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_9 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Notice: Undefined index: wr_10 in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 6
Warning: Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP) in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 148
Warning: Use of undefined constant val - assumed 'val' (this will throw an Error in a future version of PHP) in /var/www/html/win/theme/basic/skin/board/gallery/lib/skinm.lib.php on line 149
$arr_search = array();
for($j = 1; $j < 11; $j++){
요부분이 라인6입니다-> if($_GET["wr_".$j] && strlen($_GET["wr_".$j]) > 0){
$qstr .= "&wr_".$j."=".urlencode($_GET["wr_".$j]);
}
}
--------------------------------------------------------------------------------------------------------
$arr_search = array();
for($j = 1; $j < 11; $j++){
148--> if(($_GET["wr_".$j] && strlen($_GET["wr_".$j]) > 0 ) || is_array($_GET["wr_".$j])) {
148--> $arr_search[name][] = "wr_".$j;
$arr_search[val][] = $_GET["wr_".$j];
}
}
for($j = 1; $j < 11; $j++){
요부분이 라인6입니다-> if($_GET["wr_".$j] && strlen($_GET["wr_".$j]) > 0){
$qstr .= "&wr_".$j."=".urlencode($_GET["wr_".$j]);
}
}
--------------------------------------------------------------------------------------------------------
$arr_search = array();
for($j = 1; $j < 11; $j++){
148--> if(($_GET["wr_".$j] && strlen($_GET["wr_".$j]) > 0 ) || is_array($_GET["wr_".$j])) {
148--> $arr_search[name][] = "wr_".$j;
$arr_search[val][] = $_GET["wr_".$j];
}
}
Warning: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP) in /var/www/html/win/common.php on line 210
Warning: Use of undefined constant ip_list - assumed 'ip_list' (this will throw an Error in a future version of PHP) in /var/www/html/win/common.php on line 211
Warning: Use of undefined constant REMOTE_ADDR - assumed 'REMOTE_ADDR' (this will throw an Error in a future version of PHP) in /var/www/html/win/common.php on line 211
Warning: Use of undefined constant cnt - assumed 'cnt' (this will throw an Error in a future version of PHP) in /var/www/html/win/common.php on line 212
Warning: Use of undefined constant REMOTE_ADDR - assumed 'REMOTE_ADDR' (this will throw an Error in a future version of PHP) in /var/www/win/ophot/common.php on line 215
Warning: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP) in /var/www/win/ophot/common.php on line 215
그누보드 5.3 입니다.
Warning: Use of undefined constant ip_list - assumed 'ip_list' (this will throw an Error in a future version of PHP) in /var/www/html/win/common.php on line 211
Warning: Use of undefined constant REMOTE_ADDR - assumed 'REMOTE_ADDR' (this will throw an Error in a future version of PHP) in /var/www/html/win/common.php on line 211
Warning: Use of undefined constant cnt - assumed 'cnt' (this will throw an Error in a future version of PHP) in /var/www/html/win/common.php on line 212
Warning: Use of undefined constant REMOTE_ADDR - assumed 'REMOTE_ADDR' (this will throw an Error in a future version of PHP) in /var/www/win/ophot/common.php on line 215
Warning: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP) in /var/www/win/ophot/common.php on line 215
그누보드 5.3 입니다.
$pagecnt = sql_fetch("select cnt, ip_list from `pagecnt` where date='".G5_TIME_YMD."' and page='".$_SERVER[REQUEST_URI]."'");
if(!strstr($pagecnt[ip_list], "/".$_SERVER[REMOTE_ADDR]."/")) {
if($pagecnt[cnt]>0) {
sql_query("update `pagecnt` set cnt=cnt+1, ip_list=CONCAT(ip_list, '".$_SERVER[REMOTE_ADDR]."/') where date='".G5_TIME_YMD."' and page='".$_SERVER[REQUEST_URI]."'");
} else {
sql_query("insert into `pagecnt` set cnt=1, ip_list='/".$_SERVER[REMOTE_ADDR]."/', date='".G5_TIME_YMD."', page='".$_SERVER[REQUEST_URI]."'");
}
}
요부분인것같은데 뭔지를 모르겠네요 ;;
if(!strstr($pagecnt[ip_list], "/".$_SERVER[REMOTE_ADDR]."/")) {
if($pagecnt[cnt]>0) {
sql_query("update `pagecnt` set cnt=cnt+1, ip_list=CONCAT(ip_list, '".$_SERVER[REMOTE_ADDR]."/') where date='".G5_TIME_YMD."' and page='".$_SERVER[REQUEST_URI]."'");
} else {
sql_query("insert into `pagecnt` set cnt=1, ip_list='/".$_SERVER[REMOTE_ADDR]."/', date='".G5_TIME_YMD."', page='".$_SERVER[REQUEST_URI]."'");
}
}
요부분인것같은데 뭔지를 모르겠네요 ;;
답변을 작성하려면 로그인이 필요합니다.