order complete - Invalid argument supplied for foreach
droid19 - June 18, 2009 - 11:34
| Project: | Ubercart Marketplace |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I seem to get the following warning when I complete an order. I'm using CC checkout with the Test gateway. I get this warning on the order complete page (final page).
*warning: Invalid argument supplied for foreach() in /mnt/local/home/g_dev/gdev.supersaid.net/drupal/sites/all/modules/ubercart_marketplace/mp_quote/mp_quote.module on line 297.
Any help will be greatly appreciated.

#1
Did you find a resolution for this issue?
We're getting exactlyl the same error message on our site.
Thx, Jayen.
#2
same error here, after 2 hours i found the solution
1. enable shipping, shipping quotes, flatrate modules
2. go to http://www.yourdomain.com/admin/store/settings/quotes/methods/flatrate
3. add new flat rate shipping methhod there
4. go to http://www.yourdomain.com/admin/store/settings/quotes/methods
5. disable shipping method for the flat rate you just created
6. go to http://www.yourdomain.com/admin/store/settings/quotes/methods/mpquote
7. put the flat rate ID you just created
8. testing, create new order, test your cart
i hope that will help others who have similar problem
Rizqi
#3
Thanks. Those directions look correct. Original guidance here: http://drupal.org/node/331415#comment-1571204. Once I get around to a production release, the docs will be clearer with this info.
#4
Thanks for the quick fix!
One question we had though: will this work for multiple flat rates in marketplace?
We have 3 flat rates: US, Canada, International that sellers can quote or am I missing some step here?
Thx.
#5
I followed these directions and still get the error.
I created a new shipping quote method
and then do not enable it
I enabled mp_quote
and put the number 1 ( the method I created)
I love the module, but this error is driving me batty ;(
#6
I'm still getting the error as well with mp_quote. I've followed all the directions :)
In addition, the order emails are being sent to the "customer" correctly but the vendor isn't receiving an order confirmation nor is it showing up in their account to fulfill the order, view reports,etc. Probably another issue in itself.
Looking forward to a more robust 6x version soon.