Fatal error: Call to a member function override_option() on a non-object

cps@groups.drup... - June 13, 2008 - 18:18
Project:Calendar
Version:6.x-2.0-beta3
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

If I run the update, I get the following error on all pages:

Fatal error: Call to a member function override_option() on a non-object in /sites/all/modules/calendar/calendar.views_default.inc on line 163

I use all updates - date, views, calender - from today. And get the same error with the calender dev.

#1

georgedamonkey - June 13, 2008 - 22:19

I'm also having the same problem.

#2

Diseree - June 13, 2008 - 22:22

Me too. I've lost everything of database after this error message is shown.
This beta is an ultimate lethal weapon, lol!

#3

cps@groups.drup... - June 13, 2008 - 23:03

Ok, the solution is simple, the iCal module must be active.

#4

Diseree - June 14, 2008 - 05:49

Thanks!
Once iCal module is enabled, this module works 'almost' fine
(update.php still says some error about wrong argument for foreach(), but data does not corrupt).

#5

dryhann - June 14, 2008 - 07:29

I have the same problem. I get:

Fatal error: Call to a member function override_option() on a non-object in /home/.trucker/.../drupal/modules/calendar/calendar.views_default.inc on line 163

Only when I copy the CALENDAR in the MODULE directory. When I delete the folder all works fine.

I have all updated. How I can active the iCal module? Where is the iCal module to download? I don´t see. I can´t install the calendar module.

Thanks.

#6

rastatt@drupal.org - June 14, 2008 - 09:01

The iCal 'module' is not a separate module but part of the calender module. After copying CALENDER to the MODULES directory, you have available Calender and Calender iCal (and other) in the module administration page (http://localhost/?q=admin/build/modules). Calendar iCal is what you have to activate, too.

I can also confirm that this workaround works.

#7

dryhann - June 14, 2008 - 10:47

Thanks. WORKS!!!

But the problem is: Only when I copy the CALENDAR in the MODULE directory. I can´t enter in the module administration page. I get:
Fatal error: Call to a member function override_option() on a non-object in /home/.trucker/.../drupal/modules/calendar/calendar.views_default.inc on line 163

The calendar module is activate by default (sure by a bad desinstalation) and crash. I desactivate the DATE before and then copy the CALENDAR in the directory. Activate iCal and works.

Good job. Thanks.

#8

KarenS - June 14, 2008 - 11:34
Status:active» fixed

I added an iCal feed to the default view and that's what caused the problem. I just committed a fix so that only gets added if the Calendar iCal module is enabled.

The Calendar iCal module is in the Calendar folder and it is used to create an iCal feed for the calendar, if you want one. It can also be used to import an iCal feed into the calendar, but that part is not yet working in the D6 version.

#9

schubi1987 - June 14, 2008 - 12:14

I have the same problem.
But after the error message I can't view any page... There are just the Drupal Error messages Page not found ne mater what page I call. Only a database restore with phpmyadmin could help me, because I could not access the modules page.

#10

KarenS - June 14, 2008 - 12:25

It is fixed now, no reason to keep reporting it. You need the latest -dev code in cvs.

#11

d_arcy_0 - June 18, 2008 - 14:22

i downloaded and install last -dev of calendar , and the linked views version and give the next message :
Call to a member function override_option() on a non-object in \modules\calendar\calendar.views_default.inc on line 163
i tryed with all the views versions and the same problem, but if i install last views version it killed all drupal site. impossible to recover it.
thanks..

#12

Garrett Albright - July 1, 2008 - 15:05

Okay, for those who are having this problem and are seeing the Page Not Found errors on all your Drupal pages after it happens, you can get your site back in two simple (well, simpler than rebuilding your site) steps. First, run this SQL line;

UPDATE system SET status = 0 WHERE name = 'calendar';

This disables the Calendar module "by hand." (Obviously, you'll need to change "system" if you're using a table prefix of some sort.)

Next, run the update.php script. When that's done, your site will be up and running again.

See this page for more info on this type of error.

I'll download and test the dev… Our client won't need Ical support, so if we can get it working without that unnecessary module, it'd be for the best.

EDIT: The dev works for me.

#13

jeannea - June 20, 2008 - 09:22

For all those who are having problems installing the calendar, I hope this would help.
I have attached here the modules that I have downloaded and tested.

Enable the following after copying the file to the root folder of modules:
1. Calendar
2. Calendar iCal
3. Date API
4. Date Timezone
5. Views

Note:Heres the latest version of views because D6 requires the latest dev version : http://ftp.drupal.org/files/projects/views-6.x-2.x-dev.tar.gz.

AttachmentSize
calendar-6.x-2.0-beta3.tar_.gz37.29 KB
date-6.x-2.0-beta3.tar_.gz164.42 KB

#14

seriousdarious2 - June 24, 2008 - 21:46

Hey. I'm getting the same error as everyone else. I can't do the workaround suggested here with activating Calendar iCal first as my Calendar module is "stuck on". Even removing the module then disabling the Date module doesn't help. When I reinstall the module (still with Date off) I get the error. My site is fine when I delete the module from the site's modules folder, however. Should I still use #12 to turn the module off? Is there a different fix for this version of the problem? Thanks.

UPDATE: I had someone who knows what they're doing help me with #12 and it worked. I appear to be all set.

#15

kwgossett - July 1, 2008 - 23:04

Garrett's SQL command worked for me. Thanks for posting this!

#16

Anonymous (not verified) - July 15, 2008 - 23:13
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.