Whenever the adsense.module is enabled, all 404 errors will be handled as 403 (access denied).

Index: adsense.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/adsense/adsense.module,v
retrieving revision 1.27
diff -u -r1.27 adsense.module
--- adsense.module      11 Dec 2005 05:18:35 -0000      1.27
+++ adsense.module      4 Jan 2006 08:28:03 -0000
@@ -156,7 +156,7 @@
 
   return $output;
 }
-  
+/*
 function adsense_menu($may_cache) {
   $items = array();
 
@@ -171,7 +171,7 @@
    }
    return $items;
 }
-
+*/
 function adsense_perm() {
   return array ('hide adsense');
 }

Comments

markus_petrux’s picture

Wow! I spent a couple of hours trying to search the reason for those 403 pages!

Worked for me, though I'm wondering if there would be side effects or it was just a mistake to use the hook_menu() for this module?

Thanks a lot! :-)

kbahey’s picture

Assigned: Unassigned » kbahey
Status: Needs review » Fixed

Thanks for the patch. Fixed in 4.6 and CVS.

Anonymous’s picture

Status: Fixed » Closed (fixed)