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


12

Magento mi ha lasciato di nuovo perplesso! All'interno di /var/log/system.log visualizzo i seguenti avvisi e non sono stato in grado di rintracciare la causa. Seguendo il timestamp, sembra che stiano tutti sparando allo stesso tempo, quindi forse è un'azione particolare che fa scattare le 24 linee di avvertimenti ... qualche idea su come eseguire il debug?

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

Risposte:


18

Sembra che qualcosa stia rompendo il modulo di feed adminhtml.

La causa potrebbe essere un modulo di terze parti che sta recuperando XML non valido.

Verifica se il codice del tuo sito contiene una classe che si estende Mage_AdminNotification_Model_Feed.

Una volta trovato:

  1. Prova a disabilitare quel modulo (in app/etc/modules/).
  2. Pulisci il file system.log.
  3. Vedi se l'errore è scomparso.

Ripetere questo processo per ciascun modulo. Dopo aver determinato quale modulo sta creando il problema, è possibile modificarlo config.xmle commentare l'osservatore che attiva la notifica.

Suggerirò inoltre di contattare lo sviluppatore del modulo e di informarli del problema.


1
Perfetto, la soluzione che hai suggerito ha funzionato bene. Ho cercato "AdminNotification" e ho sospettato subito un modulo specifico quando ho visto apparire il suo file xml. Ho impostato il modulo su false, ripristinato la cache, disconnesso / connesso e il problema è andato via. Da allora ho inviato un'email allo sviluppatore del modulo per correggere il loro codice. Grazie!
riskywebmaster

+1 davvero utile per questo
Ram Sharma

Puoi anche usare xdebug per attaccare un punto di interruzione sul metodo getFeedData, in questo modo puoi vedere quale modulo lo sta causando piuttosto che disabilitare 1 per 1 se hai più di un modulo usando il lettore di feed. Risposta utile però +1
Luca
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.