Hi,
when from a block list I request to show on a page detail about each items I receive a message "Access denied" or "Page not found"

On month code I have deleted follow lines and work fine:

function month_menu() {
 // $items = array();
 // if ($may_cache) {
    $items[] = array(
      'path' => 'month',
      'title' => t('Monthly archives'),
      'callback' => '_month_page',
      'type' => MENU_CALLBACK,
      'access' => user_access('access content'),
    );
  //}
  return $items;
} 

I don't hnow if is a bud or I don't understand how utilize

 // $items = array();
 // if ($may_cache) {

Can help me with some information about this problem?
Thank

Max

Comments

jochenh’s picture

That is a great little fix. I dont know but I was having a lot of problems getting this module working on 5-1. I haven't had time to look through all the code in detail but I guess there is defintely something weird going on, because I was getting lots of blank pages or page not founds until i commented out the same thing that you did and now it works !
- j

jochenh’s picture

Category: support » bug

just looking at that snippet it seems that unless $may_cache is false, the module will return an empty array...

wmostrey’s picture

Status: Active » Fixed

Committed it this weekend.

Anonymous’s picture

Status: Fixed » Closed (fixed)