Trouble activating Comments module

DSkok

Joined: 2005-04-03
Posts: 6
Posted: Sat, 2005-04-23 19:18

I am having trouble getting the Comments module activated. Here is the error message that I get:

An error has occurred.

Back to the Gallery
Error Detail -
Error (ERROR_COLLISION) : Duplicate permission id: comment.add

* in modules/core/classes/helpers/GalleryPermissionHelper_advanced.class at line 772 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 739 (gallerypermissionhelper_advanced::registerpermission)
* in modules/comment/module.inc at line 73 (gallerycoreapi::registerpermission)
* in modules/core/classes/GalleryModule.class at line 137 (commentmodule::upgrade)
* in modules/core/AdminModules.inc at line 68 (commentmodule::installorupgrade)
* in main.php at line 173 (adminmodulescontroller::handlerequest)
* in main.php at line 79
* in main.php at line 70

System Information
Gallery version 2.0-beta-2
PHP version 4.3.11 apache
Webserver Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2634a mod_ssl/2.8.22 OpenSSL/0.9.6
Database mysql 4.0.22-standard
Toolkits ImageMagick, Gd
Operating system Linux host44.hrwebservices.net 2.4.25-HRGRP4smp #1 SMP Tue Mar 9 04:44:42 EST 2004 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1 StumbleUpon/1.9993

----

Gallery URL (optional): http://skok.com/gallery
Gallery version: G2 Beta 2
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-04-23 20:32

try to uninstall and reinstall the module

 
DSkok

Joined: 2005-04-03
Posts: 6
Posted: Sat, 2005-04-23 20:39

Sorry to be an idiot, but what is the procedure for uninstalling a module?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-04-23 20:46

Site Admin / Modules
what options does it show for comments module?

 
DSkok

Joined: 2005-04-03
Posts: 6
Posted: Sat, 2005-04-23 20:48

It simply says Install. (I should have used the word Install rather than Activate in my original problem description, as the error occurs when I click on Install.)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-04-23 21:22

you need to remove any rows for comments module from table g2_PermissionSetMap. the module must have been installed sometime before and was not uninstalled properly.