This has happened before and Views people will say the cause is this module, so here it is (although, if I had left Views 2.2 alone, this would not have happened).

After updating to Views 6.x.2.5, I get this error:
Fatal error: Cannot redeclare calendar_views_query_alter() (previously declared in /pathto/sites/all/modules/calendar/includes/calendar.views.inc:8) in /pathto/sites/all/modules/calendar/calendar.views.inc on line 27

I have temporarily deleted Calendar module to make the site available.

Comments

Madfatter’s picture

Sorry. I wrote with this same error. But a fresh download of the calendar module seems to have fixed it.

2createwdrupal’s picture

Thanks, I'll try that.

David Brix’s picture

Title: fatal error after updating to Views 2.5 » fatal errors after trying to install Date and Calendar Modules...
Project: Calendar » Date
Version: 6.x-2.1 » 6.x-2.2
Category: bug » support
Issue tags: +date, +calendar, +update, +Fstal Error Messages

O.K. so I have been having the most difficult time installing date and calendar in a site that I am working on...

For starters I am looking at moving the site to a different host (slow loading - different issue) because it keeps timing out (giving a blank white screen) during certain times of the day...

Truly I am mistified as I am just starting to develop this site and it really carries very little overhead...

Here is the configuration:

Drupal 6.1.2 with all core required enabled

Administration Menu
CCK: Content, Node Reference, Number, Option Widgets, Text, and User Reference
Core Optional: Color, comment, comment, Contact, Content Translation, Database Logging, Help, Menu, Path, Profile, Search, Taxonomy, Update Status, and Upload
Multilanguage: language Icons, Localization client
Other: FCKeditor, IMCE
Views: Views, Views UI

Server Setup:

File system Writable (public download method)
GD library bundled (2.0.34 compatible)
MySQL database 5.0.67.d7
PHP 5.2.8
PHP memory limit 64M
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Update notifications Enabled
Web server Apache

Other than that here is what is going on...

Initially, I installed the both the Date and Calendar modules and when I hit save configuration got the following message:

Fatal error: Cannot redeclare date_api_views_data() (previously declared in /home/content/n/c/p/ncpcbeat27/html/drupalTest/sites/all/modules/date/includes/date_api.views.inc:123) in /home/content/n/c/p/ncpcbeat27/html/drupalTest/sites/all/modules/date/date_api.views.inc on line 60

In order to gain access to the site I had to delete the Date module. Once back on the site I cleared the Cache and checked the log. In addition to the Fatal Error, I noticed several hundred PHP duplicate entry error messages in the log. I deleted the data from the watchdog table, optimized any table I could and then made sure that all of the modules / Core install were brought up to date (now at above config) Besides the slow load times due to my current host, things seemed to be back at square one.

I then tried reloading the date module making sure that it was also most current. Finally I was able to get it to work (activating the Date, Date API and Date Timezone modules) and I then set the timezone in the Date/Time configuration to the correct Locale based time zone.

I then went and activated the calender module (only) and hit save configuration. At this time I recieved another fatal error message that read:

Fatal error: Cannot redeclare calendar_views_query_alter() (previously declared in /home/content/n/c/p/ncpcbeat27/html/drupalTest/sites/all/modules/calendar/includes/calendar.views.inc:8) in /home/content/n/c/p/ncpcbeat27/html/drupalTest/sites/all/modules/calendar/calendar.views.inc on line 27

In order to get the site back up I deleted the Calendar module. once back on the site, I noticed a message that said there was a problem with the database and to run the update module, which I did. Once it was done it I noticed that several of the updates had failed on the date tables and it recommended that I go in by hand and try to fix it...

Since I had no clue as to how to manually fix the database tables, I de-activated the date module and deinstalled it using the admin interface and deleted it. I then when in to check the Drupal database and see if there were any tables that indicated the date of calendar modules were still part of the database. I then cleared the caches and the site seems to be operating normally with me back in square one.

I would attach a copy of the dblog if I could... In the meantime, I will try to reinstall the Date and Calendar modules, one at a time, and see if it might be kinder to me.

If anyone can tell me what I am doing wrong or what I need to be careful about in the future to be successful I would be most greatful!

Regards,
David Brix.

arlinsandbulte’s picture

Status: Active » Fixed

try updating to the latest versions of all modules.

Status: Fixed » Closed (fixed)
Issue tags: -date, -calendar, -update, -Fstal Error Messages

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

yesct’s picture

Issue summary: View changes
Issue tags: -Fstal Error Messages