에러 질문 드립니다..

에러 질문 드립니다..

QA

에러 질문 드립니다..

답변 2

본문

Warning: Illegal string offset 'file' in /host/home2/dod1020/html/lib/common.lib.php on line 1002

Warning: Illegal string offset '$matches[1]' in /host/home2/test123/html/lib/common.lib.php on line 1002

Warning: Illegal string offset 'view' in /host/home2/test123/html/lib/common.lib.php on line 1002

Warning: Illegal string offset 'file' in /host/home2/test123/html/lib/common.lib.php on line 1003

Warning: Illegal string offset '$matches[1]' in /host/home2/test123/html/lib/common.lib.php on line 1003

Warning: Illegal string offset 'view' in /host/home2/test123/html/lib/common.lib.php on line 1003

Warning: Illegal string offset 'file' in /host/home2/test123/html/lib/common.lib.php on line 1002

Warning: Illegal string offset '$matches[1]' in /host/home2/test123/html/lib/common.lib.php on line 1002

Warning: Illegal string offset 'view' in /host/home2/test123/html/lib/common.lib.php on line 1002

Warning: Illegal string offset 'file' in /host/home2/test123/html/lib/common.lib.php on line 1003

Warning: Illegal string offset '$matches[1]' in /host/home2/test123/html/lib/common.lib.php on line 1003

Warning: Illegal string offset 'view' in /host/home2/test123/html/lib/common.lib.php on line 1003


-------------------------------------------------------------------------------------------------------------------

이런 에러가 엄청 나게 떠요... 막상 저 위치에 가보면...


    if ($view['file'][$number]['view'])
        return preg_replace("/>$/", " $attribute>", $view['file'][$number]['view']);

얘네 박이 없거든요... 얘네를 어떻게 해야 되는건가요? ㅠㅠ

 

이 질문에 댓글 쓰기 :

답변 2

php 5.4.x 버전에서는 문법이 좀더 엄격해진 것 같습니다.

lib/common.lib.php 파일에서

if ($view['file'][$number]['view']) 이 부분을 아래와 같이 수정해보세요.

if (is_array($view) && $view['file'][$number]['view'])

 

참고 링크

http://opencode.co.kr/bbs/board.php?bo_table=php_tips&wr_id=161 

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 226
© SIRSOFT
현재 페이지 제일 처음으로