Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
27 Mar 2013 at 21:04 UTC
Updated:
22 Oct 2021 at 17:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedThe supplied patch adds a !empty() check and will stop the notice.
Comment #2
Taz commentedI too am getting this. The patch solved my problem, but i feel though it may just be a temporary fix.
I have a panel variant on node_page, one for each content type. The particular variant this error is coming from is NOT the variant the page ends up matching (Simple match by content type), but because the #weight is before the one that does match, it processes it anyway. The variant this error comes from has the 'multiple terms from node' context, which is passed through as an argument to a view.
I think some optimisations should be done here, as I did a backtrace to find where this was coming from - perhaps in another ticket, and maybe in Panels? If a selection rule is not using a context, then we should not process that particular context during the load. It seems like a massive overhead to be doing this when it's not required.
Comment #3
andreymaximov commentedThe simple fix. RTBC
Comment #4
japerryTested, fixed, and committed:
http://drupalcode.org/project/ctools.git/commit/c2e25670284e64e3509f8a65...