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.
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.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | nodereview-empty_frontpage_error-2050219-1.patch | 1.18 KB | h3rj4n |
Screenshot from 2013-07-25 14:33:02.png | 28.75 KB | h3rj4n |
Comments
Comment #1
h3rj4n CreditAttribution: h3rj4n commentedAnd the patch.