Closed (fixed)
Project:
Drupal core
Version:
7.2
Component:
node system
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2011 at 07:01 UTC
Updated:
14 Dec 2011 at 14:13 UTC
I have a website with more than 10K nodes of type "book", which I created using Content Types in Drupal 7.
But I cannot edit the first 300 nodes in my website and I get this error:
Error message
PDOException: in drupal_write_record() (line 6851 of public_html/includes/common.inc).
But other nod are just fine. I check nodes which are editable and nodes which are not using DEVEL and both nodes seems pretty as the same. I also check 'node', 'node_revision', 'field_data_NNN', field_revision_NNN' and they both seems the same.
I got stuck in this problem and I cannot figure out why this problem caused only to the first 300 nodes. Is there a way to debug drupal_write_record so I can understand exactly which fields or problematic.
Comments
Comment #1
Mamouri commentedI found the solution. Actually the problem cause by a field which it's content was corrupted. To found which field is causing the problem, I suggest to temporarily change "drupal_write_record" function to found the problem:
In my case it was alias field of 'url_alias' table. I regenrated all aliases and cleared cache_path table and problem solved.
Comment #2
Mamouri commentedComment #4
digitaldonkey commentedThanks. That Helped. For me it was defaultcontent trying ti insert an image which existed allready.