-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code is not working #1
Comments
What I understood from the code is that an object called
and same error for line 357 |
@mamdouhweb Hello. Faced with the same problem today. What I found out:
As I understand example message is a little bit old. @objectivehtml please, explain how to use your library properly :) |
yeah, I already did that, if take a look at mt 2nd comment. |
Here is my experiment. This code at least send request to USP and get response. The problem is that response contain error message from UPS service:
Response contains error "No packages in shipment". |
yeah, same here also. |
I found out that problem is actually not with packages, but with ShipTo, ShipFrom elements. If you set this value as array(not just zipcode string) then these values will be incorrectly converted to xml. What I mean. According to UPS documentation acceptable format of these fields is:
But if you check what xml is actually generated you will see that field is missing. To check what is cause of problem in your case I advice you to check string:
in file Ups_Live_Rates.php in function get_rate(). See what curl return to you. In my case it contains
|
I will check it out. but I think that it's time to @objectivehtml join us. Right!?! |
Code is not working for Codeigniter UPS Api |
the code simply is not working, I tried with codeigniter, regular php and all the same. it's always returning null.
same example you posted I have been using. and only null in return.
if I changed the Ups class to extend Ups_Live_Rates I would get invalid argument supplied for foreach.
if you do :
results would be:
you would get null and false for method exists.
any help, been struggling with this since morning?!
The text was updated successfully, but these errors were encountered: