When submitting a new node revision of a node with a type that leaves out the body (ie., the body field has been disabled), I get the following errors and it doesn't insert the new revision into the table, it seems, but apparently updates the information somewhere else, as all contact with the node is lost - I can't use node/X or node/X/edit to work with it anymore (and thus marking it critical).

  • warning: pg_query() [function.pg-query]: Query failed: ERROR: null value in column "body" violates not-null constraint in [...]/includes/database.pgsql.inc on line 139.
  • user warning:
    query: INSERT INTO node_revisions (nid, uid, title, teaser, log, timestamp, format) VALUES (1, 1, 'Title', '', 'Log entry.', 1242709513, 0) in [...]/includes/common.inc on line 3422.
  • notice: Undefined property: stdClass::$vid in [...]/modules/node/node.module on line 919.
  • notice: Undefined property: stdClass::$vid in [...]/modules/taxonomy/taxonomy.module on line 718.
  • notice: Undefined property: stdClass::$vid in [...]/modules/taxonomy/taxonomy.module on line 681.
  • notice: Undefined property: stdClass::$vid in [...]/sites/all/modules/cck/content.module on line 1036.
  • notice: Undefined property: stdClass::$vid in [...]/sites/all/modules/cck/content.module on line 1045.
  • notice: Undefined property: stdClass::$vid in [...]/sites/all/modules/cck/content.module on line 294.

Comments

Freso’s picture

Oh yeah: Drupal 6.x (CVS), PostgreSQL 8.3.7

heine’s picture

Status: Active » Closed (duplicate)