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 18

Rebuilt 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

marcus0263’s picture

I 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

salvis’s picture

Have you copied the 1.0 to another directory instead of removing it? This could cause this error...

marcus0263’s picture

Initially 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

salvis’s picture

Category: bug » support
Priority: Critical » Normal

Drupal 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.

marcus0263’s picture

For 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

salvis’s picture

For clarification I didn't move the module location, I just extracted the module in /modules over the existing location.

In 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.

marcus0263’s picture

MMMM I don't have another occurrence other than FA

xxxxx drupal # find . | xargs grep forum_access_node_grants   
./sites/all/modules/forum_access/forum_access.module:function forum_access_node_grants($user, $op) {

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

salvis’s picture

Status: Active » Postponed (maintainer needs more info)

As of November 29 we had 300 confirmed sites running FA 1.2 according to http://drupal.org/project/usage/forum_access...

salvis’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

(close old issue without reply)