Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | book_2.patch | 676 bytes | JonBob |
Comments
Comment #1
JonBob CreditAttribution: JonBob commentedIt's a buglet in the recent book patch (it tried to set book breadcrumbs for nodes that weren't books). Fix attached.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #3
(not verified) CreditAttribution: commented