When I attempt to update the views module, I get this error message in my logs:
[Mon Feb 16 13:02:35 2009] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Cannot redeclare date_api_views_data() (previously declared in /www/drupal-6.9/sites/all/modules/date/includes/date_api.views.inc:123) in /www/drupal-6.9/sites/all/modules/date/date_api.views.inc on line 60
Sure enough, both functions exist in their respective files. How best can this be rectified?
Thanks,
Comments
Comment #1
jadowd commentedThe issue was in the date module... there were files that were removed from the latest release of that module that I did not remove. Sorry about the confusion.
Comment #2
moguro commentedThank you for posting how you fixed this problem, the solution worked for me as well.
Comment #3
transavante02 commentedHi there, I see that you have acknowledged a problem but not sure how you rectified this. I am a drupal user that needs spoonfeeding. I can't get past the error message,
Fatal error: Cannot redeclare date_api_views_data() (previously declared in I:\xampp\htdocs\drupalb\sites\all\modules\contrib\date\includes\date_api.views.inc:123) in I:\xampp\htdocs\drupalb\sites\all\modules\contrib\date\date_api.views.inc on line 60
When I try to bring up my site on the local host I can't get past the error message so it has stopped me dead in my tracks and I am not sure that even if I did a totally reinstall of xampp and drupal that the problem would be rectified as, as far as I am aware, I was using the last release of the date module.
Regards, Shawn
Comment #4
karens commentedAnytime you get a message that you cannot redeclare a function, it means you have two different files with the same function. So that says you have extra copies of files in the wrong places and you can see from the message that it is reading from two different copies of a file in slightly different locations. Completely empty out your Date folder and re-upload the latest code to be sure you don't have extra files in that folder.