Closed (fixed)
Project:
Field Permissions
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jul 2011 at 19:23 UTC
Updated:
27 Oct 2011 at 16:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
tsvenson commentedGot a similar today, with only the row number different:
This is with Drupal 7.7 and when I tried to enable a File Field Sources option for a content type, but no field permission options are set for this image field.
I get the WSOD, but when I reload the image field edit tab, the setting is applied.
Comment #2
mh86 commentedI'm getting the same error after saving a field
Comment #3
chalee commentedI'm also getting this error when I try to save settings for a date field with repeat options
Comment #4
chalee commentedSpecifically on my machine the error comes when the module http://drupal.org/project/date_repeat_presets is enabled.
Comment #5
giorgoskgetting this error on saving image field attached to a vocabulary (on nodes it does not happen)
I am not even using the functionality of field_permissions I have just installed it just to see how it works but not using it ...
Comment #6
zhgenti commentedHi,
It happens when form has upload file control uses ajax. When ajax is used, form is cached and alter functions aren't called. Module owner performs file inclusion in the alter. Drupal hooks better to be placed in the .module file, or .inc files should be included by Drupal automatically. For example in the hook_menu or hook_theme.
Here is patch which fixes this issue. It moves few functions from .inc file into .module file.
Thanks,
Dmitry
Comment #7
13rac1 commentedFixes the problem. Applies correctly.
Comment #8
David_Rothstein commentedCan't we just do the attached instead?
It fixes the bug for me, and this kind of situation is exactly what form_load_include() was designed for.
Comment #9
robloachform_load_include() does it! http://drupalcode.org/project/field_permissions.git/commit/7edad48
Comment #10.0
(not verified) commentedChanging path in error message to be more generic.