Full error on various pages, including /node/##/revisions/###/view

require_once(/diff.pages.inc) [function.require-once]: failed to open stream: No such file or directory in /includes/menu.inc on line 346.

Also saw a a blank screen on /node/#/revisions/list and some PHP error messages before the Drupal site could be displayed.

Other errors:

Missing argument 1 for diff_node_revision_access() in /sites/www.site.com.au/modules/diff/diff.module on line 109.

call_user_func_array() expects parameter 1 to be a valid callback, function 'diff_diffs_overview' not found or invalid function name in /includes/menu.inc on line 348.

I believe the errors are all related to the first one, not finding diff.pages.inc. Loading the module earlier by setting the weight of the diff module to -50 in the system table fixed the problem.

-50 may be overkill, it was just to test the idea. Is this something which could be done in a diff.install file?

Comments

a.siebel’s picture

I trief both, updating to latest dev and setting weight to -50 - But the erros still occurs. :-/

sherakama’s picture

Subscribe.

realityloop’s picture

Status: Active » Postponed (maintainer needs more info)

can you please post steps to reproduce?

marcoBauli’s picture

umm... same three errors appear here too. Curiously happening after cloning a website where everything was working fine. Changing Diff weight doesn't seem to solve. It's a complex website, so cannot tell how to reproduce, trying to investigate further..

brad.bulger’s picture

one cause of this that i've run into is the Revisioning module. that was because i had applied the patch from #676010-77: diff_menu() issue - undefined offset in includes/menu.inc on line 576 function _menu_translate(), which alters a menu item that Revisioning also alters:

    $items['node/%node/revisions/view/%/%']['access callback'] = '_revisioning_node_revision_access';
    $items['node/%node/revisions/view/%/%']['access arguments'] = array('view revisions', 1);

altering those lines to match the new Diff menu path fixed the require_once() failure.

it all seems a bit dubious to me.

alan d.’s picture

Anyone still getting this error?

If so, please tell me the exact versions of Diff and Revisioning that you are using.

alan d.’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)

Closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.