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
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

Susurrus - February 19, 2008 - 17:42
Component:Miscellaneous» Page

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

#2

mwitt - February 20, 2008 - 09:38

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

mwitt - March 11, 2008 - 12:57

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

nmakarov - April 11, 2008 - 18:14

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

Susurrus - April 28, 2008 - 01:43
Status:active» needs review

#6

Susurrus - April 28, 2008 - 02:00
Status:needs review» fixed

#7

Anonymous (not verified) - May 12, 2008 - 02:01
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.