This error isn't the same as the one that shows line 210 is it?

* warning: Invalid argument supplied for foreach() in sites/all/modules/ubercart_marketplace/mp_quote/mp_quote.module on line 325.
* Unable to send e-mail. Please contact the site administrator if the problem persists.

It looks different than was is described on the other about the field_download,

CommentFileSizeAuthor
#7 USPS product description.png4.2 KBndf

Comments

syndicateStorm’s picture

Category: bug » support

Probably similar in nature but definitely unrelated. Do you have any other information regarding this bug. I don't really see anything pop out at me if I look at the code. Maybe something on the amdin side isn't setup properly with regards to quotes?

Zombie777’s picture

Thanks for the reply, sorry I haven't checked back sooner. Not sure what to look for, I am just installing for the first time trying to setup an ubercart store with marketplace and figuring things out. I get the customer side email on checkout, but I am assuming it is the store side email that is failing. I'll add more info to the store info but nothing looks like a problem.

ferrum’s picture

Title: Is this a new bug or old, mp_quote.module on line 325? » Invalid argument supplied for foreach() in mp_quote.module on line 325

The warning: 'Invalid argument supplied for foreach() in <your drupal location>/sites/all/modules/ubercart_marketplace/mp_quote/mp_quote.module on line 325.' will raise on http://www.yourdomain.com/cart/checkout/complete after submitting an order. This results if mp_quotes is not enabled on http://www.yourdomain.com/admin/store/settings/quotes/methods (using dev version)

wanneng’s picture

I have enabled the mp_quotes, but still have the error:

' The warning: 'Invalid argument supplied for foreach() in /sites/all/modules/ubercart_marketplace/mp_quote/mp_quote.module on line 325.'

dmf7’s picture

I'm having the exact same error messages:

* warning: Invalid argument supplied for foreach() in .../modules/ubercart_marketplace/mp_quote/mp_quote.module on line 325.
and then when it redirects back to my site after customer makes paypal payment with wps I get this error message:
* Unable to send e-mail. Please contact the site administrator if the problem persists.

at this point, my website just keeps trying to load and doesn't ever load the entire page.. weird. but the payment goes through.

did this ever get figured out?

stevenjay’s picture

I am having the same error as well. It happens for me when I am purchasing a non-shippable product.
This fixes the error but I am not sure about any side effects? I am guessing it is ok, in my case anyway, since it is trying to save shipping info when there is none to save.

.../modules/ubercart_marketplace/mp_quote/mp_quote.module
line 324
remove: if ($op == 'submit') {
insert: if (isset($_SESSION['mp_quote_rate']) && ($op == 'submit')) {

ndf’s picture

StatusFileSize
new4.2 KB

The module 'U.S. Postal Service' is required by mp_quote.
That module adds a required field 'Shipping quote method' to the product node.
When I set this field to 'Flat Rate' the error disappears and notification e-mail to sellers are sended.

You can set this field manually, but it might be easier to set it with the 'node_save()' hook.
Could you test this method manually first?

miaoulafrite’s picture

+1
i'm having the problem as well

scottsawyer’s picture

Getting this error as well. Have not tried solution in #6, but I do not have any shippable items in my store, so I may try it.

Has anyone else?