Download & Extend

admin/settings/htmlbox/options Access Denied

Project:HTMLBox
Version:6.x-1.0-beta5
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

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

#2

I have also had this problem

#3

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

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

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

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

Works for me, thanks.

#8

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

#9

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

Thanks

#10

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

#11

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 =(

#12

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

#13

Status:active» fixed

Fixed in 6.x-1.0.

#14

Status:fixed» closed (fixed)

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