I searched high and low trying to figure out what the problem is here, nearly every forum topic and bug report I found was in regard to upgrading either the database or to 4.7, neither of which I have done.
I have been running Drupal 4.6 for a number of months now and have two flexinodes types that I use regularly. At some point yesterday when I edited an existing node created with flexinode I received this error when submitting the changes:
user error: Duplicate entry '37-2664' for key 1
query: INSERT INTO term_node (nid, tid) VALUES (2664, 37) in /home/XXX/drupal/includes/database.mysql.inc on line 66.
warning: Cannot modify header information - headers already sent
The edits are taking, but I am continually getting this error rather than being redirected to the edited node. This issue is not occuring with other data types, like a blog entry or recipe, but seems to now be a problem editing any existing node created with flexinode. Initial creation is error free. I checked the database and found three issues:
in 'node' table More than one INDEX key was created for column `status`
in 'nodevote' table PRIMARY and INDEX keys should not both be set for column `uid`
in 'term_node' table PRIMAY and INDEX keys should not both be set for column `tid`
I ran a repair on these tables through phpmyadmin to no avail.
I don't know very much about drupal or SQL to be mucking around with these entries, and I'm very concerned as to how this happened being that the most I've done to the site in the last couple of days is edit and play with themes.