0

Every time 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 followed 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.