Download & Extend

solution NOT found: gmmktime() expects errors

Project:Event
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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

Comments

#1

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

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

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

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

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

Hope this info can help someone!

#6

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

#7

Thanks for the solution! Worked perfectly with 5.1

#8

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

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

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