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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chichio9000’s picture

I have same problem.

TR’s picture

Status: Active » Postponed (maintainer needs more info)

@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.

jlporter’s picture

Missing 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.

TR’s picture

Status: Postponed (maintainer needs more info) » Active

@jlporter: Where do you get that message, what were you doing?

hkprazt’s picture

i 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...

longwave’s picture

Title: ubercart + views » "Missing handler" error in default product view
Status: Active » Needs review

Please 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.

longwave’s picture

Let's try attaching that patch again.

jlporter’s picture

:( 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.

longwave’s picture

@jlporter: Can you make a working view with the image field, export it and attach it to this issue?

handokozhang’s picture

FileSize
11.14 KB

I 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.

TR’s picture

Did you try the patch in #7?

handokozhang’s picture

@TR: How to apply the patch? I'm a newbie, don't know how to do it.

TR’s picture

handokozhang’s picture

Thanks 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.

TR’s picture

Status: Needs review » Needs work

Back 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:

Debug:

'Missing handler: field_data_uc_product_image uc_product_image field'

in views_get_handler() (line 841 of /xxx/sites/all/modules/views/views.module).

Also on the products View page, these PHP notices appear both before and after the patch was applied:

    * Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 713 of /xxx/sites/all/modules/views/handlers/views_handler_field.inc).
    * Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 713 of /xxx/sites/all/modules/views/handlers/views_handler_field.inc).
    * Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 713 of /xxx/sites/all/modules/views/handlers/views_handler_field.inc).
    * Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 713 of /xxx/sites/all/modules/views/handlers/views_handler_field.inc).
    * Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 713 of /xxx/sites/all/modules/views/handlers/views_handler_field.inc).
    * Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 713 of /xxx/sites/all/modules/views/handlers/views_handler_field.inc).
js’s picture

I have the same errors as #15 exactly.

zezile’s picture

I 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

czarphanguye’s picture

@#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.

zezile’s picture

@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

aimless’s picture

I am getting this error when I open a catalog page. Using ubercart-7.x-3.0-beta2 and views-7.x-3.0-alpha1

Strict warning: Declaration of uc_product_handler_field_buyitnow::element_type() should be compatible with that of views_handler_field::element_type() in _registry_check_code() (line 2789 of /var/www/lshop/includes/bootstrap.inc).
Strict warning: Declaration of views_plugin_argument_validate_taxonomy_term::init() should be compatible with that of views_plugin_argument_validate::init() in require_once() (line 11 of /var/www/lshop/sites/all/modules/contrib/views/modules/taxonomy/views_plugin_argument_validate_taxonomy_term.inc).
Strict warning: Declaration of views_plugin_argument_validate_taxonomy_term::options_submit() should be compatible with that of views_plugin_argument_validate::options_submit() in require_once() (line 11 of /var/www/lshop/sites/all/modules/contrib/views/modules/taxonomy/views_plugin_argument_validate_taxonomy_term.inc).
TR’s picture

@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.

handokozhang’s picture

Thanks #5 @hkprazt. It solves my problem.

hkprazt’s picture

update 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.

longwave’s picture

Status: Needs work » Closed (cannot reproduce)

Unable 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.

aspiration’s picture

Priority: Normal » Critical
Status: Closed (cannot reproduce) » Active

Add filter criteria -> Product: List price -> Configure filter criterion: Broken/missing handler

Use last view and ubercart modules.

TR’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

@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 ...

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing, 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.