Zen Cart Logo
Forums / Addon Shipping Modules / Probelms with UPS XML shipping mod

Probelms with UPS XML shipping mod

Locked

Views: 5,819

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
28 Oct 2007, 7:26 AM
#1
zidain avatar

zidain

Zen Follower

Join Date:
Oct 2007
Posts:
106
Plugin Contributions:
0

Probelms with UPS XML shipping mod

This is the display I get when I am attempting to "get shipping est." from the store upon check out...Does anyone have any ideas how to fix this as I've followed all the directions on http://www.zen-cart.com/wiki/index.php/3rd_party_contributions_-_Shipping_Modules_-_UPS_XML#STEP_4

Thanks for the help.

Zidain

Warning: require(includes/classes/xmldocument.php) [function.require]: failed to open stream: No such file or directory in /home/.expresso/coleby/vinashcoaching.com/store/includes/modules/shipping/upsxml.php on line 36

Fatal error: require() [function.require]: Failed opening required 'includes/classes/xmldocument.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.expresso/coleby/vinashcoaching.com/store/includes/modules/shipping/upsxml.php on line 36

28 Oct 2007, 4:42 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Probelms with UPS XML shipping mod

I would try reloading the files and make sure that you are placing them in the right directories ...
/includes/modules/shipping <-- code file
/includes/languages/english/modules/shipping <-- language define files

28 Oct 2007, 11:34 PM
#3
zidain avatar

zidain

Zen Follower

Join Date:
Oct 2007
Posts:
106
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

I've tried reloading them...still getting the same problem...any other suggestions?

Thanks,
Zidain

29 Oct 2007, 1:38 PM
#4
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

What is the size, date and CHMOD on this file:
/home/.expresso/coleby/vinashcoaching.com/store/includes/classes/xmldocument.php

29 Oct 2007, 5:07 PM
#5
zidain avatar

zidain

Zen Follower

Join Date:
Oct 2007
Posts:
106
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

At this time the errors are gone, I think there was a cookie problem before the files were loaded but...the new problem is that the feature "get shipping est." isn't working. When you go to get the shipping est. nothing happens. Any advice?

Size= 9030
Date=Saturday, July 09, 2005, 7:01:28 PM uploaded on Oct. 29th, 2007
CHMOD=644

29 Oct 2007, 5:45 PM
#6
zidain avatar

zidain

Zen Follower

Join Date:
Oct 2007
Posts:
106
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

Te store is located at https://www.vinashcoaching.com/store I configured the site to accept UPSXML (in admin) and uploaded the required files. Currently the popup for get shipping est. comes up but no date will retrieve itself when a user attempts to get a quote. Can anyone help?

Thanks,
Zidain

30 Oct 2007, 6:59 AM
#7
zidain avatar

zidain

Zen Follower

Join Date:
Oct 2007
Posts:
106
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

I'm looking into the Fedex mod but please feel free to post anything about UPSXML as I"m still interested in offering that too.

Zidain

MODERATOR NOTE: FedEx mod question was posted here: http://www.zen-cart.com/forum/showthread.php?t=78963

31 Oct 2007, 3:56 PM
#8
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

Your UPSXML appears to be working with out errors for me.

31 Oct 2007, 11:45 PM
#9
zidain avatar

zidain

Zen Follower

Join Date:
Oct 2007
Posts:
106
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

Yeah I've figured it out now..Still have a display problem though when it is too long forcing it down one line below the price upon check out...I know it might confuse some people, is there anyway to lessen the chars of the shipping method in check out? (i.e. from

United Parcel Service (1 pkg x 0.00 lbs total) (UPS Ground, ETA: November 02, 2007)

to

(UPS Ground, ETA: November 02, 2007)

or something like that?

Zidain~

2 Nov 2007, 5:35 PM
#10
divineanarchy avatar

divineanarchy

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

I've freshly installed UPS XML but i'm getting errors in the xmldocument.php class file:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of runtime function name. If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in C:\wwwroot\htdocs\store\includes\classes\xmldocument.php on line 262

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of runtime function name. If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in C:\wwwroot\htdocs\store\includes\classes\xmldocument.php on line 281

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in C:\wwwroot\htdocs\store\includes\classes\xmldocument.php on line 290

Cannot use object of type queryFactoryResult as array in C:\wwwroot\htdocs\store\includes\modules\shipping\upsxml.php on line 185

Any ideas? PHP 5 and the latest zenny

5 Nov 2007, 5:30 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Probelms with UPS XML shipping mod

zidain:

