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 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 ?
Comment | File | Size | Author |
---|---|---|---|
#5 | 840344-node-add-argument-referring-to-no-longer-used-conf-array.patch | 1.2 KB | merlinofchaos |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedI need to know how your page (specifically the arguments and any other contexts) are configured.
Comment #2
sanguis CreditAttribution: sanguis commentedhere 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"
Comment #3
sanguis CreditAttribution: sanguis commentedthe above is with 1.7
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commented#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.
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted a fix. Patch I committed is attached.