If I have book.module enabled, I get the following errors on any of my node views:

warning: array_reverse(): The argument should be an array in S:\es-home\public_html\mn-leon.org\includes\menu.inc on line 254.
warning: Invalid argument supplied for foreach() in S:\es-home\public_html\mn-leon.org\includes\menu.inc on line 254.
warning: array_pop(): The argument should be an array in S:\es-home\public_html\mn-leon.org\includes\menu.inc on line 292.

I inserted a print_r( debug_backtrace() ) at the problem line and got the following results:

Array
(
    [0] => Array
        (
            [file] => S:\es-home\public_html\mn-leon.org\modules\book.module
            [line] => 461
            [function] => menu_set_location
        )

    [1] => Array
        (
            [file] => S:\es-home\public_html\mn-leon.org\modules\node.module
            [line] => 341
            [function] => book_nodeapi
        )

    [2] => Array
        (
            [file] => S:\es-home\public_html\mn-leon.org\modules\node.module
            [line] => 502
            [function] => node_invoke_nodeapi
        )

    [3] => Array
        (
            [file] => S:\es-home\public_html\mn-leon.org\modules\node.module
            [line] => 526
            [function] => node_view
        )

    [4] => Array
        (
            [file] => S:\es-home\public_html\mn-leon.org\modules\node.module
            [line] => 1487
            [function] => node_show
        )

    [5] => Array
        (
            [function] => node_page
        )

    [6] => Array
        (
            [file] => S:\es-home\public_html\mn-leon.org\includes\menu.inc
            [line] => 332
            [function] => call_user_func_array
        )

    [7] => Array
        (
            [file] => S:\es-home\public_html\mn-leon.org\index.php
            [line] => 10
            [function] => menu_execute_active_handler
        )

)

Disabling book.module makes the problem go away.

CommentFileSizeAuthor
#1 book_2.patch676 bytesJonBob
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JonBob’s picture

FileSize
676 bytes

It's a buglet in the recent book patch (it tried to set book breadcrumbs for nodes that weren't books). Fix attached.

Dries’s picture

Committed to HEAD. Thanks.

Anonymous’s picture