system.log from getFeedData() they are filling up my logs

by Maneza F8   Last Updated June 13, 2019 11:09 AM

Everytime I am checking my system.log file I would always find the following warnings.

 ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Space required after the Public Identifier  in /home/ntabethemba/projects/*****/web/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
 ERR (3): Warning: SimpleXMLElement::__construct(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">  in /home/ntabethemba/projects/*****/web/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
 ERR (3): Warning: SimpleXMLElement::__construct():                                                  ^  in /home/ntabethemba/projects/*****/web/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
 ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : SystemLiteral " or ' expected  in /home/ntabethemba/projects/*****/web/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
 ERR (3): Warning: SimpleXMLElement::__construct(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">  in /home/ntabethemba/projects/*****/web/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
 ERR (3): Warning: SimpleXMLElement::__construct():                                                  ^  in /home/ntabethemba/projects/*****/web/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
 ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing  in /home/ntabethemba/projects/*****/web/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
 ERR (3): Warning: SimpleXMLElement::__construct(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">  in /home/ntabethemba/projects/*****/web/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173
 ERR (3): Warning: SimpleXMLElement::__construct():                                                  ^  in /home/ntabethemba/projects/*****/web/app/code/core/Mage/AdminNotification/Model/Feed.php on line 173

I have follow where they come from they seem to be coming from this method

public function getFeedData()
    {
        $curl = new Varien_Http_Adapter_Curl();
        $curl->setConfig(array(
            'timeout'   => 2
        ));
        $curl->write(Zend_Http_Client::GET, $this->getFeedUrl(), '1.0');
        $data = $curl->read();
        if ($data === false) {
            return false;
        }
        $data = preg_split('/^\r?$/m', $data, 2);
        $data = trim($data[1]);
        $curl->close();

        try {
            $xml  = new SimpleXMLElement($data);
        }
        catch (Exception $e) {
            return false;
        }

        return $xml;
    }

At this moment I don't know why are they being thrown but all my services seem to be working fine.

I don't know if they can become a problem I would want to get rid of them.

I am using Magento Enterprise Edition 1.14.xx on linux 4 stages of production from local to Production i have the errors on my system.log

Thanks



Related Questions


Updated February 21, 2017 20:09 PM

Updated May 22, 2017 03:09 AM

Updated October 04, 2017 22:09 PM

Updated March 09, 2018 11:09 AM

Updated April 10, 2015 19:03 PM