Hi...

I have just run into a critical issue. I updated my site from Drupal 7 to Drupal 7.2 and views 7.x-3.0-alpha1 to beta 3, (and reverted back to dev3 but that's irrelevant)

I am using the audiofield module and I have a block view with the audio field.

After upgrading Drupal I got this error:

Debug: 
'Missing handler: field_data_field_track_preview entity_id field'
 in views_get_handler() (line 841 of C:\wamp\www\test\sites\default\modules\views\views.module).

Error message
Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 713 of sites\default\modules\views\handlers\views_handler_field.inc)

My audio field in my view is now missing, in place it says "Broken/missing handler". I tried to re-add the field but it is not in the field list.

After updating to Views beta3 the error is gone, but the field is still missing.
I'm stuck and don't know what to do next...

Thank You.

CommentFileSizeAuthor
#4 missing.jpg112.81 KBRick Bergmann
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Did you cleared the views cache on admin/structure/views/settings under the advanced tab?

Rick Bergmann’s picture

I have now cleared the views cache, and the handler is still broken or missing.

Rick Bergmann’s picture

I have just noticed another message in the actual content type which has the missing handler , has got to do with field module. It comes up twice because I have that particular audio field twice.

Notice: Undefined index: audio in field_ui_field_overview_form() (line 354 of C:\wamp\www\stereofx.net\modules\field_ui\field_ui.admin.inc).
Notice: Undefined index: audio in field_ui_field_overview_form() (line 354 of C:\wamp\www\stereofx.net\modules\field_ui\field_ui.admin.inc).

Update:
There is a problem with those fields. If I add a new one, then the new one is fine.

I'm a bit worried to delete the broken ones and re-add them with the same field name because there is a lot of data associated with those fields and I don't want to lose it and re-add it, but I think that's the only/best solution?

Can you confirm that's my best option?
Thanks.

Rick Bergmann’s picture

FileSize
112.81 KB

Attaching a screen shot to show what exactly is missing.

dawehner’s picture

Project: Views (for Drupal 7) » AudioField
Version: 7.x-3.0-beta3 » 7.x-1.x-dev

Let's move to audio module because this missing widget type is definitive not something caused by views.

Rick Bergmann’s picture

Title: Missing Handler after upgarde » Missing Handler after upgrade
Category: support » bug
Issue tags: +missing handler
Pete B’s picture

I ran into the same issue and found that at some stage in the past, audiofield defined its own field type 'audio' using a hook_field_info()

This was later changed to use the 'file' field type.

So for me, on upgrading from an old dev version to beta4, I got the error as above (now on line 375 in drupal 7.12)

The fix was to go into the database and run:

update field_config set type='file' where module='audiofield';

Then clear the site cache and views cache.

Thanks,
Pete

tamerzg’s picture

Status: Active » Closed (works as designed)

Yes the initial dev version of audiofield had its own audio field type which was then converted back to using file type as people had problems with upgrading.

Solution posted in #7 should fix this issue for users upgrading from older dev to beta1.

micheas’s picture

Assigned: Unassigned » micheas
Priority: Major » Minor
Status: Closed (works as designed) » Needs work

It seems to me that the proper solution is to put in an upgrade of 7001 that runs the upgrade script.

I have a couple sites that need to go through dev->test->live and have the database upgrade happen,

It seems like it would be fine for people that have type=file to have the update script and ease the upgrades.

(I have only read about how to do this so I'll have fun learning how to create the upgrade statement, and it seems pretty simple)

Daniel.Moberly’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Can't imagine this issue still applies to anyone.