Hi!
Just set up a new site and created my first node (book entry), get the following error:

"warning: gmmktime() expects parameter 6 to be long, object given in /var/www/virtual/hem.mwitt.se/modules/archive/archive.module on line 301."

My config:

Drupal 6.0
MySQL 5.0.27
PHP 5.1.6

Best regards
/Micke

Comments

Susurrus’s picture

Component: Miscellaneous » Page

What's the URL you visited where you got this?

mwitt’s picture

I dont have the url, I deactivated the module and the message went away. If I remember correctly I tried to create a book node and I could not save the content as long as the error message came up on pressing publish.
/Micke

mwitt’s picture

Just did a clean install again and the same problem pops up:

warning: gmmktime() expects parameter 6 to be long, object given in /var/www/virtual/hem.mwitt.se/modules/archive/archive.module on line 301.

This showes up on all pages after I activated the archive module and added the block to the page.

Config:
Drupal 6.1
PHP 5.1.6
Archive 6.x-1.0

Any new idears?

/Micke

nmakarov’s picture

I've fixed this by replacing the line 96 on archive.module
from:
$month_title = l($title, _archive_url('all', $date, $year, $month), array('title' => format_plural($date->months[format_date($timestamp, 'custom', 'n')], '1 post', '@count posts')));
to:
$month_title = l($title, _archive_url('all', $year, $month), array('title' => format_plural($date->months[format_date($timestamp, 'custom', 'n')], '1 post', '@count posts')));

basically, I've removed the parameter $date for a function _archive_url. See a declaration of this function to see what it expects as its parameters.

Susurrus’s picture

Status: Active » Needs review
Susurrus’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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