Closed (fixed)
Project:
Forum Access
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2009 at 23:01 UTC
Updated:
3 Oct 2010 at 21:39 UTC
Upgraded and unable to access the forums, while accessing this error is thrown -
Fatal error: Cannot redeclare forum_access_node_grants() in /path/drupal-6.14/sites/all/modules/forum_access/forum_access.module on
line 18Rebuilt permissions, deactivated Forum access and ACL modules, rebuilt permissions, reactivated modules, rebuilt permissions, cleared cache etc and still throws this error while attempting to access any threads.
Comments
Comment #1
marcus0263 commentedI rolled back to v6.1.0 to recover, but currently v6.1.2 breaks my site.
Let me know what you need to troubleshoot this issue
Thanks
Comment #2
salvisHave you copied the 1.0 to another directory instead of removing it? This could cause this error...
Comment #3
marcus0263 commentedInitially I just did the standard upgrade with extracting the tarball in my /modules, set permissions, updated, then rebuilt permissions.
Tonight I'll try again by removing the dir, extract the tarball for v6.1.2, update and rebuild permissions and see how it goes
Thanks
Comment #4
salvisDrupal gets confused if it finds the same module (actually the same function name) more than once.
This happens with all modules and themes, it's not FA-specific.
Comment #5
marcus0263 commentedFor clarification I didn't move the module location, I just extracted the module in
/modules over the existing location.
I didn't get a chance to test last night, I'll try upgrading again tonight by removing the existing dir and extracting and updating
Comment #6
salvisIn that case, search for "
forum_access_node_grants(" in your entire Drupal source code tree. The error message is clear: this occurs two times. One of them is FA 1.2 — only you can find the other one...BTW, your approach should work for upgrading FA 1.0 to 1.2. I admit that I sometimes do it like this myself, even though it's not the recommended practice.
Comment #7
marcus0263 commentedMMMM I don't have another occurrence other than FA
Still haven't tried the upgrade yet, as my Dad likes to say "Been busier than a one legged man in a butt kicking contest".
I "should" be able to get to it this weekend though, I'll update the thread when I've done so. As mentioned I'll delete the [path]/forum_access first though and see how it plays out.
Thanks
Comment #8
salvisAs of November 29 we had 300 confirmed sites running FA 1.2 according to http://drupal.org/project/usage/forum_access...
Comment #9
salvis(close old issue without reply)