after researching this last night, I am pretty sure this is a bug in core 7.2, however I log it here in the hope that I can get pointers on how to resolve specifically in the context of forum nodes.

Anyway, I rolled Drupal 7.2 onto a site last Sunday, and ever since it is impossible for any user, no matter their permissions, to edit the first post in a thread. In the error log I get:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'node-217' for key 1... in drupal_write_record() (line 6851 of //includes/common.inc)

(I can post the entire message if useful but the rest is specific to the site and options)

Like I said, a quick browse for this type of errors last night yielded a few topics related to rules, see http://drupal.org/node/1169800. I have no rules or triggers on my site however so I think the problem is more fundamental.

Still, while I don't expect this to be a problem with Advanced Forum, does anyone have a suggestion on how to resolve?

Comments

troky’s picture

Using 7.2 core with AF and I don't have such problems.
Have you tried to edit post with AF disabled?

RogueM’s picture

good point. Upon checking, to my surprise the basic forum had no such problems. Then on re-enabling AF it now works, albeit seemingly only on fresh posts, so perhaps it is due to a change in db from core 7.0 to 7.2.

well, I'm none the wiser, since I had definitely checked the editing of fresh/new nodes yesterday, but I did some cache clearing and further drupal tweaks since then so perhaps that helped / self-corrected the problem for all but pre-7.2 created nodes. I dunno.

thanks for advise all the same!

troky’s picture

Status: Active » Closed (cannot reproduce)
BeaPower’s picture

I am still unable to edit forum posts... don't know what is wrong...?