Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2009 at 11:21 UTC
Updated:
24 Nov 2009 at 21:00 UTC
fresh Drupal installation, Panels 6.x 3.2 and Chaos Tools 6.x 1.2 - created panels page & set it to front page, receiving this error:
warning: array_merge() [function.array-merge]: Argument #2 is not an array in .../public_html/sites/all/modules/ctools/includes/context.inc on line 197.
Comments
Comment #1
typehost commentednote: the error appearing with advanced search block & goes away with simple search block.
Comment #2
merlinofchaos commentedCan you please paste an export of the page you created that is demonstrating this error?
Comment #3
typehost commentedAgain, I have search and faceted search enabled in the panels page, but when adding "advanced search" block - I get the error.
Comment #4
jonskulski commentedAlso receiving this error on my site, here is the export
Comment #5
jonskulski commentedI have two pages set up, the above export and a similar page that takes a Node argument. Both invoke a panel
pane (via views_content_pane) that has an optional argument via Node Context.
In panels/includes/plugins.inc on line 50
If there is no context passed in, panels will constructs a new context object. It is then passed down to
which is expecting an array of contexts, not just one context object. This eventually causes a problem when
ctools_context_optional->add_empty tries to array_merge it.
I believe the fix is to create an array consisting of a new unknown object which is actually a panels issue.
Comment #6
jonskulski commentedI opened a panels issue and posted a patch: here http://drupal.org/node/624710
Comment #7
jonskulski commentedRelated issue http://drupal.org/node/624710 was fixed. Patch accepted. Setting this to fixed.