테스트 사이트 - 개발 중인 베타 버전입니다

그누보드 php 에러가 생겨요.. 채택완료

떳다이장님 7년 전 조회 3,410

[error] 18178#0: *61 FastCGI sent in stderr: "PHP message: PHP Warning:  Use of undefined constant G5_COMMUNITY_USE - assumed 'G5_COMMUNITY_USE' (this will throw an Error in a future version of PHP) in /usr/share/nginx/html/yongcart/bbs/_common.php on line 5" while reading response header from upstream, client: 333333, server: tzoa.me, request: "GET /bbs/ajax.comment_token.php?_=1514695215259 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:",

 

서버 로그를 보면

이런 에러가 계속 생기는데 왜 그런건가요 ㅠㅠ

 

엄청나게 많이 생겨요..ㅠ

 

 

 

<?php
include_once('../common.php');

// 커뮤니티 사용여부
if(G5_COMMUNITY_USE === true) {
    if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
        die('<p>쇼핑몰 설치 후 이용해 주십시오.</p>');

    define('_COMMUNITY_', true);
}
?>

 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
M
7년 전

NOTICE라서 큰 의미는 없습니다.

 

php.ini 열어서

 

error_reporting = E_ALL & ~E_NOTICE

 

식으로 변경해주시면 됩니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인