admin/settings/htmlbox/options return and "Access Denied" page to user 0.

Comments

sammy-node’s picture

I've noticed this too - I can't get in to change the "Options" as the admin - access denied

jeremydvt’s picture

I have also had this problem

NiklasBr’s picture

Same issue here. Have tried adding this to line 33 to htmlbox.module, but with no result:
<?php 'access arguments' => array('administer site configuration'), ?>

mfer’s picture

Change out htmlbox_mennu() for this function:

function htmlbox_menu() {
  $items = array();

  $items['admin/settings/htmlbox'] = array(
    'title'            => 'HTMLBox settings',
    'description'      => 'Visibility and button configuration for the HTMLBox.',
    'page callback'    => 'drupal_get_form',
    'page arguments'   => array('htmlbox_admin_settings_visibility'),
    'access arguments' => array('administer site configuration'),
  );
  $items['admin/settings/htmlbox/visibility'] = array(
    'title'            => 'Visibility',
    'description'      => 'Specify where the HTMLBox will be visible.',
    'type'             => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/settings/htmlbox/options'] = array(
    'title'            => t('Options'),
    'description'      => t('Specify options for the HTMLBox.'),
    'page callback'    => 'drupal_get_form',
    'page arguments'   => array('htmlbox_admin_settings_options'),
    'type'             => MENU_LOCAL_TASK,
    'weight'           => 1,
    'access arguments' => array('administer site configuration'),
  );

  return $items;
}

Then rebuild the menu cache. You can do that by submitting the modules page. Or, I think clearing the cached data on the performance settings page.

Avalanche’s picture

I have the same issue. Can't get into the options.

UPDATE: I used the directions in post #4 and it fixed the problem.

The file to edit is htmlbox.module in the sites/all/modules/htmlbox directory.

Johanwalle’s picture

I tried to fix the problem according to the hints of post 4. It did not work, even after cleaning the cache

regards

Johan van de Walle

Flying Drupalist’s picture

Works for me, thanks.

Mac Ryan’s picture

I confirm that indications in post #4 worked fine for me too.

varver’s picture

I too would like to confirm that mfer's post (#4) worked just fine.

Thanks

monstordh’s picture

#4 worked for me as well. johnwalle - be sure not to include the php tags when you paste in the new code.

rbl’s picture

Version: 6.x-1.0-beta5 » 6.x-1.x-dev

The dev version already has the correct version of the menu but I'm also getting the access denied error =(

axtolf’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta5

The workaround suggested in the #4 post worked for me too. 6.x-1.0-beta5 for htmlbox, drupal 6.19

Poetro’s picture

Status: Active » Fixed

Fixed in 6.x-1.0.

Status: Fixed » Closed (fixed)

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