This could very easily (and most likely is) my own fault. I'm trying to migrate a D6 theme to D7. The part I'm fighting with now is the theme settings page. When I try to go to /admin/appearance/settings/theme_name I get "Access denied" from Drupal.

I have a theme-settings.php file which mimics garland and setting['key'] = val pieces in my theme.info file.

I've been fighting all day to figure out why I'm getting this issue when I try to access theme settings. I assume it's either a bug or my screw up but no idea which at this point.

Thanks for the help.

CommentFileSizeAuthor
#3 Screenshot-3.png125.4 KBMTecknology

Comments

MTecknology’s picture

I also just noticed that when I go to '/admin/appearance/settings' there's no tab for settings for my theme. The defaults I set in theme.info work perfect though.

It also seems that the exact same issue is being noticed with my block layout.

dave reid’s picture

Basic questions:
- Does your user account have the 'administer themes' permission?
- Is the theme actually 'enabled' on the /admin/appearance page?

MTecknology’s picture

StatusFileSize
new125.4 KB

Ya, the theme is enabled. I'm attaching a screenshot of what I see. I also made sure the user has that permission.

MTecknology’s picture

Status: Active » Closed (won't fix)

I take it no one intends to deal with this...

heine’s picture

Version: 7.0-beta3 » 7.9
Status: Closed (won't fix) » Active

It's still a bug even if nobody knows (yet) how to repro.

jojo__’s picture

I had this problem too and I also was not able to reproduce.
My solution was:
1) Select an other theme as default
2) Settings on my theme worked now
3) Select my theme as default again
4) Settings works without access denied

HonoredMule’s picture

Version: 7.9 » 7.15

I'm having the exact same problem. A role is assigned the "administer themes" role (as well as all others) and can enable, disable, and set default themes, but not view/edit theme settings. I've tried disabling and re-enabling themes, changing the default, etc., all to no avail.

Incidentally, Bartik is my default theme, yet it was not recognized as "enabled." Again, however, rectifying this had no effect on the non-ability to view/edit settings for any enabled theme.

Version: 7.15 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.