Jump to content
Sign in to follow this  
spoot

Automated FedEx Labels

Recommended Posts

On my last post I had a typo on the test fedex server. The correct one is gatewaybeta.fedex.com not gateway.beta.fedex.com Hope I didnt cause trouble for anyone.....

 

 

I need some help. When I "Ship" an order all of the controls and everything look fine, but when I submit, I get "The page cannot be displayed" (Microsoft canned browser error). The URL is

http://www.mywebsite.com/admin/ship_fedex.php?cPath=&cID=&oID=120107&action=ship

(missing cPath and cID) Not sure how crucial cPath and cID are. I have PWA, purchase without account, installed.

 

The catalog is in the top of document root so the path is correct. If I refresh the "broken" page, I get the broken image because it didn't create one and there is no tracking number. I checked the /images/fedex and /admin/images/fedex dir's and both are chmod 777. The /images/fedex does write a new post.txt file each time with all the info, minus the tracking number, amongst other FedEx form data not getting returned I spose.

 

When I turn debug on, I get the below, but I can't see in here what I'm missing besides cPath and cID, so I assume that those ARE crucial to the functions.

 

Any help would be greatly appreciated. I thought I had this sucker nailed...lol.. got confident too soon :P

 

Shipment request data, package number 1:

Array
(
   [0] => 21
   [2399] => 0
   [16] => NY
   [13] => 456 My Street
   [1273] => 01
   [1274] => 92
   [18] => 5555555555
   [15] => Cornell
   [23] => 01
   [117] => US
   [17] => 14873
   [50] => US
   [11] => My Company
   [12] => Daniel Boone
   [1333] => 1
   [1415] => .00
   [1368] => 2
   [1369] => 1
   [1370] => 5
   [3002] => 120107
   [25] => 
   [3001] => 
   [38] => 
   [24] => 20050907
   [1119] => N
   [2975] => Y
   [440] => N
   [10] => 325655860
   [498] => 1199917
   [75] => LBS
   [4] => MyWebSite.com
   [5] => 123 My Street
   [6] => NONE
   [7] => Sumpem
   [8] => CA
   [9] => 95650-8911
   [183] => 9162601234
   [68] => USD
   [116] => 2
   [1117] => 1
   [1400] => 1.3
   [1401] => 0.3
)

Manifest data, package number 1:

Array
(
   [delivery_id] => 
   [orders_id] => 120107
   [delivery_name] => Daniel Boone
   [delivery_company] => 
   [delivery_address_1] => 456 My Street
   [delivery_address_2] => 
   [delivery_city] => Cornell
   [delivery_state] => NY
   [delivery_postcode] => 14873
   [delivery_phone] => (607) 324-1234
   [package_weight] => 
   [package_value] => 
   [oversized] => 0
   [pickup_date] => 20050907
   [shipping_type] => 92
   [residential] => N
   [cod] => 
   [multiple] => 1
   [tracking_num] => master_trackNum
)

Shipment request data, package number 2:

Array
(
   [0] => 21
   [2399] => 0
   [16] => NY
   [13] => 456 My Street
   [1273] => 01
   [1274] => 92
   [18] => 5555555555
   [15] => Cornell
   [23] => 01
   [117] => US
   [17] => 14873
   [50] => US
   [11] => My Company
   [12] => Daniel Boone
   [1333] => 1
   [1415] => .00
   [1368] => 2
   [1369] => 1
   [1370] => 5
   [3002] => 120107
   [25] => 
   [3001] => 
   [38] => 
   [24] => 20050907
   [1119] => N
   [2975] => Y
   [440] => N
   [10] => 325655860
   [498] => 1199917
   [75] => LBS
   [4] => MyWebSite.com
   [5] => 123 My Street
   [6] => NONE
   [7] => Sumpem
   [8] => CA
   [9] => 95650-8911
   [183] => 9162601234
   [68] => USD
   [116] => 2
   [1117] => 2
   [1400] => 1.3
   [1401] => 0.0
   [1123] => master_trackNum
)

Manifest data, package number 2:

Array
(
   [delivery_id] => 
   [orders_id] => 120107
   [delivery_name] => Daniel Boone
   [delivery_company] => 
   [delivery_address_1] => 456 My Street
   [delivery_address_2] => 
   [delivery_city] => Cornell
   [delivery_state] => NY
   [delivery_postcode] => 14873
   [delivery_phone] => (607) 324-1234
   [package_weight] => 
   [package_value] => 
   [oversized] => 0
   [pickup_date] => 20050907
   [shipping_type] => 92
   [residential] => N
   [cod] => 
   [multiple] => 2
   [tracking_num] => trackNum
)

