I have a CCK 3rd party video field, "field_video". I create a video node with a YouTube 3rd party link & custom thumbnail, then try to edit & save:
User warning: Column 'field_video_status' cannot be null query: UPDATE content_type_talk SET vid = 4733, nid = 63, field_recording_date_value = '2010-04-08 00:00:00', field_talk_title_value = 'Cómo pensar una ciudad', field_video_embed = 'http://www.youtube.com/watch?v=lXGY0X-wdjI&feature=player_embedded', field_video_value = 'lXGY0X-wdjI', field_video_provider = 'youtube', field_video_data = (...), field_video_status = NULL, field_video_version = 3, field_video_duration = 1150 WHERE vid = 4733 in _db_query() (line 141 of C:\Inetpub\wwwroot\xxx.com\includes\database.mysqli.inc).
(I trimmed the field_video_data. (...)).
The problem is this: field_video_status = NULL, which cannot be null. Must be 0 or 1. In my db table, this is always 1.
Comments
Comment #1
Anonymous (not verified) commentedemfield.cck.inc declares not null => TRUE for status?
So why is the UPDATE query field_status = null?
I don't know what this does in emfield.module:
There is no other reference of "emfield_status" anywhere else, so what is it trying to invoke? Seems like a missing function?
Comment #2
Anonymous (not verified) commentedI turned that last bit into this:
Temporary solution, but I don't understand what it's supposed to be looking for.
Comment #3
alex ua commentedAre you sure this isn't coming from media_youtube?
Comment #4
cafuego commentedI've hit the same problem with emfield_audio using the SoundCloud provider.
The generated query is:
The table definition is:
And MySQL says
ERROR 1048 (23000): Column 'field_mission_audio_version' cannot be nullComment #5
cafuego commented... and now on a (non-mandatory) video field as well. Same issue for these fields:
The fix posted in comment #2 didn't resolve my issue. I altered the table definition to allow NULLs and that's sorted it.
Comment #6
joel_guesclin commentedI just encountered the same problem, plus this which still seems to be outstanding.