Looks like the changes in the Drupal 6.2 update break things, a little ... the "Download count"/maintenance menu does not install and the admin page (/admin/settings/download_count) is not accessible.

I got it working by adding

    'access arguments' => array('administer download_count configuration'),

to the hook_menu() implementation to yield

  $items['admin/settings/download_count'] = array(
    'description' => 'Increments a download counter and logs a descriptive message each time an attached file is downloaded.',
    'title' => 'Download count',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('download_count_admin_settings'),
    'access arguments' => array('administer download_count configuration'),
    'type' => MENU_NORMAL_ITEM);

'Though this seems to work, I'm not php-fluent and don't even have enough Drupal development knowledge to be properly dangerous, so I don't know whether this is the proper way to address the issue.

Comments

Chill35’s picture

Thank you!

Chill35’s picture

I added a permission, one to administer the module, and I use it as so:

'access arguments' => array('administer download counter'),

I recommend you use the new version I just commited, it will be tagged as 6.x-1.1 on the module project page. It will show up there in a little while, after the Drupal script is run.

Thank you very much for having brought this problem to my attention,

Have a splendid day.

C.

Chill35’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.