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.
This caused flooding of my watchdog table with "headers already sent" type errors because bots were trying to access forward url's for unpublished nodes.
Patch will follow for 1.x-dev (what the site I'm working on is running). Issue may apply to newer versions too
Basically it's:
- return drupal_access_denied();
+ return MENU_ACCESS_DENIED;
Similar fixes have been committed to core recently:
http://drupalcode.org/project/drupal.git/commit/257fac8
Comment | File | Size | Author |
---|---|---|---|
#1 | fix_page_callback_not_found-2257049-1.patch | 1.17 KB | rv0 |
Comments
Comment #1
rv0 CreditAttribution: rv0 commentedthe patch also corrects 3 whitespace errors, can't help it, my IDE does this automagically ;)
Comment #4
john.oltman CreditAttribution: john.oltman commentedThanks for the patch
Committed to 7.x-2.x and 7.x-3.x
Use the patch for 7.x-1.x