Trying to submit an image using the image module (or even via img_assist) produces the following error message:

Fatal error: Call to undefined function: node_validate_title() in /var/www/modules/image/image.module on line 168

Presumably this is because validate is no longer in Drupal HEAD?

Anyone got a fix?

CommentFileSizeAuthor
#1 node_validate_0.patch579 bytesRayZ

Comments

RayZ’s picture

Status: Active » Needs review
StatusFileSize
new579 bytes

Try this.

Patrick Nelson’s picture

Status: Needs review » Reviewed & tested by the community

Nice one, Rayz - that fixed it.

Regards

Patrick

walkah’s picture

Status: Reviewed & tested by the community » Fixed

committed. thanks!

zom’s picture

I have the same error on the 4.6RC1 with last cvs image version ( happends suddenly, as worked for a while before the error appears)

Could you detail where to insert the code ?

Patrick Nelson’s picture

You insert the code in the image.module itself.

Look at the patch and the lines with the '-' sign at the beginning. Those are the lines that you need to remove from image.module.

This line:

@@ -162,13 +162,6 @@ function image_cron() {

gives you an idea of the line numbers in image.module where those other lines will be but it's not always 100% accurate depending on what editor you're using. Either way, you can always search for the text so, for the line:

-function image_validate($node) {

you would search for

function image_validate($node) {

(i.e., without the '-' sign)

Find it and delete the line. Do the same for every line that is listed in the patch with the '-' sign next to it.

That's it. That's all you need to do.

Patrick Nelson’s picture

PS - Probably worth noting that the whole "insert the code" thing is a bit of a misnomer in the case of this particular patch as there is no code to insert, only code to remove.

Anonymous’s picture

Status: Fixed » Closed (fixed)