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 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.
Comment | File | Size | Author |
---|---|---|---|
gmmktime_error.html | 73.18 KB | CheckeredFlag |
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedI 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.
Comment #2
KarenS CreditAttribution: KarenS commentedI 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!
Comment #3
(not verified) CreditAttribution: commented