신디케이션 오류 재질문 드립니다. 정보
신디케이션 오류 재질문 드립니다.본문
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=176206&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%3C%3F%3Dcut_hangul_l&sop=and&spt=-48739&page=1
위 글을 참고하여 utf-8 서버에 설치하였습니다. 일주일 정도가 지났는데요, 네이버 고객센터에 문의하니 핑이 온 것이 없다고 합니다. 서버 에러로그를 보면
2012/06/06 00:54:24 [error] 7461#0: *1 FastCGI sent in stderr: "PHP Notice: Undefined variable: wr_subject in /home/blog/www/bbs/write_update.php on line 2
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/blog/www/syndi/libs/SyndicationHandler.class.php on line 21" while reading response header from upstream, client: 121.140.19.41, server: qooo.us, request: "POST /bbs/write_update.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.qooo.us", referrer: "http://www.qooo.us/bbs/write.php?bo_table=b022"
2012/06/06 00:54:26 [error] 7461#0: *1 FastCGI sent in stderr: "PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/blog/www/syndi/libs/SyndicationHandler.class.php on line 21" while reading response header from upstream, client: 121.140.19.41, server: qooo.us, request: "GET /bbs/delete.php?bo_table=b022&wr_id=24&token=13389116644fce2bb0eb3c4&page=0&sca=&sfl=&s
이 에러들이 반복적으로 찍히는데요. write_update.php 는 일단 글이 작성되는데 아무 문제가 없어서 신경을 쓰지 않고 있고, SyndicationHandler.class.php 의 21번째 줄을 봐도 원본가 같고, 작성된 팁에는 언급조차 되지 않는 내용이라 어떻게 해야 될지 모르겠습니다. 해당 소스로 구글에 검색해봐도 결과가 없네요..
function &getInstance()
{
if(!$GLOBALS['__SyndicationHandler__'])
{
$GLOBALS['__SyndicationHandler__'] = &new SyndicationHandler();
}
return $GLOBALS['__SyndicationHandler__'];
}
이 소스 중에서 $GLOBALS['__SyndicationHandler__'] = &new SyndicationHandler(); 이 부분이 21번째에 해당하는 구문이며, 어떻게 해야될지 모르겠습니다..
사이트 초창기라 네이버 검색에 의존을 해야하는데.. 조언 부탁드립니다. 서버 환경은 우분투 10.04 nginx + php5.3.5-1입니다.
위 글을 참고하여 utf-8 서버에 설치하였습니다. 일주일 정도가 지났는데요, 네이버 고객센터에 문의하니 핑이 온 것이 없다고 합니다. 서버 에러로그를 보면
2012/06/06 00:54:24 [error] 7461#0: *1 FastCGI sent in stderr: "PHP Notice: Undefined variable: wr_subject in /home/blog/www/bbs/write_update.php on line 2
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/blog/www/syndi/libs/SyndicationHandler.class.php on line 21" while reading response header from upstream, client: 121.140.19.41, server: qooo.us, request: "POST /bbs/write_update.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.qooo.us", referrer: "http://www.qooo.us/bbs/write.php?bo_table=b022"
2012/06/06 00:54:26 [error] 7461#0: *1 FastCGI sent in stderr: "PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/blog/www/syndi/libs/SyndicationHandler.class.php on line 21" while reading response header from upstream, client: 121.140.19.41, server: qooo.us, request: "GET /bbs/delete.php?bo_table=b022&wr_id=24&token=13389116644fce2bb0eb3c4&page=0&sca=&sfl=&s
이 에러들이 반복적으로 찍히는데요. write_update.php 는 일단 글이 작성되는데 아무 문제가 없어서 신경을 쓰지 않고 있고, SyndicationHandler.class.php 의 21번째 줄을 봐도 원본가 같고, 작성된 팁에는 언급조차 되지 않는 내용이라 어떻게 해야 될지 모르겠습니다. 해당 소스로 구글에 검색해봐도 결과가 없네요..
function &getInstance()
{
if(!$GLOBALS['__SyndicationHandler__'])
{
$GLOBALS['__SyndicationHandler__'] = &new SyndicationHandler();
}
return $GLOBALS['__SyndicationHandler__'];
}
이 소스 중에서 $GLOBALS['__SyndicationHandler__'] = &new SyndicationHandler(); 이 부분이 21번째에 해당하는 구문이며, 어떻게 해야될지 모르겠습니다..
사이트 초창기라 네이버 검색에 의존을 해야하는데.. 조언 부탁드립니다. 서버 환경은 우분투 10.04 nginx + php5.3.5-1입니다.
댓글 전체
$GLOBALS['__SyndicationHandler__'] = &new SyndicationHandler();
를 아래처럼 수정해보세요.
위에 에러는 "& 연산자"의 참조 에러라고 하는데...
테스트는 님이 직접해보세요. 그리고 결과를 알려주세요.
$nnn = new SyndicationHandler();
$GLOBALS['__SyndicationHandler__'] = &$nnn;
를 아래처럼 수정해보세요.
위에 에러는 "& 연산자"의 참조 에러라고 하는데...
테스트는 님이 직접해보세요. 그리고 결과를 알려주세요.
$nnn = new SyndicationHandler();
$GLOBALS['__SyndicationHandler__'] = &$nnn;
감사합니다! 현재 위에서 보였던 에러로그는 사라졌네요.
글 몇개 더 올려보고 몇일뒤에 네이버 신디케이션에 핑이 도달했는지 나오는지 봐야 할 것 같습니다.
다시 한번 감사드립니다!
글 몇개 더 올려보고 몇일뒤에 네이버 신디케이션에 핑이 도달했는지 나오는지 봐야 할 것 같습니다.
다시 한번 감사드립니다!