에러 질문 드립니다..

에러 질문 드립니다..

QA

에러 질문 드립니다..

본문

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 

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

회원로그인

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