Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

10002: The XML document is well formed


prayhard87

Recommended Posts

I get the following error in the checkout page of my OSC shopping cart:

 

10002: The XML document is well formed but the document is not valid.

 

I have seen several threads on it and am trying some of the suggested modifications... does anyone know of one that they have used that works for SURE?

 

Thanks :'(

Link to comment
Share on other sites

  • 1 month later...

Hi there

 

Iwas having the same error message and it drove me crazy :blink:

 

I spent a good hour or so going through the forum trying to find a solution. A lot of posts talk about the dimensional support, but I didnt opt to install that part of upsxml because I didnt need it. So I figured by not installing the dimensional support, that the define var didnt apply to my problem.

 

I was wrong :blush:

 

The upsxml contribution comes with it enabled, so if you dont use it, desable it to avoid the same headache.

 

in catalog/includes/modules/shipping/upsxml.php

 

change this

 

// if using the optional dimensional support, set to 1, otherwise leave as 0
define('DIMENSIONS_SUPPORTED', 1);

 

to this

// if using the optional dimensional support, set to 1, otherwise leave as 0
define('DIMENSIONS_SUPPORTED', 0);

 

that solved my 10002: The XML document is well formed problem

 

 

hope this helps !

Link to comment
Share on other sites

  • 2 months later...
Hi there

 

Iwas having the same error message and it drove me crazy :blink:

 

I spent a good hour or so going through the forum trying to find a solution. A lot of posts talk about the dimensional support, but I didnt opt to install that part of upsxml because I didnt need it. So I figured by not installing the dimensional support, that the define var didnt apply to my problem.

 

I was wrong :blush:

 

The upsxml contribution comes with it enabled, so if you dont use it, desable it to avoid the same headache.

 

in catalog/includes/modules/shipping/upsxml.php

 

change this

 

// if using the optional dimensional support, set to 1, otherwise leave as 0
define('DIMENSIONS_SUPPORTED', 1);

 

to this

// if using the optional dimensional support, set to 1, otherwise leave as 0
define('DIMENSIONS_SUPPORTED', 0);

 

that solved my 10002: The XML document is well formed problem

hope this helps !

 

You've just became an active player on my top ten list of favorite people of the day!

Insert clever remark here

Link to comment
Share on other sites

  • 5 years later...

       }
       if (defined('SHIPPING_UNIT_LENGTH')) {
         $this->unit_length = SHIPPING_UNIT_LENGTH;
       } else {
         $this->unit_length = 'IN';
       }
       if (defined('SHIPPING_DIMENSIONS_SUPPORT') && SHIPPING_DIMENSIONS_SUPPORT == 'Ready-to-ship only') {
         $this->dimensions_support = 1;
       } elseif (defined('SHIPPING_DIMENSIONS_SUPPORT') && SHIPPING_DIMENSIONS_SUPPORT == 'With product dimensions') {
         $this->dimensions_support = 2;
       } else {
         $this->dimensions_support = 0;
       }

 

however i think in my condition i need to get fixed here not sure how to get it fixed

code above is from file includes/modules/shipping/upsxml.php

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...