NB: I've looked through the queue and can't find a report of this as a UI bug; only particular instances caused by missing or unregistered plugins, etc.

When a field handler goes missing (in my case because I removed a CCK field) the Defaults display outputs a message like "Error: handler for node_data_field_profile_full_name > field_profile_full_name_value doesn't exist!" in place of a link to configure the field.

To resolve the error you can use another display to access the configure field screen for the missing field and delete it. Alternatively, you can add a new field and this will remove the error message and replace it with a link like "Broken/missing handler Full name" to the usual field configuration screen. This is a minor but annoying UI flaw.

I would expect that the error message would be, or be accompanied by, a link to the configure field screen allowing you to remove the field with the missing handler.

To reproduce:

1. Add a content type with a text field "woo".
2. Create a view and add the field "woo" to the view and save.
4. Edit the content type and delete the field "woo".
5. Open the view and note the error message and that there is no apparent way to resolve the error.

Comments

thsutton’s picture

StatusFileSize
new887 bytes

Maybe something like the attached patch (modulo duplicating the message string because I couldn't figure out how to call views_handler_field_broken::ui_name() properly)?

merlinofchaos’s picture

Status: Active » Needs review

Setting proper state so this doesn't get quite so lost.

merlinofchaos’s picture

Note that the other way to delete fields is from the rearrange menu, which was my initial intent.

merlinofchaos’s picture

Version: 6.x-2.8 » 7.x-3.x-dev
Status: Needs review » Patch (to be ported)
StatusFileSize
new1.07 KB

Ok, I changed this a little bit to something I felt was a little friendlier in the UI. Patch is attached -- committed to 6.x 2.x and 3.x but doesn't apply to 7.x. Should be easy port.

dawehner’s picture

Status: Patch (to be ported) » Fixed

And commited.

Status: Fixed » Closed (fixed)

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

rajeevtripathi’s picture

Title: Cannot resolve missing field handler errors from Defaults display » handler error
Version: 7.x-3.x-dev » 6.x-2.6
Component: User interface » Miscellaneous
Priority: Minor » Critical
Status: Closed (fixed) » Needs work

i am getting this eroor when adding content type image field in views.pls give me solution?
Error: handler for node_data_field_story_image > field_story_image_fid doesn't exist!

thanks

merlinofchaos’s picture

Title: handler error » Cannot resolve missing field handler errors from Defaults display
Version: 6.x-2.6 » 7.x-3.x-dev
Component: Miscellaneous » User interface
Priority: Critical » Minor
Status: Needs work » Closed (fixed)

Please don't take over issues. It is rude.