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.
I'm getting these errors in manage display for all content types when the masonry_formatter is enabled:
Notice: Undefined index: field types in field_ui_formatter_options() (line 1505 of ~/modules/field_ui/field_ui.admin.inc).
Warning: Invalid argument supplied for foreach() in field_ui_formatter_options() (line 1505 of ~/modules/field_ui/field_ui.admin.inc).
When I disable masonry_formatter, these errors go away.
Thanks for a great module!
Comment | File | Size | Author |
---|---|---|---|
#1 | masonry_formatter_undefined_index-1856800-1.patch | 753 bytes | BWPanda |
Comments
Comment #1
BWPanda CreditAttribution: BWPanda commentedThanks for the bug report!
It took me a while, but I finally worked out that I was adding settings for the colorbox formatter when it wasn't necessarily installed. This is what was causing the errors.
The attached patch should fix this. Please test and let me know if it does so I can commit it.
Comment #2
BWPanda CreditAttribution: BWPanda commentedJust realised I didn't need to change the version...
Comment #3
BWPanda CreditAttribution: BWPanda commentedCommitted: http://drupalcode.org/project/masonry.git/commit/4914e84
Comment #5
controla CreditAttribution: controla commentedThis same patch, modified for "fancybox" solves this issue with fancybox module.
This solution should be treated in a more generic way to avoid creating special cases for each helper, shouldn't it?
Comment #6
BWPanda CreditAttribution: BWPanda commentedProbably, patches welcome!
Please open a new issue for either Fancybox integration, or a more generic solution. This specific bug report is fixed.