이미지가 없을 때 다음과 같은 에러가 나옵니다
본문
안녕하세요 이미지를 첨부하지 않은 갤러리 게시판에서 다음과 같은 에러가 나옵니다
왜 그런지요?
감사합니다
Warning: imagerotate() expects parameter 1 to be resource, boolean given in /redo_sznet/www/lib/thumbnail.lib.php on line 264
답변 2
리스트 스킨중에
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, true);
라인을 찾아서
$thumb = @get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, true);
이렇게 해보세요....
에러를 무시하라는 겁니다.
이미지가 없는데 해당 함수를 호출하는 문제 입니다.
답변을 작성하시기 전에 로그인 해주세요.