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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 708618-friendlier-broken-handler.patch | 1.07 KB | merlinofchaos |
| #1 | missing-handler-edit-link.patch | 887 bytes | thsutton |
Comments
Comment #1
thsutton commentedMaybe 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)?Comment #2
merlinofchaos commentedSetting proper state so this doesn't get quite so lost.
Comment #3
merlinofchaos commentedNote that the other way to delete fields is from the rearrange menu, which was my initial intent.
Comment #4
merlinofchaos commentedOk, 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.
Comment #5
dawehnerAnd commited.
Comment #7
rajeevtripathi commentedi 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
Comment #8
merlinofchaos commentedPlease don't take over issues. It is rude.