Still have a display problem though when it is too long forcing it down one line below the price upon check out...I know it might confuse some people, is there anyway to lessen the chars of the shipping method in check out? (i.e. from

United Parcel Service (1 pkg x 0.00 lbs total) (UPS Ground, ETA: November 02, 2007)

to

(UPS Ground, ETA: November 02, 2007)

or something like that?You'd have to remove the pieces you don't want from this code:```
if (DIMENSIONS_SUPPORTED) {
$this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . $totalWeight . ' ' . strtolower($this->unit_weight) . ' total)');
} else {
$this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . number_format($shipping_weight,2) . ' ' . strtolower($this->unit_weight) . ' total)');
}
$methods = array();
for ($i=0; $i < sizeof($upsQuote); $i++) {
list($type, $cost) = each($upsQuote[$i]);
// BOF limit choices
if (!exclude_choices($type)) continue;
// EOF limit choices
if ( $method == '' || $method == $type ) {
$_type = $type;
//if (isset($this->servicesTimeintransit[$type])) {
// $_type = $_type . ", ".$this->servicesTimeintransit[$type]["date"];
//}
// instead of just adding the expected delivery date as ", yyyy-mm-dd"
// you might like to change this to your own liking for example by commenting the
// three lines above this and uncommenting/changing the next:
// START doing things differently
if (isset($this->servicesTimeintransit[$type])) {
$eta_array = explode("-", $this->servicesTimeintransit[$type]["date"]);
$months = array (" ", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
$eta_arrival_date = $months[(int)$eta_array[1]]." ".$eta_array[2].", ".$eta_array[0];
$_type .= ", ETA: ".$eta_arrival_date;
}
// END of doing things differently:

            $methods[] = array('id' => $type, 'title' => $_type, 'cost' => ($this->handling_fee + $cost));
            }
        }
5 Nov 2007, 6:36 PM
#12
zidain avatar

zidain

Zen Follower

Join Date:
Oct 2007
Posts:
106
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

what file is that code located in?

Zidain~

5 Nov 2007, 6:38 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Probelms with UPS XML shipping mod

that's in your ups xml shipping module /includes/modules/shipping/upsxml.php

5 Nov 2007, 6:40 PM
#14
zidain avatar

zidain

Zen Follower

Join Date:
Oct 2007
Posts:
106
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

Thanks Dr.

6 Nov 2007, 5:37 PM
#15
divineanarchy avatar

divineanarchy

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

DrByte , can you assist please?

I've freshly installed UPS XML but i'm getting errors in the xmldocument.php class file:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of runtime function name. If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in C:\wwwroot\htdocs\store\includes\classes\xmldocume nt.php on line 262

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of runtime function name. If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in C:\wwwroot\htdocs\store\includes\classes\xmldocume nt.php on line 281

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in C:\wwwroot\htdocs\store\includes\classes\xmldocume nt.php on line 290

Cannot use object of type queryFactoryResult as array in C:\wwwroot\htdocs\store\includes\modules\shipping\ upsxml.php on line 185

Any ideas? PHP 5 and the latest zenny

19 Mar 2008, 2:43 AM
#17
yesnomaybe avatar

yesnomaybe

New Zenner

Join Date:
Mar 2008
Posts:
34
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

Hi everyone,
I just installed this module. I have the following error in the admin

Warning: main(/mnt/w0205/d18/s49/b02b4d83/www/rack-import.com/shop/includes/languages/french/modules/shipping/upsxml.php) [function.main]: failed to open stream: No such file or directory in /mnt/w0205/d18/s49/b02b4d83/www/rack-import.com/shop/admin/modules.php on line 173

Warning: main() [function.include]: Failed opening '/mnt/w0205/d18/s49/b02b4d83/www/rack-import.com/shop/includes/languages/french/modules/shipping/upsxml.php' for inclusion (include_path='.:/usr/local/nf/lib/php') in /mnt/w0205/d18/s49/b02b4d83/www/rack-import.com/shop/admin/modules.php on line 173

Also, when I test it online, I can see in the shopping cart is this:

MODULE_SHIPPING_UPSXML_RATES_TEXT_TITLE (1 pkg x 8.70 kgs total)

Can someone help?

19 Mar 2008, 4:40 AM
#18
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

Every language offered will need to have a copy of upsxml.php in:
/your_shop/includes/languages/<your language>/modules/shipping/upsxml.php

19 Mar 2008, 8:58 AM
#19
yesnomaybe avatar

yesnomaybe

New Zenner

Join Date:
Mar 2008
Posts:
34
Plugin Contributions:
0

Re: Probelms with UPS XML shipping mod

stagebrace:

Every language offered will need to have a copy of upsxml.php in:
/your_shop/includes/languages/<your language>/modules/shipping/upsxml.php
Off course... I should see that! I was probably too tired... Ok, it's working now. I,ll test it. Thanks a lot! :smile: