See Video on nodes without video when upgrading from drupal 5 to 6

dsp1 - November 2, 2009 - 23:01
Project:Embedded Media Field
Version:6.x-1.15
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I just updated from Drupal 5 to 6.
updated from embedded media 5 to 6.x-1.15.

I am getting See Video in the teaser on nodes that do not have a video attached.
No See Video on nodes with a video.
Happens when changing field display from Default to Thumbnail.

any ideas or solutions?

Thanks.

#1

dsp1 - November 3, 2009 - 02:53
Title:See Video on nodes without video» See Video on nodes without video when upgrading from drupal 5 to 6

I figured out a fix.

the version 5.x of emfield left these fields (field_video_embed, field_video_value, field_video_provider) blank and field_video_data either NULL or a:0:{}.

To fix this run these SQL commands in phpmyadmin:
UPDATE `content_type_blog`
SET field_video_embed = NULL, field_video_value = NULL, field_video_provider = NULL, field_video_data = NULL
WHERE field_video_data IS NULL

UPDATE `content_type_blog`
SET field_video_embed = NULL, field_video_value = NULL, field_video_provider = NULL, field_video_data = NULL
WHERE field_video_data = 'a:0:{}'

you must delete your cache_content to see the changes.
DELETE FROM `cache_content`

just wondering, should this have been fixed when update is run?

 
 

Drupal is a registered trademark of Dries Buytaert.