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?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | node_validate_0.patch | 579 bytes | RayZ |
Comments
Comment #1
RayZ commentedTry this.
Comment #2
Patrick Nelson commentedNice one, Rayz - that fixed it.
Regards
Patrick
Comment #3
walkah commentedcommitted. thanks!
Comment #4
zom commentedI 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 ?
Comment #5
Patrick Nelson commentedYou 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.
Comment #6
Patrick Nelson commentedPS - 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.
Comment #7
(not verified) commented