I've no clue why and how this happens but for some reason the function addreview_access is called on the frontpage. I'm using Omega 4 (alpha?) and used it to create an empty front page.

02.png

I solved it by changing the following:

$items['node/%node_edit_review/addreview'] = array(
// into
$items['node/%node/addreview'] = array(

I also edited the right function name for the access callback and removed the node_load for the access function.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

h3rj4n’s picture

Status: Needs work » Needs review
FileSize
1.18 KB

And the patch.