에러 질문 드립니다..
본문
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
감사드립니다. 덕분에 해결 됬어요..