Running in debug mode, no ship request made

 

Thanks very much for looking at my issue.

Share this post


Link to post
Share on other sites

Does anyone even have a smidge of an idea on how to trouble-shoot my issue? What can I do to debug what FedEx is or isn't returning? I tried to use the file that comes with the latest package (all updates) but it gives the same results. The info is being submitted to FedEx, so how can I see what it is returning? There has to be something, or is it truly returning NOTHING... not even an error message??

 

I've tried all that I know to this point and really could use some help... I'll try the wildest shot in the dark! Just want to try something... out of ideas.....

 

Thanks to anyone who thinks about my issue....

Share this post


Link to post
Share on other sites

Has anyone else noticed FedEx down today? It was working this morning but this afternoon it won't let me ship anything... It keeps on saying ERROR: cURL ERROR: 6: Couldn't resolve host 'gateway.fedex.com'

unable to process ship_ground


Most Valuable OsCommerce Contributions:

Also Purchased (AP) Preselection (cuts this resource hogging query down to nothing) -- Contribution 3294

FedEx Automated Labels -- Contribution 2244

RMA Returns system -- Contribution 1136

Sort Products By Dropdown -- Contribution 4312

Ultimate SEO URLs -- Contribution 2823

Credit Class & Gift Voucher -- Contribution 282

Cross-Sell -- Contribution 5347

Share this post


Link to post
Share on other sites
Does anyone even have a smidge of an idea on how to trouble-shoot my issue? What can I do to debug what FedEx is or isn't returning? I tried to use the file that comes with the latest package (all updates) but it gives the same results. The info is being submitted to FedEx, so how can I see what it is returning? There has to be something, or is it truly returning NOTHING...  not even an error message??

 

I've tried all that I know to this point and really could use some help...  I'll try the wildest shot in the dark! Just want to try something...  out of ideas.....

 

Thanks to anyone who thinks about my issue....

 

My last two posts listed incorrect URL's for FedEx gateway servers. I am sorry for that, but I did get them directly from a fedex tech (he should be fired). Not sure why he gave me a bum steer but I'm correcting it now. After reading chocolategelt's post, I tried what she listed and it worked, so thank you chocolategelt :D

 

// check for test or production gateway
if ($server == 'test') {
define('FEDEX_URI', 'https://gatewaybeta.fedex.com/GatewayDC', true);
define('FEDEX_HOST', 'gatewaybeta.fedex.com', true);
}
elseif ($server == 'production') {
define('FEDEX_URI', 'https://gateway.fedex.com/GatewayDC', true);
define('FEDEX_HOST', 'gateway.fedex.com', true);
}

 

Although noone tried to help me, I am thankful for the topic as it did ultimately provide an answer for me.

Share this post


Link to post
Share on other sites
Has anyone else noticed FedEx down today? It was working this morning but this afternoon it won't let me ship anything... It keeps on saying ERROR: cURL ERROR: 6: Couldn't resolve host 'gateway.fedex.com'

unable to process ship_ground

 

Nevermind, it was related to the LA Blackouts causing problems with the pipeline to my server.


Most Valuable OsCommerce Contributions:

Also Purchased (AP) Preselection (cuts this resource hogging query down to nothing) -- Contribution 3294

FedEx Automated Labels -- Contribution 2244

RMA Returns system -- Contribution 1136

Sort Products By Dropdown -- Contribution 4312

Ultimate SEO URLs -- Contribution 2823

Credit Class & Gift Voucher -- Contribution 282

Cross-Sell -- Contribution 5347

Share this post


Link to post
Share on other sites

do i need to contact them to get onto the production server? I put it into production mode and i can print labels just fine. Does that mean my labels will work or is there anything else that I need to do?

 

Thanks,

 

JT

Share this post


Link to post
Share on other sites

I am just getting started on Fedex Labels and have a question.

I usually have no trouble editing PHP files and I have several contribs installed and working. And I have a FEDEX account and Fedex Real Time Quotes installed so I am ready to go.

 

But in the install instructions for FEDEX Lables I do not know what this means.

 

