Adding the data alteration "index hierarchy" with the hierarchical field book gives me the following error when indexing non-book nodes:

EntityMetadataWrapperException: This node is no book page. in entity_metadata_book_get_properties() (line 24 of .../sites/all/modules/contrib/entity/modules/callbacks.inc).

Using the RESTful Web Services module bug #1806142: EntityMetadataWrapperException: This node is no book page as a model, I created a patch which catches this exception.

Comments

mvc’s picture

Status: Active » Needs review
StatusFileSize
new771 bytes
mvc’s picture

Status: Needs review » Needs work
mvc’s picture

Status: Needs work » Needs review

trying to kick the test bot...

drunken monkey’s picture

Status: Needs review » Fixed

Thanks for reporting, and for fixing it right away!
Your patch looks fine, thanks. Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

artfulrobot’s picture

This patch works for me. When is it going to make it into the current version (i.e. the one you get when you go drush dl search_api)?

Think this is related: https://drupal.org/node/1330086#comment-8190979