The full error message is:

DatabaseSchemaObjectExistsException: Cannot add index field_radioactivity_energy to table field_data_field_radioactivity: index already exists. in DatabaseSchema_mysql->addIndex() (line 432 of /var/www/sites/megagames.d7/includes/database/mysql/schema.inc).

This happens whenever I clear the cache or perform any operation regarding the field I created for radioactivity on a node.

Usually if I perform the same operation again, the error message does not appear. However, I cannot create a second field instance and modify the second instance.

For instance, if I create a field "field_radioactivity" as a new field, and then in another content type create a field using the existing field_radioactivity, I cannot set the default value in the second instance.

Comments

tcmug’s picture

Hmm - have you upgraded Radioactivity - if so have you run updatedb after upgrade?

aacraig’s picture

Status: Active » Closed (cannot reproduce)

Based on your question I've tried the same test in a clean installation using the dev version of Radioactivity and the error doesn't trigger.

I'll try again in the actual site and see if the error comes back. I'm in the middle of development and deployment to the live site, so perhaps this issue came from a bad Features update or something.

I'll close the issue for now and reopen if the problem crops up again.