Fatal error: Cannot access empty property in /home6/xxxxx/public_html/sites/all/modules/ubercart/uc_product/uc_product.module on line 1789

I cannot seem to figure out where this is coming from. I tested this last night and was able to add items go to checkout etc. This morning i tested and I am getting this error again. I cannot figure out where this is coming from..

Any ideas?

Comments

dsellers’s picture

Status: Active » Needs work

Ok, so i figured this out. This seemed to be caused by opting to not have an image in the product content type. When i changed the drop down back to "image" this error goes away.

tr’s picture

Status: Needs work » Active

Is this a regular product you're trying to add to your cart or is it a product class that you've defined?

dsellers’s picture

this is a regular product

tr’s picture

Priority: Critical » Normal

OK. We should definitely allow you to turn the image off. I guess no one has tested that until now!

drewmacphee’s picture

I can confirm, had the same issue. I had a content type that was a product but had removed the image field as I'm selling music licenses that have no need for product images. I had to recreate the image field and select it instead of none and it fixed the issue.

Good find on the work around. Saved me some serious time but should be able to remove that field if it's not needed.

Thanks

longwave’s picture

longwave’s picture

Status: Active » Fixed

Fix committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.