Magento system.log '경고 : SimpleXMLElement'-(adminNotification / Model / Feed.php)


12

마 젠토가 또 다시 넘어졌다! /var/log/system.log에서 다음 경고가 표시되고 원인을 추적 할 수 없습니다. 타임 스탬프로 가면 모두 동시에 발사되는 것처럼 보이므로 24 줄의 경고를 설정하는 특정 작업 일 것입니다 ... 디버깅 방법에 대한 아이디어는 무엇입니까?

2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Entity: line 2: parser error : AttValue: &quot; or ' expected  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: &lt;html lang=en&gt;  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]:            ^  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Entity: line 2: parser error : attributes construct error  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: &lt;html lang=en&gt;  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]:            ^  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Entity: line 2: parser error : Couldn't find end of Start Tag html line 2  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: &lt;html lang=en&gt;  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]:            ^  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Entity: line 2: parser error : Extra content at the end of the document  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: &lt;html lang=en&gt;  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:16+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]:            ^  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Entity: line 2: parser error : AttValue: &quot; or ' expected  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: &lt;html lang=en&gt;  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]:            ^  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Entity: line 2: parser error : attributes construct error  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: &lt;html lang=en&gt;  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]:            ^  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Entity: line 2: parser error : Couldn't find end of Start Tag html line 2  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: &lt;html lang=en&gt;  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]:            ^  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Entity: line 2: parser error : Extra content at the end of the document  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: &lt;html lang=en&gt;  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
2013-07-17T08:06:21+00:00 ERR (3): Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]:            ^  in /home/public_html/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173

답변:


18

adminhtml 피드 모듈에 문제가있는 것 같습니다.

원인은 유효하지 않은 XML을 검색하는 타사 모듈 일 수 있습니다.

사이트 코드에 확장 클래스가 포함되어 있는지 확인하십시오 Mage_AdminNotification_Model_Feed.

당신이 그것을 찾으면 :

  1. 해당 모듈을 비활성화하십시오 ( app/etc/modules/).
  2. system.log를 청소하십시오.
  3. 오류가 사라 졌는지 확인하십시오.

각 모듈에 대해이 과정을 반복하십시오. 어떤 모듈이 문제를 일으키는 지 config.xml확인한 후에는 해당 모듈을 편집 하고 알림을 트리거하는 관찰자를 주석 처리 할 수 있습니다 .

또한 모듈 개발자에게 연락하여 문제에 대해 알리는 것이 좋습니다.


1
완벽하게 제안한 솔루션이 훌륭하게 작동했습니다. 나는 "AdminNotification"을 봤는데 바로 xml 파일이 나타 났을 때 특정 모듈을 의심했다. 모듈을 false로 설정하고 캐시를 재설정하고 로그 아웃 / 로그인하면 문제가 해결되었습니다. 그 후 모듈 개발자에게 이메일을 보내 코드를 수정했습니다. 감사!
riskywebmaster

정말 도움이 +1
Ram Sharma

또한 xdebug를 사용하여 getFeedData 메소드에 중단 점을 지정할 수 있습니다. 이렇게하면 피드 리더를 사용하는 둘 이상의 모듈이있는 경우 1 x 1을 사용하지 않도록 설정하는 대신 어떤 모듈이 원인인지 확인할 수 있습니다. 유용한 답변 +1
Luke
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.