I have a weird warning that occurs when viewing a page containing a calendar, but only when backtrace is enabled in the devel module.

gmmktime() expects parameter 5 to be long, string given in E:\drupal\sites\all\modules\date\date.inc on line 155.

Backtrace indicates that the calendar.module calls gmmktime() on line 713, passing the following array:

Array
(
    [mon] => 07
    [mday] => all
    [year] => 2007
)

gmmktime() is expecting a long instead of the string 'all', which appears to have been set somewhere in the module to the constant CALENDAR_EMPTY_ARG, which was defined to 'all'.

Nothing gets logged when backtrace is not enabled, so I'm not sure if the error goes away when backtrace is turned off.

A full backtrace is attached. Hope this helps.

CommentFileSizeAuthor
gmmktime_error.html73.18 KBCheckeredFlag
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarenS’s picture

I think this happens when 'all' is being used for the day in the navigation. I'm trying to figure out exactly where this is getting inserted incorrectly.

KarenS’s picture

Status: Active » Fixed

I can't replicate the error and I don't want to change 'all' to values anywhere for fear of goofing up the navigation, so I decided a fix that wouldn't hurt anything and should still fix the problem is to add some basic testing in the date_gmmktime() function in date.inc, so that is committed. Thanks for the help!

Anonymous’s picture

Status: Fixed » Closed (fixed)