안녕하세요.
아래처럼 에러가 발생해서 홈페이지가 일부만 보이는 현상이 있습니다.
thrown in /home/yplab/www/lib/uri.lib.php on line 196" while reading response header from upstream, client: 183.103.74.109, server: test2ab.org, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "test2ab.org", referrer: "http://test2ab.org/"
2022/02/19 10:38:51 [error] 90663#90663: *62 FastCGI sent in stderr: "PHP message: PHP Warning: Constant _INDEX_ already defined in /home/yplab/www/theme/ypl/index.php on line 2PHP message: PHP Fatal error: Uncaught Error: Undefined constant "G5_SEO_TITEL_WORD_CUT" in /home/yplab/www/lib/uri.lib.php:196
Stack trace:
#0 /home/yplab/www/lib/uri.lib.php(286): generate_seo_title()
#1 /home/yplab/www/lib/common.lib.php(381): seo_title_update()
#2 /home/yplab/www/lib/latest.lib.php(71): get_list()
#3 /home/yplab/www/theme/ypl/mobile/index.php(12): latest()
#4 /home/yplab/www/theme/ypl/index.php(6): include_once('...')
#5 /home/yplab/www/index.php(8): require_once('...')
#6 {main}
thrown in /home/yplab/www/lib/uri.lib.php on line 196" while reading response header from upstream, client: 183.103.74.109, server: test2ab.org, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "test2ab.org", referrer: "http://test2ab.org/"
어떻게 하면 좋을까요?
답변 5개 / 댓글 5개
bihon님 답변에서
G5_SEO_TITEL_WORD_CUT <--이것이 title 철자가 잘못 되었으나
config.php에서 define('G5_SEO_TITEL_WORD_CUT', 8); 이와같이 동일하게 철자가 되어있으므로 오류가 아닙니다
질문자의 config.php가 예전 것이어서 나타난 에러 같은데 예전 그누에서 버젼을 업그레이드한 것인가요?
하여튼 config.php를 버젼에 맞는 것으로 교체해보세요
-----------------------
Constant _INDEX_ already defined in /home/yplab/www/theme/ypl/index.php on line 2
<--- 이 에러는 _INDEX_을 두번 defined했다는 것이니 아래 코드 찾아서 하나는 삭제
define('_INDEX_', true);
답변에 대한 댓글 2개
Stack trace:
#0 /home/yplab/www/lib/uri.lib.php(286): generate_seo_title()
#1 /home/yplab/www/lib/common.lib.php(381): seo_title_update()
#2 /home/yplab/www/lib/latest.lib.php(71): get_list()
#3 /home/yplab/www/theme/ypl/mobile/index.php(12): latest()
#4 /home/yplab/www/theme/ypl/index.php(6): include_once('...')
#5 /home/yplab/www/index.php(8): require_once('...')
이런 메시지들로 인해 홈페이지가 정상적으로 안 나타나는것 같네요.
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.
zip tar.gz path 모두 받아서 config.php 파일 확인,
G5_SEO_TITLE_WORD_CUT 으로 잘 지정되어 있네요.
동일하게 오타였으면 오류가 뜨지 않았겠죠.