Closed (fixed)
Project:
Better Formats
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2009 at 15:33 UTC
Updated:
7 May 2009 at 16:50 UTC
I got the following errors when first installing 6.x-1.0.
* user warning: Table 'better_formats_defaults' already exists query: CREATE TABLE better_formats_defaults ( `rid` INT unsigned NOT NULL, `type` VARCHAR(255) NOT NULL, `format` MEDIUMINT unsigned NOT NULL, `type_weight` TINYINT unsigned NOT NULL DEFAULT 0, `weight` TINYINT NOT NULL DEFAULT 0, PRIMARY KEY (rid, type) ) /*!40100 DEFAULT CHARACTER SET UTF8 */ in /home/fk/domains/fk.fkbuild.com/public_html/includes/database.inc on line 515.
* user warning: Duplicate entry '1-node' for key 1 query: INSERT INTO better_formats_defaults VALUES (1, 'node', 0, 1, 0) in /home/fk/domains/fk.fkbuild.com/public_html/sites/all/modules/better_formats/better_formats.install on line 75.
* user warning: Duplicate entry '1-comment' for key 1 query: INSERT INTO better_formats_defaults VALUES (1, 'comment', 0, 1, 0) in /home/fk/domains/fk.fkbuild.com/public_html/sites/all/modules/better_formats/better_formats.install on line 76.
* user warning: Duplicate entry '2-node' for key 1 query: INSERT INTO better_formats_defaults VALUES (2, 'node', 0, 1, 0) in /home/fk/domains/fk.fkbuild.com/public_html/sites/all/modules/better_formats/better_formats.install on line 75.
* user warning: Duplicate entry '2-comment' for key 1 query: INSERT INTO better_formats_defaults VALUES (2, 'comment', 0, 1, 0) in /home/fk/domains/fk.fkbuild.com/public_html/sites/all/modules/better_formats/better_formats.install on line 76.
* user warning: Duplicate entry '5-node' for key 1 query: INSERT INTO better_formats_defaults VALUES (5, 'node', 0, 1, 0) in /home/fk/domains/fk.fkbuild.com/public_html/sites/all/modules/better_formats/better_formats.install on line 75.
* user warning: Duplicate entry '5-comment' for key 1 query: INSERT INTO better_formats_defaults VALUES (5, 'comment', 0, 1, 0) in /home/fk/domains/fk.fkbuild.com/public_html/sites/all/modules/better_formats/better_formats.install on line 76.
* user warning: Duplicate entry '6-node' for key 1 query: INSERT INTO better_formats_defaults VALUES (6, 'node', 0, 1, 0) in /home/fk/domains/fk.fkbuild.com/public_html/sites/all/modules/better_formats/better_formats.install on line 75.
* user warning: Duplicate entry '6-comment' for key 1 query: INSERT INTO better_formats_defaults VALUES (6, 'comment', 0, 1, 0) in /home/fk/domains/fk.fkbuild.com/public_html/sites/all/modules/better_formats/better_formats.install on line 76.
* There are updates available for one or more of your modules or themes. To ensure the proper functioning of your site, you should update as soon as possible. See the available updates page for more information.
Comments
Comment #1
dragonwize commentedYou're Drupal install is messed up somehow. The db table already exists which means the module was already installed and the install hook ran again. The only way that would happen is if the row in your system table was either reset or deleted without proper uninstall. There is nothing in this module that would cause that. That could possibly happen if you just deleted the module folder without uninstalling and visiting the modules page, which would be expected behavoir as the system can not uninstall if the files are deleted.
Comment #2
todd nienkerk commentedThanks for the lightening reply. I must have originally installed an old beta or release candidate that didn't include an uninstall hook. (I had checked prior to enabling it.)
Anyway, works great. Thanks for the help.