Jump to content

PHP SimpleXMLElement error


Trickster61

Recommended Posts

Hiya,

 

I have Cubecart 5.2.12

 

In the error log in Cpanel I'm seeing this series of errors over and over.  I guess I want to know if this is an easy fix or should I submit a ticket or hire a freelancer?  I don't think I've ever edited these files.  I've looked at dashboard.index.inc.php on line 243 and I'm clueless because I know nothing about PHP.  Thanks for looking.

 

[12-Oct-2014 09:10:44 Australia/Perth] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : Space required after the Public Identifier in /home/you32903/public_html/admin/sources/dashboard.index.inc.php on line 243

 

[12-Oct-2014 09:10:44 Australia/Perth] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: &lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt; in /home/you32903/public_html/admin/sources/dashboard.index.inc.php on line 243

 

[12-Oct-2014 09:10:44 Australia/Perth] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ^ in /home/you32903/public_html/admin/sources/dashboard.index.inc.php on line 243

 

[12-Oct-2014 09:10:44 Australia/Perth] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : SystemLiteral &quot; or ' expected in /home/you32903/public_html/admin/sources/dashboard.index.inc.php on line 243

 

[12-Oct-2014 09:10:44 Australia/Perth] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: &lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt; in /home/you32903/public_html/admin/sources/dashboard.index.inc.php on line 243

 

[12-Oct-2014 09:10:44 Australia/Perth] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ^ in /home/you32903/public_html/admin/sources/dashboard.index.inc.php on line 243

 

[12-Oct-2014 09:10:44 Australia/Perth] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing in /home/you32903/public_html/admin/sources/dashboard.index.inc.php on line 243

 

[12-Oct-2014 09:10:44 Australia/Perth] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: &lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt; in /home/you32903/public_html/admin/sources/dashboard.index.inc.php on line 243

 

[12-Oct-2014 09:10:44 Australia/Perth] PHP Warning: SimpleXMLElement::__construct() [<a href='http://docs.php.net/manual/en/simplexmlelement.construct.php'>simplexmlelement.construct.php</a>]: ^ in /home/you32903/public_html/admin/sources/dashboard.index.inc.php on line 243

 

[12-Oct-2014 09:10:44 Australia/Perth] PHP Warning: String could not be parsed as XML in /home/you32903/public_html/admin/sources/dashboard.index.inc.php on line 259

 

 

 

This is line 243 in dashboard.index.inc.php if it's any help:

 

if (($data = new SimpleXMLElement($response)) !== false) {

 

I'm kinda thnking the line 259 is the code that generates the error message:

 

trigger_error($e->getMessage(), E_USER_WARNING);

 

 

 

Regards,

 

Rick

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...