This path fixes notice on admin variant page.
Notice: Undefined offset: 0 in ctools_entity_field_value_ctools_access_summary() (line 232 of sites/all/modules/contrib/ctools/plugins/access/entity_field_value.inc).
This error occurs on an admin page (for example admin/structure/pages/nojs/operation/node_view/handlers/[node_view_panel_context_name]/content)
Function hook_field_formatter_view isn't exist or it return a empty result.
In our case this error occurs because of the function list_field_formatter_view returns an empty array.
If we make access rules for whole variant this function works without problems. But if we add visibility rules for pane on content we have notice about offset above.
Hope this helps.
| Comment | File | Size | Author |
|---|---|---|---|
| ctools-plugin-access-with-notice-element-markup.patch | 624 bytes | spheresh |
Comments
Comment #1
TimG1 commentedHello everyone,
I'm getting this error too on node variant pages. I noticed this happening when trying to set a visibility rule for a panels pane based off of a link field value. Basically trying to say "show this pane if link value is not null".
Thanks for reading,
-Tim
Comment #2
urbanbricks commentedThis patch takes care of the same error I've been getting when editing a variant for my node template panel, however my issue goes a level deeper in that I'm attempting to add a selection rule for: Content page: Field Name (a term reference field); tid equals "term" (my term name).
On the If I navigate to Variants » Basic Page (my template variant name) » Selection rules
Select: Content page: Field Name > Add
Add Criteria:
Node: Node being viewed
Page Layout (my vocabulary) > Basic Layout (my term)
Save
...although it appears to save these settings, it returns to a default of none selected each time I review the settings.
Comment #3
zabelc commentedThis appears to have corrected the issue for me as well.
Comment #4
peacog commentedThanks. This patch worked for me too. In my case I am setting a visibility rule on a pane, checking for 0 in an Integer field.
Comment #5
firfin commentedI had notices on selection rules using a 'link' field. No more notices after applying this patch.
Gonna re-roll the patch from #1630820: entity_field_value is completely broken to incorporate this fix.
Thanks.
Comment #6
firfin commentedMarked #1876640: errors and not working selection rule when using negative check on a 'link'field as a duplicate of this issue.
Maybe some maintainer should look at this patch and RTBC it?
Comment #7
andypostThis one is included into #1630820-33: entity_field_value is completely broken