Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I get this error message and I am unable to get a "add to cart" button or a view with this feature...
thanks for your help
Comment | File | Size | Author |
---|---|---|---|
#6 | issue_1265152.png | 70.25 KB | FranciscoLuz |
#5 | issue #1265152.png | 70.25 KB | FranciscoLuz |
Comments
Comment #1
HazaThanks for the report.
Could you please add more informations ?
What did you do before ? On which page (url) is this error ? What do you try to do exactly ?
Comment #2
pdeclarens CreditAttribution: pdeclarens commentedThanks for your help
In the mean time I found how to get the add to cart button
I installed the commerce module
It is running (on my local demo site) but I get this message each time i make a change on the view_product
I get first the message : The view Products has been saved.
and below the following error message:
Notice: Undefined index: commerce_product in field_views_field_default_views_data() (line 222 of C:\wamp\www\drupal-7.x-dev\sites\all\modules\views\modules\field.views.inc).
the url where it appears is :http://localhost/drupal-7.x-dev/
thanks again
Comment #3
HazaComment #4
rszrama CreditAttribution: rszrama commentedNot sure. There's no reason on a clean install for you to be missing commerce_product. Did you have any problems during installation / are you using MySQL?
Comment #5
FranciscoLuz CreditAttribution: FranciscoLuz commentedHi Ryan,
I did, I mean, got the same error at the installation process. Take a look at the image attached please.
I have a clue though of what is causing it. This has something to do with locale, note that the error in the image is from a portuguese installation but that does not happen with drupal english.
But I did not get any errors after the installation was completed and could not reproduce the same issue pdeclarens reported, I mean, apart from the installation error message, everything seems to be working as they are supposed to.
Comment #6
FranciscoLuz CreditAttribution: FranciscoLuz commentedthe image from #5 is not opening, so I am sending it again.
Comment #7
FranciscoLuz CreditAttribution: FranciscoLuz commentedI think I found the culprit, apparently the problem is on Commerce Kickstart, check out this thread here http://drupal.org/node/1267386#comment-4937726, I rolled a patch in there.
Just a side note for #5. I was actually getting the error every time the caches were cleared.
Comment #8
FranciscoLuz CreditAttribution: FranciscoLuz commentedComment #9
Chi CreditAttribution: Chi commentedI have the same problem with Kickstart installation profile. But i think it is actually being caused by Drupal Commerce and not Kickstart.
I am getting this messages every time after flush cache.
Comment #10
FranciscoLuz CreditAttribution: FranciscoLuz commented@Chi
So even after applying this patch here http://drupal.org/node/1267386#comment-4940310 and making a clean install of Kickstart, you are still experiencing the error message after you clear the cache, is that right?
I would like to stress on the fact that applying the patch and not re-installing Commerce Kickstart has absolutely no effect whatsoever. In order to get rid of the message you must apply the patch and make a fresh install of Commerce Kickstart.
Comment #11
Chi CreditAttribution: Chi commentedI cannot reinstall Kickstart now. There is much work be done .
Can you explain, how I can get rid of the message without making a clean install of Kickstart?
Comment #12
FranciscoLuz CreditAttribution: FranciscoLuz commented@Chi #11
Yes, just go to admin/structure/types/manage/article/fields and delete the field_image field. Warning, you are going to loose your image data.
Would you be able to test out this patch http://drupal.org/node/1267386#comment-4940310 by creating a new folder in your local webserver, making a fresh install of Kickstart in it and sending us your feedback at http://drupal.org/node/1267386 please.
Cheers,
Comment #13
FranciscoLuz CreditAttribution: FranciscoLuz commentedComment duplication
Comment #14
Chi CreditAttribution: Chi commented@FranciscoLuz
I make a fresh install of Kickstart but I cannot reproduce the bug.
Comment #15
Chi CreditAttribution: Chi commentedSteps to reproduce this bug without Kikstart.
1. Make a fresh Drupal installation (Drupal 7.8)
2. Install commerce modules (Commerce, Cart, Product, Order, etc.).
3. Open admin/commerce/products/types/product/fields and add existing field (field_image)
Label for this field must differ from "Image" (e.g. Icons, Pictures, etc.).
You will get this error messages any time a change will be made to anything views related.
Comment #16
Chi CreditAttribution: Chi commentedI think it is possible to reproduce this problem on any commerce site.
You need just change label for field_image.
Comment #17
shane.outwestart CreditAttribution: shane.outwestart commentedI'm also having this issue.
I followed similar steps as described previously, and created a image field with a different label.
Now I get the Notice displayed on the front page and for each user any time a change is made to anything views related.
Vanilla Drupal 7.8 fresh install with commerce modules and prerequisites added later.
Comment #18
FranciscoLuz CreditAttribution: FranciscoLuz commentedHi,
I haven't found the time yet to try reproducing the steps from #15. I will work trying to find the cause of that this weekend and see if I can come up with a solution.
@shane.outwestart and @Chi
Just double checking, you guys are getting that on a non-english installation, right?
Comment #19
Chi CreditAttribution: Chi commentedYes. I am getting that on Russian installation. But you can reproduce steps from #15 on English installation.
Comment #20
rszrama CreditAttribution: rszrama commentedTracked this one down. It was a general Views problem in that the code in field.views.inc that generates aliases for fields attached to multiple entities wasn't checking to ensure that a revision table existed for each entity before trying to create an alias for the revisioned data. Fortunately, this has been resolved in the latest Views dev, though I don't know when / where (so I can't point you to a specific patch). The notice doesn't signify an error, though, so you can just ignore it when you see it until you update to the next release of Views.
Comment #21
FranciscoLuz CreditAttribution: FranciscoLuz commentedAwsome! Thank you Ryan, you are a champ.
Comment #22
shane.outwestart CreditAttribution: shane.outwestart commentedGreat!
Our site isn't live yet, so more than happy to wait.
Comment #23
rucx CreditAttribution: rucx commentedI had an issue with views not appearing for anonymous users when using relationship: Content: Referenced Product (to show the product's image field) which was fixed today with the new dev releases of Views and Commerce. But now I get this error message:
Notice: Undefined index: commerce_product in field_views_field_default_views_data() (line 222 of ...
Comment #24
rszrama CreditAttribution: rszrama commentedAs I mentioned above, this is an issue within Views itself pertaining to the absence of a revision table for products. However, if you are running Views' latest dev release, it should not be an issue. You'll want to check the contents of that function, but in the latest Views last I looked it was ensuring the revision index existed before attempting to operate on it.
Comment #25
darksnow CreditAttribution: darksnow commentedThis issue popped up for me too. I'm getting that error after clearing the cache, but if I refresh the page, the error goes away until I clear the cache again.
I guess it's not that serious but it's reassuring to see that it's been identified and a future update will fix it.
Cheers.
Comment #26
tvilms CreditAttribution: tvilms commentedSubscribing
Comment #27
anandkp CreditAttribution: anandkp commentedSubscribing as well.
Thanks to those who are working on the fix for this!