Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: xmldocument.php on line 57


sanam

Recommended Posts

Hello all, my site has suddenly started giving me this error

 

Fatal error: Call to a member function on a non-object in /home/XXXXX/public_html/catalog/includes/classes/xmldocument.php on line 57

 

Its been up and running for 6 months without any problem. I checked other postings and found out that lot of people had similar problem but no solution posted so far.

 

If someone had found the solution could he/she be kind enough to share it. I have tried everything that i could to find where the problem is. Your time is greatly appreciated.

 

Thanks in advance.

Link to comment
Share on other sites

Hello all, my site has suddenly started giving me this error

 

Fatal error: Call to a member function on a non-object in /home/XXXXX/public_html/catalog/includes/classes/xmldocument.php on line 57

You are pretty vague in your description. Not a good way to ask for help.

 

Download the latest version of UPS XML, because that is what you are using (am I right or wrong?). Deinstall UPS XML in the admin after careful noting your settings (especially the key, username etc.). Upload the new files upsxml.php in their respective directories (no need to change xmldocument.php) and then re-install UPS XML.

 

The error is described in the source code of the newer versions:

		if(!$xmlResponse || strstr(strtolower(substr($xmlResponse, 0, 120)), "bad request"))  {
		/* Sometimes the UPS server responds with an HTML message (differing depending on whether the test server
		   or the production server is used) but both have in the title tag "Bad request".
		   Parsing this response will result in a fatal error:
		   Call to a member function on a non-object in /blabla/includes/classes/xmldocument.php on line 57
		   It only results in not showing Estimated Delivery Dates to the customer so avoiding the fatal error should do.
		*/

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...