Closed (fixed)
Project:
OG Files
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2008 at 23:19 UTC
Updated:
31 May 2008 at 13:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
swirtadding this as the install file results in this error
Fatal error: Cannot redeclare og_files_install() (previously declared in /homepages/13/d231203494/htdocs/alpha/sites/groups.inclusion-ny.org/modules/og_files/og_files.module:233) in /homepages/13/d231203494/htdocs/alpha/sites/groups.inclusion-ny.org/modules/og_files/og_files.install on line 4
because the function was declared in og_files.module Removing the function from og_files.module causes the confirm page to output nothing when activating or deactivating the module. Still no db table gets created.
Comment #2
pivica commentedTry disabling og_files module and then remove og_files row from system database table and then enable module. Drupal will not call module install function if you already enable module earlier. And yes you should comment og_files_install function in og_files.module.
Comment #3
nath commentedI made some small improvements to the install file (like adding messages).
Comment #4
nath commentedOne more correction (forgot to set $success when using pgsql).
Comment #5
Turkish Delight commenteduser warning: Table 'drupal.og_files' doesn't exist query: SELECT count(gid) FROM og_files WHERE gid = 128 in /var/www/html/drupal-5.2/includes/database.mysql.inc on line 172.
Is that what this particular error has to do with?
If so, can I throw in the install file up at the top or should I use number 3 or 4? Thanks!
Comment #6
Turkish Delight commentedSorry I just read through a different bug report, and it was the reason that this error occurred. Thousand apologies for a repost. http://drupal.org/node/208058
Comment #7
wundo commentedCommited, thanks folks
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.