##

## run update_db.sql

##

 

I do not have any SQL experience and I know the answer is simple but I just dont have a clue.

 

Help anybody?

 

jer37

Share this post


Link to post
Share on other sites

It is a SQL file that will help you create a table and modify another to enable the contribution to work.

 

To run this file, you can use MyPHP Admin to do it. From there, just select the appropriate database and run the SQL. As usual, with all SQLs and contributions, please perform a database backup first.

 

Learning how to do a proper MySQL backup and restore is very critical and is a 'must know' for all serious OSC users and developers. Take your take and experiment with backup and restoring. Notice..I mention restoring. Lots of people make the mistake of performing regular backups..only to realise when its time to restore that restore function isn't working or their 'backup' is not setup correctly.


- The Jackal

Share this post


Link to post
Share on other sites
It is a SQL file that will help you create a table and modify another to enable the contribution to work.

 

To run this file, you can use MyPHP Admin to do it.  From there, just select the appropriate database and run the SQL.  As usual, with all SQLs and contributions, please perform a database backup first.

 

Learning how to do a proper MySQL backup and restore is very critical and is a 'must know' for all serious OSC users and developers.  Take your take and experiment with backup and restoring.  Notice..I mention restoring.  Lots of people make the mistake of performing regular backups..only to realise when its time to restore that restore function isn't working or their 'backup' is not setup correctly.

 

After reading your comment I went to MYPHP Admin and did some reading. I have backup and restore ok now and I was able to run the update_db.sql.

Thanks

jer37

Share this post


Link to post
Share on other sites
do i need to contact them to get onto the production server?  I put it into production mode and i can print labels just fine.  Does that mean my labels will work or is there anything else that I need to do?

 

Thanks,

 

JT

 

Any answer on this?

Share this post


Link to post
Share on other sites

Just got off the phone with fedex.... I am receiving

 

ERROR: FedEx Return Error 0700 : Unknown error message when error code = 0700

 

The tech informed me

1) that there are only 5 techs that work on weekends, so dont expect much

2) the 'test' environment is not as important as the production environment, it often has problems, and despite fedex's desire for new customers who are in testing phase, working towards getting into production to ultimately INCREASE fedex's bottom profit line, the testing environment is not a priority.

3) the 5 canadians who man the support line are powerless to do anything but keep a record of consistent errors reported by developers/future-customers who are testing (the guy I talked with got the same errors I did -- 0700-- when using our account number, and using the direct interface he has there).

4) At the 5 canadian support-technnician's discretion, they might report to the "main" techs on Monday what the nature of the problem is, if they get enough calls to support their own finding of the problem.

5) What means do they have of keeping track of test-phase problems???? 5 canadians. Real nice.

 

Again, if you are testing...trying to get your fedex module working, you are not all that important.... if you were in production, you would be....

 

What can five canadians do for you??? nothing. not even change a lightbulb.

 

:lol: :blink: :D :rolleyes:

Share this post


Link to post
Share on other sites

For a recently printed label (printed this morning). when clicking on the track button from admin or the customer account order information page I get this error:

 

ERROR: FedEx Return Error 9040 : No information for the following shipments has been received by our system yet. Please try again or contact Customer Service at at 1.800.Go.FedEx® 800.463.3339.

 

Which is fine as I haven't shipped the package yet.

 

But when clicking on the track package link from the Order Update email, the information on the FedEx website shows the package as having been delivered on June 2, 2004, in Pittsburgh.

 

????

 

I guess the number has been reused, but why the inconsistency?


Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Share this post


Link to post
Share on other sites

Yes, FedEx has been recycling numbers! I guess they ran out of numbers..but this is very bad for customer service.


- The Jackal

Share this post


Link to post
Share on other sites

Multi Vendor FedEx Automated Labels!!!

 

The shop I'm running sells two different kinds of products that are shipped separately (ie one usually goes 2-day air while the other would go ground). So, when printing labels, I'd like to not only be able to select a different weight for each package but also a different shipping method.

 

I don't know where to start with this. Any ideas?


Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Share this post


Link to post
Share on other sites
Yes, FedEx has been recycling numbers! I guess they ran out of numbers..but this is very bad for customer service.

 

Great....


Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Share this post


Link to post
Share on other sites

I know this is more of a Fedex1.php problem, but you guys here are so good at this stuff and this is related to automated labels.

 

