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
Comment #1
Susurrus commentedWhat's the URL you visited where you got this?
Comment #2
mwitt commentedI 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
Comment #3
mwitt commentedJust 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
Comment #4
nmakarov commentedI'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.
Comment #5
Susurrus commentedComment #6
Susurrus commentedComment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.