Closed (fixed)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Cart/checkout
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2011 at 20:06 UTC
Updated:
18 May 2011 at 08:51 UTC
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
Comment #1
dsellers commentedOk, 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.
Comment #2
tr commentedIs this a regular product you're trying to add to your cart or is it a product class that you've defined?
Comment #3
dsellers commentedthis is a regular product
Comment #4
tr commentedOK. We should definitely allow you to turn the image off. I guess no one has tested that until now!
Comment #5
drewmacphee commentedI 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
Comment #6
longwaveClosed #1141972: Unassigned image field on products causes cart actions to crash as duplicate
Comment #7
longwaveClosed #1146382: Fatal error: Cannot access empty property in /home/content/39/7681339/html/drupal/sites/all/modules/ubercart/uc_product/uc_produ as duplicate
Comment #8
longwaveFix committed.