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

12

Magento me deixou perplexo de novo! Em /var/log/system.log, estou vendo os seguintes avisos e não consegui rastrear a causa. Seguindo o timestamp, parece que todos estão disparando ao mesmo tempo, então talvez seja uma ação específica que desencadeia as 24 linhas de avisos ... alguma idéia de como depurar?

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
riskywebmaster
fonte

Respostas:

18

Parece que algo está quebrando o módulo de feed do adminhtml.

A causa pode ser um módulo de terceiros que está recuperando XML inválido.

Verifique se o código do site contém alguma classe que se estenda Mage_AdminNotification_Model_Feed.

Depois de encontrá-lo:

  1. Tente desativar esse módulo (pol app/etc/modules/).
  2. Limpe o system.log.
  3. Veja se o erro se foi.

Repita esse processo para cada módulo. Depois de determinar qual módulo está criando o problema, você pode editá-lo config.xmle comentar o observador que aciona a notificação.

Também sugerirei entrar em contato com o desenvolvedor do módulo e notificá-lo sobre o problema.

Fra
fonte
1
Perfeito, a solução que você sugeriu funcionou bem. Esperei por "AdminNotification" e imediatamente suspeitei de um módulo específico quando vi seu arquivo xml aparecer. Defino o módulo como false, redefino o cache, efetue logout / logon e o problema foi resolvido. Desde então, enviei um email ao desenvolvedor do módulo para corrigir o código. Obrigado!
Riskywebmaster
realmente útil +1 para isso
Ram Sharma
Você também pode usar o xdebug para fixar um ponto de interrupção no método getFeedData. Dessa forma, você pode ver qual módulo está causando esse problema, em vez de desativar 1 por 1, se você tiver mais de um módulo usando o leitor de feeds. Resposta útil embora +1
Luke