1

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

1
  • manage_options capability is also enabled for the Editor
    – urok93
    Commented Jul 1, 2011 at 14:06

1 Answer 1

2

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.

4
  • Yep; known issue. And thanks for pointing out that fix, Rarst! Commented Jul 1, 2011 at 12:23
  • I did enable that as well but to no avail.
    – urok93
    Commented Jul 1, 2011 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.) Commented Jul 4, 2011 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
    – urok93
    Commented Jul 4, 2011 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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