Jump to content
Sign in to follow this  
HillbillysAuctions

Error with UPS XML Modeule

Recommended Posts

Ok, just installed the UPS XML module, from my admin end though when I apply any changes to the UPS Shipping module, I am getting this error:

"Couldn't find constant UPSXML_Array in /home/mountain/public_html/catalog/includes/modules/shipping/upsxml.php on line 1043"

 

Any suggestions?


T. Patterson

Hillbillys Auctions

Share this post


Link to post
Share on other sites

Any suggestions?

How about reading the install instructions that came with the module? The error is mentioned in there (plus the support thread for this contribution which you also missed).

Share this post


Link to post
Share on other sites

How about reading the install instructions that came with the module? The error is mentioned in there (plus the support thread for this contribution which you also missed).

 

>_<

 

Thank you so much for your tactfulness. Yes, I did read the install instructions of which I am assuming that you refer to this:

*****************************************

Find This code somewhere around line 48:

*****************************************

 

if (tep_not_null($action)) {

switch ($action) {

case 'save':

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

 

***********************************************

INSERT THE FOLLOWING CODE AFTER THE ABOVE LINE:

***********************************************

 

if (is_array($value) ) {

$value = implode( ", ", $value);

$value = ereg_replace (", --none--", "", $value);

}

 

****************************

SO IT SHOULD LOOK LIKE THIS:

****************************

 

if (tep_not_null($action)) {

switch ($action) {

case 'save':

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

if (is_array($value) ) {

$value = implode( ", ", $value);

$value = ereg_replace (", --none--", "", $value);

}

tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");

}

tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));

break;

case 'install':

 

 

NOTE1: if you fail to do this step you will get the following error message when editing UPS XML in the admin:

 

Warning: constant() [function.constant]: Couldn't find constant UPSXML_Array in /path/to/your/shop_root/includes/modules/shipping/upsxml.php on line 1010

 

Yes, I did make those changes, as well as the others mentioned in the install directions.

 

:rolleyes:


T. Patterson

Hillbillys Auctions

Share this post


Link to post
Share on other sites

Yes, I did make those changes, as well as the others mentioned in the install directions.

Excellent, than going back in the admin, excluding some methods and saving the settings should get rid of the error.

Share this post


Link to post
Share on other sites

Excellent, than going back in the admin, excluding some methods and saving the settings should get rid of the error.

 

 

Well.....eliminated them one by one until only UPS Ground was left.....still same error.


T. Patterson

Hillbillys Auctions

Share this post


Link to post
Share on other sites

Well.....eliminated them one by one until only UPS Ground was left.....still same error.

Then I really think something went wrong when you edited the file admin/modules.php. The file does not split up the post array of methods that should be disallowed so they are just "reported" as Array and then end up as UPSXML_Array in the database.

Perhaps something went wrong with ftp-ing the file?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×