Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Hi I have built a settings page which from the menu leads to: http://www.mysite.com/wp-admin/admin.php?page=theme_options

The problem is that when I go to save the options and I am an EDITOR user I get this error: You do not have sufficient permissions to access this page.

I am using User Role Editor plugin and edit_theme_options capability is enabled for the Editor user type.

What can I do to fix this? thanks

share|improve this question
    
manage_options capability is also enabled for the Editor –  drtanz Jul 1 '11 at 14:06
add comment

1 Answer

up vote 3 down vote accepted

I am not sure this is the issue here, but if I remember right the current limitation of Settings API is that manage_options capability is required for everything to be saved properly.

Quick search shows it might get fixed in 3.2, see this trac ticket.

share|improve this answer
    
Yep; known issue. And thanks for pointing out that fix, Rarst! –  Chip Bennett Jul 1 '11 at 12:23
    
I did enable that as well but to no avail. –  drtanz Jul 1 '11 at 14:05
    
You'll need to post actual code. I can confirm that the fix in the ticket works. (Also, it requires that you're running WordPress 3.2 RC.) –  Chip Bennett Jul 4 '11 at 0:31
    
I am using WP v3.1.2 is there any way to get this working on that version? I have a theme options page in another site with v3.1 and the editor can save the options just fine :S –  drtanz Jul 4 '11 at 14:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.