Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Date API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2011 at 12:16 UTC
Updated:
29 Nov 2011 at 13:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
dibya commentedI m also facing similar problems showing error message as follows.. Warning: array_push() [function.array-push]: First argument should be an array in date_formatter_format() (line 452 of /home/ddutta/nic.superhit.in/iay/sites/all/modules/date/date.module).
I feel I hv wrongly configured in the strcture -> view -> calender
Comment #2
arlinsandbulte commentedDate 7.x-1.x is unsupported.
This issue should be verified in the latest version of Date (7.x-2.x-dev) and re-opened if still valid.
Thanks
Comment #3
IAmThatStrange commentedWarning still valid using Date 7.x-2.x-dev. Seen in Content -> Signup Administration
Warning: array_push() expects parameter 1 to be array, null given in date_formatter_format() (line 517 of /webapps/drupal-7.4/sites/all/modules/date/date.module).
I'm a newb so if this is a configuration issue on my part please let me know - signup is throwing all kinds of warnings.
Comment #4
jwilson3Simple change to initialize the
$granularityfunction argument as an array() instead of NULL, so that array_push doesn't cause a warning.This is applicable by hand if necessary on older branches and should work for both 1.x and 2.x branches.
Comment #5
James Andres commentedSubscribe
Comment #6
karens commentedThis only appears if you use some module that sends a value to that function without the granularity (apparently Signup does), but you're right that the default value should be an array().