Closed (fixed)
Project:
MediaFront
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Jul 2011 at 00:49 UTC
Updated:
7 Nov 2012 at 19:42 UTC
I get this error when:
1) I try to preview without and uploaded image with an uploaded video, but in reverse it fine.
2) I try to save it with just the image or video and in addition I get the White Screen w/this url http://drupal7.com/node/59/edit
3) I try to save it with no fields populated and in addition w/the White Screen.
[Wed Jul 13 17:29:59 2011] [error] [client 192.168.0.101] PHP Fatal error: Call to undefined function mediafront_field_is_empty() in /media/webserverdocs/7/development/drupal-7.4/modules/field/field.module on line 489, referer: http://drupal7.com/node/59/edit?render=overlay&render=overlay
Using Firefox....
Comments
Comment #1
travist commentedThis function does not exist in the mediafront module. Did you have some custom code using this function? Otherwise, this is probably not something I can fix.
Comment #2
Vc Developer commentedI made no custom functions, it does this when I don't have the required flag set and my Node Type fields is like this:
name:video_upload field:[File] widget:[File]
......video_image....[Image]....[Image]
......osplayer...........[Media Player]....[Media Player]
Why does it call this none existed function? I just tested it and came up with the same results as above. Is this function code holding a function that needs to be use to validate the node's fields for the Media Front Player?
file.module:
This isn't making any sense that I can't find this function in any of the mod's, but it says its there and its breaking my site.
Steps to reproduce this is:
1) Create the fields above and leave the default settings
2) Create the content and just name the title.
3) Preview it (nothing to preview)
4) Save it. (I can save it before a preview and everything is fine)
It's really not a biggy if I make the fields required, but if someone wanted to save it for later after doing the above, they would get this critical bug. Do I send this to the File.Module Issue Cue?
Comment #3
Vc Developer commentedActually it does this every time when I try to save it after a preview even with the fields populated. I will forward this to the file.module also.
Comment #4
webchickI think the problem is that this function doesn't exist. It's part of the interface for defining a field.
See http://api.drupal.org/api/drupal/modules--file--file.field.inc/function/... for an example implementation.
Comment #5
travist commentedThanks Angie,
I will get a release out that adds this function.
Comment #6
travist commentedJust committed a fix for this. Will be in the next version.
Thanks,
Travis.
Comment #8
NenadP commentedSorry to reopen this, just to pass a useful info (to someone with same scenario).
I had same issue after upgrading from 1.5 to 2.0 .
Problem was, i have not deleted old hacky field in content type, that Travis removed in new version of module.
When i removed that field, everything was fine again.