solution NOT found: gmmktime() expects errors

nig - January 15, 2007 - 21:52
Project:Event
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I am getting loads of errors in my logs. The messages all point to two lines in the event module (line 238 and line 1700) -

gmmktime() expects parameter 5 to be long, string given in
/home/hopeful9/public_html/modules/event/event.module on line 238.

gmmktime() expects parameter 5 to be long, string given in
/home/hopeful9/public_html/modules/event/event.module on line 1700.

I downloaded a fresh installation of Drupal 4.7.5 and Event module on 11.1.07 - so I am assuming that http://drupal.org/node/68294 is not it, as that was fixed in June 06.

I am using PHP 5.2.0 and MySQL 4.1.21-standard.

I upgraded my database from 4.6.9 on 13.1.07 and this started happening then.

Anyone know how to fix it?

Thanks
Nig

#1

csc4 - February 18, 2007 - 23:18

I've got similar - though mine is parameter 6
Warning: gmmktime() expects parameter 6 to be long, string given in D:\...\modules\event\event.module on line 238

#2

amorales@drupal... - March 6, 2007 - 11:31

I have the same errors.

"gmmktime() expects parameter 5 to be long"

Anybody can help us in this problem?

Thanks.

PD: Looking at google, I've found lots of messages like this problem in web sites built in drupal. So, people have the same or similar problem to us, but don't say a word about it.

Thanks.

#3

perke - March 7, 2007 - 15:39

same thing here

gmmktime() expects parameter 6 to be long, string given in sites/all/modules/event/event.module on line 273.

using latest release of events 5.x-1.x-dev (05march 2007)

#4

perke - March 9, 2007 - 08:32
Title:gmmktime() expects errors» solution found: gmmktime() expects errors

i think i fixed this, not sure if this will work for everyone... but here you go

if you're using events with views module, make sure that event_js, event_date, event_select are ENABLED in admin/build/views

have fun

#5

Pjeirke - March 13, 2007 - 15:26

enabling event_js, event_date, event_select is what helped me out aswell!

Hope this info can help someone!

#6

csc4 - March 14, 2007 - 23:01

Any idea what the 4.7 equivalent would be?!?!?

#7

lsabug - July 23, 2007 - 13:54

Thanks for the solution! Worked perfectly with 5.1

#8

el_reverend - September 16, 2008 - 17:52
Version:4.7.x-1.x-dev» 5.x-1.x-dev
Category:bug report» support request

Hello,

I am having the same problem. I figured out that when visiting a URL that does not exist (i.e.: /event/stuff) the following warning will appear:

warning: gmmktime() expects parameter 6 to be long, string given in server-path/sites/all/modules/event/event.module on line 273.

This happen regardless of the user role and the logged-in status. Is there a way to redirect any request whose arguments do not exist to the default calendar view (i.e.: /event/)?

Thanks, thats greatly appreciated.

#9

el_reverend - October 27, 2008 - 19:11
Title:solution found: gmmktime() expects errors» solution NOT found: gmmktime() expects errors

Nobody has any idea? I have circumvented this issue (but not flawlessly) by creating a views page that lists the 5 upcoming event in a list whenever the page /events (<-- note the 's') is called. I created all events path alias to read events instead of event. So if a user tries to modify the url and accidentally navigates to a event page that does not exist, it redirects to the 'events - catchall' page.

Still a less than perfect solution and it does not address or fix the issue directly. Any other ideas?

#10

plan9 - July 29, 2009 - 16:24

I have this problem also. Enabling event_js, event_date, event_select doesn't work as I have overridden event_select.

 
 

Drupal is a registered trademark of Dries Buytaert.