in Drupal Error Logs i get the error Message:

‚mktime() expects parameter 5 to be long, string given‘ in ‚/kunden/xyz-bla.de/main/modules/archive.module‘ in Zeile 80.

Column 80 in my archive Module is :

80 $requested = mktime(0, 0, 0, $month, $day, $year) + $user->timezone;

also column 223 is remarked in the error log :

223 $date = mktime(0, 0, 0, $month, $day, $year) - $user->timezone;
224 $date_end = mktime(0, 0, 0, $month, $day + 1, $year) - $user->timezone;

I haven't found any hints with the search in this site.

Any suggestions?



Francis Pilon’s picture

I had a case where the variables passed to the function weren't set. Yes, a rather vague error message...

I imagine you might get the same kind of error if you $var are empty.