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

에러 질문

그거참모지 3년 전 조회 1,456

이 코드 에러가 있는데 뭐가 문제일까요?

리스트에 

이렇게 되어 있습니다.

 

 

 

arning: include_once(../../common.php): failed to open stream: No such file or directory in /usr/share/nginx/html/adm/sms_admin/_common.php on line 3 Warning: include_once(): Failed opening '../../common.php' for inclusion (include_path='/usr/share/nginx/html/plugin/htmlpurifier/standalone:.:/usr/share/pear:/usr/share/php') in /usr/share/nginx/html/adm/sms_admin/_common.php on line 3

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

답변 2개

3년 전

경로가 잘못되어서 해당 위치에 파일이 없다는겁니다. 경로는 한번 체크해보세요.

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

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

https://www.google.com/search?q=php+%EC%97%90%EB%9F%AC+%EB%A0%88%EB%B2%A8

한번 일독을 추천드립니다.

 

$list[$i]['wr_57'] 이것이 에러(notice)가 난다면 $i값이 적절하지 않을 것으로 보입니다.

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

답변에 대한 댓글 2개

그거참모지
3년 전
감사합니다. 분할 필드라 그동안 최상단에 넣어서 이상이 없었는데
안돼서 삽질하다 FOR문 안에 넣으니 애러는 사라졌습니다.
애러표시되는거는 다 잡은거 같은데 질문의 common.php가 애러나네요,

테마적용중이며
리스트 상단에
include_once(G5_PATH."/_common.php"); 이렇게 했다가 애러나는거 같아서,,,
질문의 sms_admin/_common.php에러는 코드를 빼버렸습니다.

그런데 오리지널 common.php 애러는 여전하네요

Warning: include_once(./common.php): failed to open stream: No such file or directory in /usr/share/nginx/html/_common.php on line 2

Warning: include_once(): Failed opening './common.php' for inclusion (include_path='/usr/share/nginx/html/plugin/htmlpurifier/standalone:.:/usr/share/pear:/usr/share/php') in /usr/share/nginx/html/_common.php on line 2

테마스킨폴더에는
_common.php들어있고
<?php
include_once('../../../../../common.php');
이렇게 되어 있는데 애러가 나서 왜 그런지 모르겠습니다..흑흑
엑스엠엘
3년 전
Warning: include_once(./common.php): failed to open stream: No such file or directory in /usr/share/nginx/html/_common.php on line 2
==
이거는 경로가 틀렸기 때문에 나오는 메시지입니다.
include_once('../../../../../common.php');
../ 갯수가 맞는지 잘 확인해 보세요.

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

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

로그인