Author Topic: Error when changing calendar display time range  (Read 10650 times)

max

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Error when changing calendar display time range
« on: April 23, 2009, 12:23:07 pm »
When I click the "next/prev" buttons i frequently, but not always get this:


Error (InvalidControllerActionError)
Invalid controller action event::undefined()
Error params:
File:    /var/www/opengoo/environment/classes/controller/Controller.class.php
Line:    79
Controller:    event
Action:    undefined
Backtrace:
#0 /var/www/opengoo/environment/classes/controller/PageController.class.php(62): Controller->execute('undefined')
#1 /var/www/opengoo/environment/classes/Env.class.php(133): PageController->execute('undefined')
#2 /var/www/opengoo/init.php(146): Env::executeAction('event', 'undefined')
#3 /var/www/opengoo/index.php(9): require('/var/www/opengo...')
#4 {main}
Autoglobal varibles:
$_GET:    Array (
  ['active_project'] => (string) '0'
  ['ajax'] => (string) 'true'
  ['c'] => (string) 'event'
  ['a'] => (string) 'undefined'
  ['day'] => (string) '23'
  ['month'] => (string) '4'
  ['year'] => (string) '2009'
  ['user_filter'] => (string) 'undefined'
  ['status_filter'] => (string) ' 0 1 3'
  ['view_type'] => (string) 'undefined'
  ['current'] => (string) 'calendar-panel'
  ['_dc'] => (string) '1240499978207'
)
$_POST:    
$_COOKIE:    Array (
  ['__utma'] => (string) '203147149.1030790917904386600.1220614419.1239127006.1240321892.64'
  ['__utmz'] => (string) '203147149.1239127006.63.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
  ['id'] => (string) '6'
  ['token'] => (string) '0a724f7bc6227f2283f1e79d62fa20988e3232a4'
  ['PHPSESSID'] => (string) '34d0aff3df4dce7c80463edc348d37f7'
  ['remember'] => (string) '1'
)
$_SESSION:    Array (
  ['cal_version'] => true
  ['month'] => (string) '4'
  ['year'] => (string) '2009'
  ['day'] => (string) '23'
  ['cal_loginfailed'] => (int)0
  ['cal_user'] => (string) 'wolf'
  ['cal_userid'] => (int)6
)


I first noticed this bug after importing a few ical calendars. but I can't precisely reproduce the behaviour.

any ideas?

ThorstenW

  • Freshman
  • *
  • Posts: 34
    • View Profile
Re: Error when changing calendar display time range
« Reply #1 on: April 24, 2009, 10:00:14 am »
Oh, somehow just missed your post. My report refers to the very same problem. Adding the log entries for this error:

Hello everyone,

after selecting the calendar tab and successfully showing the current month (week or day respectively) i can't switch to a different month/week/day due to an Internal Server Error.

It throws 2 Errors:
Code: [Select]
#1 ERROR: Error: Object of class __PHP_Incomplete_Class could not be converted to string in '/path/to/opengoo/environment/functions/general.php' on line 73 (error code: 4096)
#2 ERROR: Error: Object of class __PHP_Incomplete_Class to string conversion in '/path/to/opengoo/environment/functions/general.php' on line 73 (error code: 8)

Any ideas?

Greetings,
Thorsten

Using version 1.3.1 (svn repos).

I first noticed this bug after importing a few ical calendars. but I can't precisely reproduce the behaviour.

Same here. I imported three ical calendars yesterday.

ThorstenW

  • Freshman
  • *
  • Posts: 34
    • View Profile
Re: Error when changing calendar display time range
« Reply #2 on: April 24, 2009, 03:37:30 pm »
Hi max,

did you get your installation directly from the repository on sourceforge?
I used the subversion files and ignacio's proposal to replace them with the official 'zip' fixed the issue for me.

Hope this works for you as well,
Thorsten

Daiver

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Ahlera - Web design & development
Re: Error when changing calendar display time range
« Reply #3 on: April 24, 2009, 05:29:25 pm »
I'm having the same problem at the same line, but only when I try to switch users via the dropdown box in the calendar.

Also, I haven't imported any iCalendars.

Any thoughts?

Daiver

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Ahlera - Web design & development
Re: Error when changing calendar display time range
« Reply #4 on: April 24, 2009, 05:32:10 pm »
So, I logged out and logged back in and now it is working again :S

Daiver

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Ahlera - Web design & development
Re: Error when changing calendar display time range
« Reply #5 on: April 30, 2009, 02:15:16 am »
This is def. a bug. It keeps happening every once in a while. I have to log out and log back in again to get it to work.

Also, exporting a calendar gives me an error, but offers the file for download.

I"m attaching the plain error I get. I'll get to switching to debugging mode tomorrow so I can see what's going on.

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Error when changing calendar display time range
« Reply #6 on: May 06, 2009, 10:50:41 am »
Hi,

Both bugs are fixed for next release, they are also fixed in 1.4 beta2.

if you want to fix for your installation without update you can change line 473 of application/controllers/EventController.class.php (function getUserPreferences) for this one:
    if (user_config_option('calendar view type', '') != $view_type)

And to fix the bug at calendar export, go to application/views/event/cal_export.php and change the script at the last line for this one:
<script type="text/javascript">
   btn = Ext.get('<?php echo $genid ?>cal_export_submit1');
   if (btn != null) btn.focus()
</script>

Daiver

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Ahlera - Web design & development
Re: Error when changing calendar display time range
« Reply #7 on: May 06, 2009, 11:29:48 am »
Thanks, but I think I'd rather wait for 1.4. Not sure I want to mess with my installation :P