# notice: Undefined variable: instance in .../XXXX/sites/XXXX/modules/contrib/date/date/date.module on line 399.
# warning: Missing argument 2 for theme_date_all_day() in .../XXXX/sites/XXXX/modules/contrib/date/date/date.theme on line 248.
# warning: Missing argument 3 for theme_date_all_day() in .../XXXX/sites/XXXX/modules/contrib/date/date/date.theme on line 248.
# warning: Missing argument 4 for theme_date_all_day() in .../XXXX/sites/XXXX/modules/contrib/date/date/date.theme on line 248.
# warning: Missing argument 5 for theme_date_all_day() in .../XXXX/sites/XXXX/modules/contrib/date/date/date.theme on line 248.
# warning: Missing argument 6 for theme_date_all_day() in .../XXXX/sites/XXXX/modules/contrib/date/date/date.theme on line 248.

Up-to-date (as of today) checkout of module date tag DRUPAL-6--2

Comments

toddgee’s picture

I get copies of this over and over -- adding 1000s of lines to my watchdog tables.

choster’s picture

Title: Multiple php warnings in date » Missing argument x for theme_date_all_day()

Just did the updates to 6-2.x-dev and D6.16 and am seeing these errors as well. PHP 5.2.9 with CCK 6-3.x-dev, Date, Date API, Date Popup, Date Timezone, Date Tools, and Date Repeat API enabled.

* it doesn't appear on the create content form or when viewing previously created nodes, but does get output in Views which display nodes with Date module dates.
* when I edit a node containing a Date field, the messages appear on the edit form. When I save the node, the messages do appear when viewing the node— even if it was not appearing before the edit.

The errors go away when I disable Date Repeat API.

--
Update: looks like it is related to comment #9 in #698522: Make date compatible with both views 2 and views 3.

choster’s picture

Marked #733828: Errors when displaying multiple day date. as a duplicate, in which hawleyal reports seeing the errors on multi-day dates.

choster’s picture

Marked #734532: UPgraded on Mar 5 as a duplicate.

Aquabert’s picture

I have the same problem :(

Doesn't go away when date repeat api removed

Aquabert’s picture

I upgraded to the new dev version because the "now"function didnt work..

Now I installed the dev version and get big lists of # warning: Missing argument 6 for theme_date_all_day() all over my site..

What version should I install? :(
I don't want these warnings but I need the "now" function to work

Aquabert’s picture

Does anyone know in what version the "now" function does work?

Than I just will install an older version

rickmanelius’s picture

Subscribing... same issue on my date output.

rar’s picture

Same problem - looks like it is caused by something not being passed.

Changing the function to have undefined variables defined as = NULL makes the errors go away.

e.g.

function theme_date_all_day($field = NULL, $which = NULL, $date1 = NULL, $date2 = NULL, $format = NULL, $node = NULL, $view = NULL) {
okday’s picture

subscribe

shiva7663’s picture

subscribing

xkater’s picture

subscribing

jeliasen’s picture

subscribing

wmfinck’s picture

Me too, thank you!

RAR, your solution above worked wonderfully, at least on my simple one-date-field content type. Thanks!

webwriter’s picture

Subscribe

sportel’s picture

I had the same problem. Apparently the maintainer corrected the problem in the latest dev-version (March 9 2010). It would be helpfull though if he/she would make a note of this somewhere (like here in this issue).

Mike.

toddgee’s picture

I just updated to latest version of code and I'm seeing it fixed. Anyone else?

If fixed, we should close issue.

toddgee’s picture

Status: Active » Fixed

fixed.

Status: Fixed » Closed (fixed)

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