admin/settings/htmlbox/options Access Denied

losco - September 29, 2008 - 12:52
Project:HTMLBox
Version:6.x-1.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

duncano74 - October 12, 2008 - 01:43

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

#2

jeremydvt - October 28, 2008 - 08:26

I have also had this problem

#3

NiklasBr - October 30, 2008 - 00:41

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

#4

mfer - November 4, 2008 - 16:58

Change out htmlbox_mennu() for this function:

<?php
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.

#5

aceinthehole - November 4, 2008 - 20:38

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.

#6

Johanwalle - November 26, 2008 - 21:35

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

#7

Flying Drupalist - December 25, 2008 - 03:02

Works for me, thanks.

#8

MrMac - December 25, 2008 - 16:21

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

#9

varver - March 19, 2009 - 19:27

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

Thanks

#10

monstordh - April 10, 2009 - 18:47

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

#11

rbl - April 23, 2009 - 23:58
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 =(

 
 

Drupal is a registered trademark of Dries Buytaert.