oops ... ;)

Comments

swirt’s picture

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

pivica’s picture

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

nath’s picture

StatusFileSize
new1.08 KB

I made some small improvements to the install file (like adding messages).

nath’s picture

StatusFileSize
new1.1 KB

One more correction (forgot to set $success when using pgsql).

Turkish Delight’s picture

user 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!

Turkish Delight’s picture

Sorry 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

wundo’s picture

Status: Needs review » Fixed

Commited, thanks folks

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.