If I upload FileField to my site, I see the following warnings in /admin before I've enabled this module:
-
user warning: Duplicate entry 'sites/all/modules/filefield/filefield.module' for key 1 query: INSERT INTO system (name, info, type, filename, status, throttle, bootstrap) VALUES ('filefield', 'a:10:{s:4:\"name\";s:9:\"FileField\";s:11:\"description\";s:26:\"Defines a file field type.\";s:12:\"dependencies\";a:1:{i:0;s:7:\"content\";}s:7:\"package\";s:3:\"CCK\";s:4:\"core\";s:3:\"6.x\";s:3:\"php\";s:3:\"5.0\";s:7:\"version\";s:7:\"6.x-3.0\";s:7:\"project\";s:9:\"filefield\";s:9:\"datestamp\";s:10:\"1240272649\";s:10:\"dependents\";a:0:{}}', 'module', 'sites/all/modules/filefield/filefield.module', 0, 0, 0) in /home/example/public_html/drupal/includes/module.inc on line 147.
-
user warning: Duplicate entry 'sites/all/modules/filefield/filefield_meta/filefield_meta.module' for key 1 query: INSERT INTO system (name, info, type, filename, status, throttle, bootstrap) VALUES ('filefield_meta', 'a:10:{s:4:\"name\";s:14:\"FileField Meta\";s:11:\"description\";s:48:\"Add metadata gathering and storage to FileField.\";s:12:\"dependencies\";a:2:{i:0;s:9:\"filefield\";i:1;s:6:\"getid3\";}s:7:\"package\";s:3:\"CCK\";s:4:\"core\";s:3:\"6.x\";s:3:\"php\";s:3:\"5.0\";s:7:\"version\";s:7:\"6.x-3.0\";s:7:\"project\";s:9:\"filefield\";s:9:\"datestamp\";s:10:\"1240272649\";s:10:\"dependents\";a:0:{}}', 'module', 'sites/all/modules/filefield/filefield_meta/filefield_meta.module', 0, 0, 0) in /home/example/public_html/drupal/includes/module.inc on line 147.
Are FileField and FileField Meta tripping over each other?
Once I enable FileField, the warnings disappear, and it seems to work okay, so I suspect this is mainly cosmetic. I'm surprised no one else has reported it, but Search didn't find a match. Maybe it's something specific to my site, though I don't have any especially exotic modules installed.
Drupal 6.12
Comments
Comment #1
quicksketchI'd suspect some module doing an unusual module scan is causing this problem. It's clearly not a problem on fresh installs of Drupal and I haven't found a way to reproduce it. When you visit admin/build/modules, Drupal will usually scan the modules directory (since it needs to display which modules are available) and make new entries in the system table for any new modules (though it will mark them as being uninstalled). That looks like the error you're seeing above, where the scanning of the module directory was fired twice very quickly, causing Drupal to attempt to insert the same row multiple times.
Regardless of where this problem originated, it'd be extremely difficult for this to be caused by FileField since as you say, the module wasn't even enabled when the error occurred. In such a case the *only* file that is loaded by Drupal is the .info file for each module.
Comment #2
quicksketchClosing after inability to reproduce and lack of response.