Using latest dev version ( timestamped: Mar 9 18:04 )
When creating a view filter on date ( /admin/build/views/edit/XXXX_view?destination=XXXX_view#views-tab-page_1 ) I get the following warning.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /.../drupal-6.16/sites/all/modules/date/includes/date_api_filter_handler.inc on line 43.
* warning: Invalid argument supplied for foreach() in /.../drupal-6.16/includes/form.inc on line 1207.
Comments
Comment #1
gunzip commentedsubscribe. same here
Comment #2
webtram commentedI have this same problem:
warning: Invalid argument supplied for foreach() in includes/form.inc on line 1207.
Comment #3
kafka93 commentedSame here; looks like an issue with some values of $this->options not being set. I worked around it by wrapping the complaining lines in ifs - e.g. if ($this->options['date_fields']) - but I'm not sure whether that's a reasonable fix.
Comment #4
alippai commentedsame here :/
Comment #5
robertoguzman commentedi have the same issue with the version release on 2010-Apr-08
Comment #6
webdeli commentedsame here.
Comment #7
webdeli commentedComment #8
kenorb commentedRelated issue: #738530: view warning: array_merge() ... Argument #2 is not an array in ... date_api_filter_handler.inc on line 43
Backtrace available here: http://drupal.org/node/762238#comment-2929826
Comment #9
geochatz commentedI have the same issue with 6.x-2.x-dev (02 May 2010) version.
Comment #10
netamorfose commentedAs documented in the changelof of array_merge in the official php docs ( http://php.net/manual/en/function.array-merge.php ) this functin only accept array as arguments since php 5.
As suggested the typecasting is the solution to merge other types.
My solution is to change line 43 of date_api_filter_handler.inc from
to
could be considered a fix for this bug?
Marco
Comment #11
JGonzalez commentedThis fixed this issue for me - I was attempting to use date 6-2.x with views3, and the other patches did not fix this until this line was changed as well.
Comment #12
karens commentedThis was fixed differently already in the dev version.