Parameter problem
mwitt - February 17, 2008 - 15:31
| Project: | Archive |
| Version: | 6.x-1.0 |
| Component: | Page |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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

#1
What's the URL you visited where you got this?
#2
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
#3
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
#4
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.
#5
#6
#7
Automatically closed -- issue fixed for two weeks with no activity.