테스트 사이트 - 개발 중인 베타 버전입니다

워닝 에러 해결하는 방법 문의드립니다 채택완료

이쓔민 4년 전 조회 3,586

서브페이지에서 아래와 같이 4개의 오류글이 나오고 있는데, 이 부분을 해결하려면 어떻게 해야할까요?

답변 해주시면 정말 감사하겠습니다 ~!!

 

에러 아래는 head.sub.seo.php 오류 부분 소스입니다. (굵은 글씨 47번 줄)

 

Warning: Use of undefined constant file - assumed 'file' (this will throw an Error in a future version of PHP) in /WEB/echocg/html/theme/basic/head.sub.SEO.php on line 47

Warning: Use of undefined constant path - assumed 'path' (this will throw an Error in a future version of PHP) in /WEB/echocg/html/theme/basic/head.sub.SEO.php on line 47

Warning: Use of undefined constant file - assumed 'file' (this will throw an Error in a future version of PHP) in /WEB/echocg/html/theme/basic/head.sub.SEO.php on line 47

Warning: Use of undefined constant file - assumed 'file' (this will throw an Error in a future version of PHP) in /WEB/echocg/html/theme/basic/head.sub.SEO.php on line 47

 

 

==========================================================

 

head.sub.seo.php 47번 줄

 


// [데이터추출] 게시판 데이터 추출
if ($bo_table) {
    $sql_seo_board = " select * from {$g5['write_prefix']}{$bo_table}  ";
        if ($wr_id) {
            $sql_seo_board .= " where wr_id='{$wr_id}' ";
        }
    $result_seo_board = sql_query($sql_seo_board);
    $row_seo_board = sql_fetch_array($result_seo_board);

    $desc_board1 = str_replace(" "," ",$row_seo_board['wr_content']);
    $desc_board1 = strip_tags($desc_board1); // 긴문장
    $desc_board2 = cut_str($desc_board1,150); // 150자
 
 include_once(G5_LIB_PATH.'/thumbnail.lib.php');
 $thumb = get_list_thumbnail($bo_table, $wr_id, $seo_thumb_width, $seo_thumb_height);
 //$thumb['src'] 정의를 않하면 상단에 >">" 의 에러문구가 나옴
 $thumb['src'] = $list[$i][file][0][path].'/'.$list[$i][file][0][file];
 //끝
 if($thumb['src']) {
        $seo_thumb_url = $thumb['src'];
    } else {
        $seo_thumb_url = G5_DATA_URL.'/common/seo_img.jpg">';
    }
}

 

 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
진서기
4년 전

 

 

['file']

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

이쓔민
4년 전
감사합니다 ♡♡♡♡♡♡♡♡♡♡

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인