Closed (cannot reproduce)
Project:
Canada Post Shipping Quotes
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2012 at 22:44 UTC
Updated:
8 Mar 2014 at 17:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tr commentedComment #2
sunward commentednew upgrade did not bring in any upgraded quotes. Got various errors like:
SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in .../modules/uc_canadapost/uc_canadapost.module on line 381.
Comment #3
tr commented@sunward: That's a different issue entirely, and is being addressed in #441708: Errors/Warnings when trying to checkout after Canada Post quote received?.
Comment #4
neildmd commentedI am having the same issue as well. Works when if I roll back to 1.0 also. Definitely a malformed request or an improperly handled response.
Comment #5
iswilson commentedI was having this issue with my 6.x sites as well; quotes were being returned intermittently and no errors in the log.
While debugging I noticed that drupal_http_request() was recently updated in core. This patch updates _uc_canadapost_drupal_http_request() to match (it also includes the malformed response fix from http://drupal.org/node/183435), which fixes the issue on my sites.
Comment #6
tr commented@neildmd: By "the same issue", do you mean the same as the original poster, or the same as #2. If the latter, discussion of that belongs in #441708: Errors/Warnings when trying to checkout after Canada Post quote received?.
@iswilson: As I said in #3, the SimpleXML error is a different issue. Please post your patch in #441708: Errors/Warnings when trying to checkout after Canada Post quote received?.
Please confine further discussion in this thread to the matter reported by the original poster.
Comment #7
neildmd commented@TR: Same as original poster. I will try the patch in #5 when I get a chance and report back.
Comment #8
bmacc commentedI installed the patch provided by iswilson on my development site but I am still unable to get a shipping quote.
Comment #9
tr commented@neildmd, @bmacc: The patch from #5 is FOR A DIFFERENT PROBLEM that's being addressed in #441708: Errors/Warnings when trying to checkout after Canada Post quote received?.
The problem in the original post is 99.99% certain to be a configuration problem, and is 99.99% certain to have nothing to do with this module. There's lots of documentation both in the Ubercart issue queue and at ubercart.org on how to troubleshoot that generic error message that occurs for ALL shipping methods in Ubercart. I'm not too keen on repeating all that information here.
Comment #10
tr commentedComment #11
neildmd commentedI just tried updating to 6.x-1.1 again, and it's not returning any quotes for me at all. It is not a configuration issue as you are stating since I didn't change anything and rolling back to 1.0 it works fine. This is either a bug or a conflict with another module. One of these days I will strip down to basics and try it by enabling one module at a time.
Comment #12
tr commentedComment #13
dewolfe001 commentedI tried the patched code-- it gave a response that was immediately, but reported an error. I reverted to the old code and it waited for a response.
What I found was happening: my web host has port 30000 closed. When a port is closed, it appears to take forever for it to respond. I asked them to open the port and now the baseline code for uc_canadapost.module works. Check with your ISP to see if the port is open. Or, run this script (below) to check for yourself: