Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have out of the box drupal 7 + views (7.x-3.x-dev tried with all 7x versions) + ubercart (7.x-3.x-dev - tried all 7x versions) with applied patch 1001850_views_data.patch.
When I enable the product page which is pre-configured for me I get the below messages.
==========
'Missing handler: node_data_uc_product_image uc_product_image_fid field'
in views_get_handler() (line 841 of /home1/existonl/public_html/modules/views/views.module).
==========
One of the fields in the product's view were "undefined ..." It was the image field. When I removed it the above errors disappeared.
Comment | File | Size | Author |
---|---|---|---|
#10 | error.png | 11.14 KB | handokozhang |
#7 | 1022484-uc_product-views-image.patch | 1.13 KB | longwave |
Comments
Comment #1
chichio9000 CreditAttribution: chichio9000 commentedI have same problem.
Comment #2
TR CreditAttribution: TR commented@draku007: I can not reproduce this error. I am using Ubercart 7.x-3.x-dev (dated today) and Views 7.x-3.0-alpha1. Ubercart -dev includes the patch #1001850: undefined index: description in uc_order_views_data - you do not need to apply it again (and if you try to apply it again you should get errors).
@chichio9000: "I have same problem" does not help because you are adding NO new information. I think it's highly unlikely that you've "tried all 7.x versions" of Drupal and Views like the original poster said he did. My guess is you're using -beta1 without the patch.
Comment #3
jlporter CreditAttribution: jlporter commentedMissing handler: node_data_uc_product_image uc_product_image_fid field
in views_get_handler() (line 841 of /sites/all/modules/views/views.module).
With drupal 7.0 recent -dev of UC and current release of 7.x views
Let me know if I can provide any more details.
Comment #4
TR CreditAttribution: TR commented@jlporter: Where do you get that message, what were you doing?
Comment #5
hkprazt CreditAttribution: hkprazt commentedi think i was able to fix this by editing Views for uc_products
look at the Field data, just delete the broken field and add new field : image
Maybe this info can help u...
Comment #6
longwavePlease try the attached patch and let me know if it works. If you have edited the "products" view you will need to click "revert" and possibly clear your cache to test this properly.
Comment #7
longwaveLet's try attaching that patch again.
Comment #8
jlporter CreditAttribution: jlporter commented:( tried patch, no dice...i never modified the view so i didnt have the revert button. I removed a field, saved, reverted, cleared views cache again, same error.
Comment #9
longwave@jlporter: Can you make a working view with the image field, export it and attach it to this issue?
Comment #10
handokozhang CreditAttribution: handokozhang commentedI have same problem.
The things I use:
- Drupal 7.0, Views 7.x-3.0-alpha1, Chaos tools 7.x-1.0-alpha2, CKEditor 7.x-1.0, IMCE 7.x-1.2
- My web hosting: MySQL 5.0.91, GD library PNG support 2.0.34, PHP 5.2.16, PHP memory limit 128M
- UberCart 7.x-3.0-beta1, the problem still exist after upgraded to 7.x-3.x-dev
To reproduce the error:
- Goto: http://mywebsite.com/admin/structure/views
- Enable and edit the view: "uc_products (Ubercart)"
- Visit: http://mywebsite.com/products
Message appear when I try to edit the "uc_products" view:
----------------------------------------
Status message
Debug:
'Missing handler: node_data_uc_product_image uc_product_image_fid field'
in views_get_handler() (line 841 of /home/myuserid/mywebsite.com/sites/all/modules/views/views.module).
----------------------------------------
There is also an additional error message if I try to visit the view directly "http://mywebsite.com/products":
----------------------------------------
Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 713 of /home/myuserid/mywebsite.com/sites/all/modules/views/handlers/views_handler_field.inc).
----------------------------------------
I guess the error has something related with image handling. Because the view still shows up but the image is missing. Please see the I image attached.
Comment #11
TR CreditAttribution: TR commentedDid you try the patch in #7?
Comment #12
handokozhang CreditAttribution: handokozhang commented@TR: How to apply the patch? I'm a newbie, don't know how to do it.
Comment #13
TR CreditAttribution: TR commentedhttp://drupal.org/patch/apply
Comment #14
handokozhang CreditAttribution: handokozhang commentedThanks for the help, but nothing happens.
I've visited the instruction to apply patch. I can't use patch program because the test site is not on my computer (but my webhosting). So I did manually patching as explained on: http://drupal.org/node/534548
I think I understand and did nothing wrong. But after the patching, the error still there.
Comment #15
TR CreditAttribution: TR commentedBack in #2 I said I couldn't reproduce this, but now I can. Must be related to module versions or something. Anyway, with the patch applied, I get a *different*, but similar, error:
Also on the products View page, these PHP notices appear both before and after the patch was applied:
Comment #16
js CreditAttribution: js commentedI have the same errors as #15 exactly.
Comment #17
zezile CreditAttribution: zezile commentedI had the same 'Missing handler' error when working on the 'products' view
@hkprazt: Thanks the workaround (#5) worked fine, I don't get the error anymore
Comment #18
czarphanguye CreditAttribution: czarphanguye commented@#5 "just delete the broken field and add new field : image" (or #17)
I've deleted the broken field yet I'm unable to find the "fields : Image". Which field did you add after deleting the broken one?
Found 2 that look similar to field : image
Fields: uc_product_image uc_product_image
Fields: field_image field_image
yet neither seemed to work resolve the issue. Thanks.
Comment #19
zezile CreditAttribution: zezile commented@czarphanguye: Fields: uc_product_image worked fine for me
To get rid of the error message, make sure you delete the broken link from the view default settings and any overridden display
Comment #20
aimless CreditAttribution: aimless commentedI am getting this error when I open a catalog page. Using ubercart-7.x-3.0-beta2 and views-7.x-3.0-alpha1
Comment #21
TR CreditAttribution: TR commented@aimless: That has nothing to do with the current issue. If you have a new issue, open a new thread, don't hijack an existing one.
Comment #22
handokozhang CreditAttribution: handokozhang commentedThanks #5 @hkprazt. It solves my problem.
Comment #23
hkprazt CreditAttribution: hkprazt commentedupdate to the latest ubercart 7.x-3.x-dev (2011-Apr-08) and views 7.x-3.0-beta3, works fine
except ubercart COD module.
Comment #24
longwaveUnable to reproduce this with latest -dev of all relevant modules. Please describe your fields configuration and export the default View if this is still an issue, then I can try to figure out what's gone wrong.
Comment #25
aspiration CreditAttribution: aspiration commentedAdd filter criteria -> Product: List price -> Configure filter criterion: Broken/missing handler
Use last view and ubercart modules.
Comment #26
TR CreditAttribution: TR commented@aspiration: You have the exact same error message as the original poster? You're getting a "Missing handler: node_data_uc_product_image uc_product_image_fid field" when you try to add a "List price" filter? That doesn't sound right ...
Comment #27
TR CreditAttribution: TR commentedClosing, returning status to what it was in #24.
I reported #25 as a new issue in #1221616: Configure filter criterion: Broken/missing handler and committed a patch which fixes it.