Fatal error: Call to undefined function book_load() in C:\www\Apache2\www\www.test.com\sites\all\modules\pathauto\pathauto_node.inc on line 136

CommentFileSizeAuthor
#1 remove_book_load.diff871 bytesgreggles

Comments

greggles’s picture

Title: I get a error when I try to add a book page » don't call book_load directly
Status: Active » Needs review
StatusFileSize
new871 bytes

Well, it seems that calling book_load was appropriate at one point of Drupal's life but hasn't been the "right thing" to do for a release or two.

Removing the book_load and just using $node removes the error.

@winner - can you test this to confirm?

greggles’s picture

Priority: Normal » Critical

And this seems critical to me.

greggles’s picture

Status: Needs review » Fixed

I've applied this to the Drupal5 branch and will add it to HEAD at some point in the future when I sync them.

Thanks for pointing this out, winner.

Anonymous’s picture

Status: Fixed » Closed (fixed)