Warning: Use of undefined constant 에러 해결법 ?

Warning: Use of undefined constant 에러 해결법 ?

QA

Warning: Use of undefined constant 에러 해결법 ?

답변 1

본문

if (!$mw_basic['cf_thumb_width']) $mw_basic['cf_thumb_width'] = 80;

 

Warning: Use of undefined constant cf_thumb_width - assumed 'cf_thumb_width' (this will throw an Error in a future version of PHP) in <b>C:\AutoSet10\public_html\mw5\skin\board\miwit\mw.adm\mw.config.update.php</b> on line 40

 

왜 저 파란색 코드가 빨간색 에러를 뿜어내는 걸까요?

에러를 해결하려면 어떻게 해야 하는지?   (숨기는 거 말고, 해결하는 거 ^^;)

이 질문에 댓글 쓰기 :

답변 1

if (!isset($mw_basic['cf_thumb_width'])) $mw_basic['cf_thumb_width'] = 80;

그렇게 해봐도 여전히 나오네요.
오토셋10에 내장된 PHP Version 7.2.10 으로,
배추베이직 스킨설정을 설정 후 확인 누르면 나오는 에러에요.
값 전달과 반영은 되는데, 앞으로 폐기될거라면서 에러가 나오네요.

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