I am now receiving this error as of Thur/Friday last week: "No response to CURL from Fedex server, check CURL availability, or maybe timeout was set too low, or maybe the Fedex site is down"

 

I have changed absolutely nothing on my website in months. My hosting company claims to have changed nothing on my server in weeks with no updates, no modifications, nothing.

 

So why all of a sudden am I getting this error?

 

I tried deleting the meter ID and getting a new one by setting Meter ID to "NONE" but it never retrieves a new number from Fedex. For some reason the module is not communicating properly with Fedex.

 

In debug mode all I get is this: Data sent to Fedex for Meter: 0,"211"10,"258793846"4003,"cmorgan"4007,"Vintage Game Store.com"4008,"asf"4009,"sdf"4011,"asf"4012,"CA"4013,"93313"4014,"US"4015,"3333333333"99,""

Data returned from Fedex for Meter:

 

Nothing else! What happened??? Please help!!

Share this post


Link to post
Share on other sites

In addition to my post of erros above, also when I try to use the Automated Labels Module I get this error message:

 

"This transaction could not be completed. Please note the error message below.

 

ERROR: cURL ERROR: 1: libcurl was built with SSL disabled, https: not supported!

unable to process ship_ground"

 

Any help will be greatly appreciated.

 

Thanks!

Share this post


Link to post
Share on other sites

Hello,

 

When I go to admin/ship_fedex.php and click Submit, I get the following error:

 

This transaction could not be completed. Please note the error message below.

 

ERROR: cURL ERROR: 60: SSL certificate problem, verify that the CA cert is OK

unable to process ship_ground

I don't have an SSL certificate in my store. Does anybody have any ideas what may cause this error to appear?

 

I'll appreciate your help.

Irina.

Edited by Irin

Share this post


Link to post
Share on other sites

Please disregard my previous post, the problem has been solved already. Now, I get another error:

 

1062 - Duplicate entry '' for key 2

 

insert into shipping_manifest (delivery_id, orders_id, delivery_name, delivery_company, delivery_address_1, delivery_address_2, delivery_city, delivery_state, delivery_postcode, delivery_phone, package_weight, package_value, oversized, pickup_date, shipping_type, residential, cod, tracking_num) values ('', '98', 'Name', '', 'Address', '', 'City', 'State', 'Zip Code', 'Phone Number', '', '147', '0', '20050930', '90', 'Y', '', '')

 

[TEP STOP]

How can I fix this error?

 

Any advice highly appreciated. Thanks.

Irina.

Share this post


Link to post
Share on other sites

Ok, I finally got it working. Thanks for all these guys who came up with the solution to add curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); to function _sendCurl() in fedexdc.php. I should of being reading through this forum more thoroughly.

 

Thanks for all your hard work.

Irina.

Share this post


Link to post
Share on other sites

Has anybody noticed that "Cancel Shipment" doesn't cancel shipping? Does anybody got it working?

 

Thanks

Irina.

Share this post


Link to post
Share on other sites

Hi Irin, which version of the contribution are you using? I thought these changes are already built in since v1.07?


- The Jackal

Share this post


Link to post
Share on other sites
Hi Irin, which version of the contribution are you using? I thought these changes are already built in since v1.07?

I use v1.10. I don't have a test server though, I created a shipment directly through the production server to make sure everything works properly. When I did "Cancel Shipment", I got no errors, everything went smoothly. However, it didn't cancel a shipment. So, I called a Fedex Billing Department today to cancel it manually. What a solution to this problem?

 

Thanks a lot,

Irina.

Share this post


Link to post
Share on other sites
I use v1.10. I don't have a test server though, I created a shipment directly through the production server to make sure everything works properly. When I did "Cancel Shipment", I got no errors, everything went smoothly. However, it didn't cancel a shipment. So, I called a Fedex Billing Department today to cancel it manually. What a solution to this problem?

 

Thanks a lot,

Irina.

Sorry, I forgot to mention that I do have x6i fix described earlier in this forum

In /admin/ship_fedex.php

 

Around line 392 change:

$transaction_code = 023;

to

$transaction_code = "023";

 

Around line 420 change:

$fed = new FedExDC($shipVars[0][10],$shipVars[1][498]);

to

$fed = new FedExDC($fedex_vars[10],$fedex_vars[498]);

However, it doesn't work in my case. It's my luck! :blush:

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  

×