채택완료
호스팅을 사용하다가 xampp php 8.2 이상 버전으로 업데이트 했는데 메인페이지 latest 에러관련 문의드립니다.
Warning: Undefined variable $content_length in C:\xampp\htdocs\theme\hn_thema\mobile\skin\latest\zinez\latest.skin.php on line 10
Warning: Undefined variable $wrap_width in C:\xampp\htdocs\theme\hn_thema\mobile\skin\latest\zinez\latest.skin.php on line 15
10 라인소스 if (!$content_length) $content_length = 140;
15라인소스 <div class="latest-zinez"<?php if ($wrap_width) { echo ' style="width:'.$wrap_width.'px;"'; } ?>>
메인페이지의 공지사항 latest 불러오는 부분에서 위와 같은 에러가 나는데 해결 방법이 있는지 문의드립니다.
감사합니다.
Warning: Undefined variable $wrap_width in C:\xampp\htdocs\theme\hn_thema\mobile\skin\latest\zinez\latest.skin.php on line 15
10 라인소스 if (!$content_length) $content_length = 140;
15라인소스 <div class="latest-zinez"<?php if ($wrap_width) { echo ' style="width:'.$wrap_width.'px;"'; } ?>>
메인페이지의 공지사항 latest 불러오는 부분에서 위와 같은 에러가 나는데 해결 방법이 있는지 문의드립니다.
감사합니다.
|
답변 1개 / 댓글 1개
채택된 답변
+20 포인트
표시 라인의 코드를 올려보세요.
에러 내용은 정의안된 변수 사용이니까, 별도로 변수 정의해 넣으시면 임시땜빵으로 해결은 가능할 듯.
에러 내용은 정의안된 변수 사용이니까, 별도로 변수 정의해 넣으시면 임시땜빵으로 해결은 가능할 듯.
Copy
if (empty($content_length)) $content_length = 140;
<div class="latest-zinez"<?php if (!empty($wrap_width)) { echo ' style="width:'.$wrap_width.'px;"'; } ?>>
답변을 작성하려면 로그인이 필요합니다.
정말 감사드립니다.