Closed (fixed)
Project:
Monthly Archive
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2007 at 22:02 UTC
Updated:
30 Jul 2007 at 13:27 UTC
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
Comment #1
jochenh commentedThat 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
Comment #2
jochenh commentedjust looking at that snippet it seems that unless $may_cache is false, the module will return an empty array...
Comment #3
wmostrey commentedCommitted it this weekend.
Comment #4
(not verified) commented