php 업데이트 후 500 에러

php 업데이트 후 500 에러

QA

php 업데이트 후 500 에러

본문

일반페이지 들은 잘접속이되는데 . 커스텀한 페이지가 열리지 않네요

이 질문에 댓글 쓰기 :

답변 6

페이지 상단에


error_reporting(E_ALL);
ini_set("display_errors", 1);
 

 

코드 넣으셔서 나오는 오류 메시지를 적어주세요

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

$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];
}
}

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 입니다.

$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]."'");
  }
}
요부분인것같은데 뭔지를 모르겠네요 ;;

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  );

이렇게 바꿔 보세요.
 

지금 올려주신 거에선 500에러가 날만한건 안보이는데

 

적용된 페이지 주소가 있나요 ?

 

php 7 로 올리셨다면 

 

디비 호출 함수에서 문제가 발생할수있습니다

 

php7 이상은 mysql_* 관련 함수를 지원하지 않습니다

 

따라서 mysql_ 관련 함수 주석을 풀어주시던지

 

아니면 mysql_ 로 사용되는 부분을 변경해주셔야 할거같습니다

그리고 회원인증문자 보내는게 문자전송도 되고 인증번호도 디비에 정상 저장되있는데 

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

/bbs/ajax_send.php:1  뜨면서 인증번호 방송을 눌러달라고만 하네요 ... 된장

답변을 작성하시기 전에 로그인 해주세요.
전체 123,118 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT