in flexinode this function is called .. i believe it is same issue as reported elsewhere.
line 601 of flexinode.module:

600 function flexinode_validate($node) {
 601   node_validate_title($node);
 602 
 603   if (isset($node->ctype_id)) {
 604     $ctype = flexinode_load_content_type($node->ctype_id);
 605     foreach ($ctype->fields as $field) {
 606       $fieldname = 'flexinode_'. $field->field_id;
 607       $validation = flexinode_invoke('validate', $field, $node);
 608       if ($field->required && !$node->$fieldname) {
 609         form_set_error($fieldname, t('You must fill in the field "'. $field->label .'".'));
 610       }
 611     }
 612   }
 613 }
CommentFileSizeAuthor
#4 node_validate_title.patch647 bytesRayZ

Comments

hadishon’s picture

I'm getting this error using current CVS Drupal and current CVS Flexinode:

Fatal error: Call to undefined function: node_validate_title() in /home/httpd/vhosts/activefarming.com/httpdocs/modules/flexinode/flexinode.module on line 604

hadishon’s picture

As per http://drupal.org/node/22218#node_validate_title and other issues for other items:

node_validate_title() was removed

The page above specifies to:

Simply specify the '#required' => TRUE attribute on the form item instead, and form API will validate for you.

How do I do this?

hadishon’s picture

I looked at the patch for project.module and they just deleted the line...

I tried deleting:
node_validate_title($node);

and now flexinode appears to be working fine. I don't know if this would cause any other problems though?

RayZ’s picture

Status: Active » Needs review
StatusFileSize
new647 bytes

This looks fine to me. Here is the patch. It appears '#required' => TRUE was already in there.

jonbob’s picture

Status: Needs review » Fixed

Committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)