Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Saving the settings for my image field results in this error:
Fatal error: Call to undefined function _field_permissions_field_settings_form_submit() in [path]/includes/form.inc on line 1389
Comment | File | Size | Author |
---|---|---|---|
#8 | field-permissions-1230284-8.patch | 777 bytes | David_Rothstein |
#6 | undefined-_field_permissions_field_settings_form_submit-1230284-6.patch | 8.53 KB | zhgenti |
Comments
Comment #1
tsvenson CreditAttribution: 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 CreditAttribution: mh86 commentedI'm getting the same error after saving a field
Comment #3
chalee CreditAttribution: chalee commentedI'm also getting this error when I try to save settings for a date field with repeat options
Comment #4
chalee CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 13rac1 commentedFixes the problem. Applies correctly.
Comment #8
David_Rothstein CreditAttribution: 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) CreditAttribution: commentedChanging path in error message to be more generic.