I got this warning when trying to pass an argument to a page: mypage/%type

warning: array_filter() expects parameter 1 to be array, null given in E:\www\drupal\sites\all\modules\ctools\plugins\arguments\node_add.inc on line 31.

I can fix it by suppress the warning with @, but don't know that's the correct way to do.

Any advice ?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

I need to know how your page (specifically the arguments and any other contexts) are configured.

sanguis’s picture

Status: Postponed (maintainer needs more info) » Active

here is my case I am getting the error here:
warning: array_filter() [function.array-filter]: The first argument should be an array in /home/detoxami/beta/sites/all/modules/ctools/plugins/access/term.inc on line 110.

My selection rule is:
Taxonomy: vocabulary Term(s) being viewed vocabulary is "Catalog"

sanguis’s picture

Version: 6.x-1.6 » 6.x-1.7

the above is with 1.7

merlinofchaos’s picture

#2 is http://drupal.org/node/942968

I'm not sure #2 and the original issue are the same, as the error is happening in different files, possibly with different setups.

merlinofchaos’s picture

Committed a fix. Patch I committed is attached.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.