uc_quotes dead on uc7e and up

Posts: 33
Joined: 10/26/2007

After spending hours and hours I have come to conclude that shipping quotes and usps work absolutely fine on Drupal 5.2 with Ubercart 7C. I did upgrades to 7E then Beta (with Drupal 5.5) and still the same problem. No quotes no errors. I checked everything and even reset the store from a fresh start.

When reverting back with the same original DB from 7C quotes and usps work fine.

Can anyone explain what went wrong or are there some extra steps needed to get things rocking on a newer version?

Thanks

NOTE: this was edited to update the correct UC version (7C).

--

===
Elvis McNeely
Blogging about Drupal: http://www.elvisblogs.org/drupal

Posts: 60
Joined: 11/27/2007

I agree. When I select the USPS shipping method, I get no shipping quotes nor any errors. Same as alpha 8. Same as this thread http://www.ubercart.org/forum/support/2430/usps_shipping_quotes

Posts: 2267
Joined: 08/07/2007
AdministratoreLiTe!

Did you get Workflow-ng? It's required for shipping quotes and taxes in alpha 8.

Posts: 60
Joined: 11/27/2007

I am using workflow-ng version 1.6. I even tried the little magic trick of disabling/enabling the shipping quote method in workflow-ng. No go.

Posts: 146
Joined: 11/10/2007
Bug Finder

I use this older coding method prior to 12-31 and it works. I think Lyle changed it because workflow_ng wasn't activating the shipping modules correctly. This was talked about in another thread.

$enabled = variable_get('uc_quote_enabled', array('usps' => true));

instead of

$enabled = variable_get('uc_quote_enabled', array());

--

Give and you will receive, you will be given much. Pressed Down, Shaken together, Running Over, it will spill into your lap.

Posts: 2267
Joined: 08/07/2007
AdministratoreLiTe!

I just had an issue where one of my flatrate methods wasn't returning quotes for no good reason. Eventually I just emptied out the cache tables and it started working again. I also re-submitted the quote methods form to make sure they really were enabled.

Posts: 33
Joined: 10/26/2007

What Lyle suggested didn't work. But this is what did work upto UC7E...

I had to revert to the original database and ubercart module (some 7B modules and some 7C - maybe a snapshot of bazaar?) directory. I then upgraded to Drupal 5.5. Then one by one I upgraded to each new version of ubercart - running update.php as well. Everything started working from the get go (7C). And continued to work upto 7E. But at UC8 the uc_quotes stop giving quotes. I did do what Lyle suggested (above) - nada.

If anyone has any other luck please let me know...

--

===
Elvis McNeely
Blogging about Drupal: http://www.elvisblogs.org/drupal

Posts: 5367
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

@mcneelycorp, you have installed/enabled Workflow-ng/Workflow-ng UI modules? That's the main difference between 7e and 8 I believe, but it wasn't in the module's .info dependencies for a while.

Posts: 33
Joined: 10/26/2007

Yeah, I did install it. And the USPS shipping stuff was in place already when going to the workflow settings page. Maybe I should remove that table completely and start again. I will report on that.

--

===
Elvis McNeely
Blogging about Drupal: http://www.elvisblogs.org/drupal

Posts: 33
Joined: 10/26/2007

I got UCa8 working after doing the following:

1) reverted back to 7E which was fully function (quotes and usps).
2) dropped the workflow related tables
3) changed the workflow status to 0 within the system table
4) added the UCa8 module directory
5) ran update.php
6) loaded the modules page
7) enabled workflow module and workflow UI module
8 ) press submit
9) press submit again (just in case other things needed to be loaded and didn't get loaded)

After all of that, shipping quotes and usps is working.

Upgrading to UC Beta did not give any quotes though... Hopefully that is helpful for someone.

--

===
Elvis McNeely
Blogging about Drupal: http://www.elvisblogs.org/drupal

Posts: 60
Joined: 11/27/2007

I just downloaded the bazaar tarball and installed it. I verified that the files recently changed have approximately the same timestamp as the the changes listed on the bazaar page. Tested the USPS shipping quote. The review cart page does not display any shipping charges. I displayed the request to the USPS server and the USPS server reply per the suggestion made above. Both look complete and correct to me. However, the shipping charge is not processed and displayed. I have no options for shipping charges.

Sigh. I am ready to go live, but I need to have either flatrate or USPS shipping working before I can do so.

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

I posted a fix in another thread: http://www.ubercart.org/comment/10289/Re-Beta1-Shipping-Bug

That should do it, assuming you have the uc_usps module settings configured correctely (valid store address, valid USPS credentials, etc.)

--

<tr>.

Posts: 2267
Joined: 08/07/2007
AdministratoreLiTe!

Fixed that problem in the Bazaar code. Sorry about the confusion.

Posts: 60
Joined: 11/27/2007

I was surprised, but the update to bazaar code 733 caused the USPS method to disappear from the available shipping quote methods. I checked in the module table, and it is enabled, but not even listed by the setting/quotes/methods module.

Posts: 2267
Joined: 08/07/2007
AdministratoreLiTe!

That didn't happen to me. Try disabling and reenabling the USPS module. It sounds like some cache bug somewhere. And if that doesn't help, we're not in Kansas any more.

Posts: 60
Joined: 11/27/2007

The 728 bazaar code wasn't working, but at least appeared and went through the steps. I have cleared the cache in my browser. Drupal cache is disabled. I have disabled and re-enabled the USPS module. I even deleted the entire USPS folder from my ubercart installation and uploaded a replacement folder. Next to delete the entire shipping folder and upload a replacement. Don't have time right now.

If I roll back, do I also need to uninstall the modules? I have spent so much time on this, I don't remember whether there has been some database upgrades or not.

Posts: 146
Joined: 11/10/2007
Bug Finder

USPS is working fine for me too..

--

Give and you will receive, you will be given much. Pressed Down, Shaken together, Running Over, it will spill into your lap.

Posts: 60
Joined: 11/27/2007

I bit the bullet and trashed the entire ubercart directory on my site. Then I uploaded bazaar revision 736. The USPS quote began collecting quotes. However, there are two problems:

1) The priority mail quote is always listed with a lower cost than the parcel post. In my experience with the post office, the reverse is normally true.

2) When I click on review order button with any of the shiping methods selected, I get a long list of errors (21 to be exact) similar to this (but with different handlers):

warning: xml_parse(): Unable to call handler _startElement() in .../sites/all/modules/ubercart/uc_store/includes/simplexml.php on line 244.

The last error in the list is:

Invalid option selected. Recalculate shipping quotes to continue.

Posts: 1314
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

seedseller, what version of PHP are you using? Generally whenever I see an issue with simplexml, it has to do with using PHP4. Can you confirm this by going into admin/logs/status?

Can't help you with the parcel post cost, though. I know there's an issue with the priority mail envelope being overwritten by priority mail parcel or something..

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 60
Joined: 11/27/2007

Using PHP version 4.3.11. I have wondered if that was a problem. Others here have assured me that it should not be a problem.

Posts: 1314
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

Yeah, pretty sure it is - see similar issues and responses here and here. While SimpleXML supposedly required PHP 4.2, I really am doubting the factuality of that statement at this point.

Find if you can update your server to PHP 5 (I recommend 5.2.5) - make sure they keep MySQL enabled! - and see if the error persists.

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 20
Joined: 08/07/2007
Uber Donor

I had the no errors or no quotes issue from USPS before I updated the Workflow-ng module from 1.3 to 1.6. Everything works great now. -Steve