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'];
Comment | File | Size | Author |
---|---|---|---|
#3 | 2532486-3.patch | 872 bytes | Devin Carlson |
#2 | commons_wikis.module.patch | 953 bytes | gold.eagle |
Comments
Comment #1
lsolesen CreditAttribution: lsolesen commented@gold.eagle Could you create a patch?
Comment #2
gold.eagle CreditAttribution: gold.eagle commentedI can always try...
Comment #3
Devin Carlson CreditAttribution: Devin Carlson commentedThanks for the patch!
Attached is a simple re-roll.
Comment #4
Devin Carlson CreditAttribution: Devin Carlson commentedTested #3 and committed to Commons 7.x-3.x.