When you visit the Revisions tab on a non-Wiki content (such as a Post), and then click on the hyperlink for an older revision, you are sent to a white-screen-of-death.

The error message in the Apache log is: PHP Fatal error: Call to undefined function view() in [...] /profiles/commons/modules/commons/commons_wikis/commons_wikis.module on line 51, referer: http://qa13.ct.edu/node/5734/revisions

A somewhat recent patch (see: https://www.drupal.org/node/2222589) introduced the bug as a typo in the 'access arguments' property for the 'node/%node/revisions/%/view' menu-item. It is a cut-and-paste error. Line 31 of profiles/commons/modules/commons/commons_wikis/commons_wikis.module is:

$items['node/%node/revisions/%/view']['access arguments'][] = $items['node/%node/revisions']['access callback'];

but should be:

$items['node/%node/revisions/%/view']['access arguments'][] = $items['node/%node/revisions/%/view']['access callback'];

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lsolesen’s picture

@gold.eagle Could you create a patch?

gold.eagle’s picture

FileSize
953 bytes

I can always try...

Devin Carlson’s picture

Version: 7.x-3.28 » 7.x-3.x-dev
Status: Active » Needs review
FileSize
872 bytes

Thanks for the patch!

Attached is a simple re-roll.

Devin Carlson’s picture

Status: Needs review » Fixed

Tested #3 and committed to Commons 7.x-3.x.

Status: Fixed » Closed (fixed)

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