Theme Options Page generates “insufficient permissions” for administrator
-
So, I’ve created a basic theme-options panel for a CMS site that I’m working on. The admin panel controls the look and feel of the “featured” area on the home page, and it’s all pretty simple stuff.
This worked fine for several days, and then I’m suddenly getting this error message…
You do not have sufficient permissions to access this page.
…whenever I press “save changes” on the options page. The url that is generated for this page is:
…/wp-admin/themes.php?page=functions.php&saved=true
This is occuring when I’m logged in as an administrator… More unusual still, is that the changes I made in the options panel actually do get saved to the database.
So, basically the error message is completely inaccurate.
I checked the required capabilities for the options page, the page is set like so:
add_theme_page($themename." Settings", "".$themename." Settings", 'edit_pages', basename(__FILE__), 'mytheme_admin');
So, this page should work for both Administrators and Editors.
Again, the page was working fine and not displaying an error, and the only thing I can think of that might have changed this is I added a second administrator account. Now both administrator accounts get the same error message. I tried demoting the other admin to an “editor” and the problem remains.
I’m kind of out of ideas here. Does anyone have any suggestions or feedback?
Thanks!
Now, the only thing I can think of that changed from when this page was working correctly.
- The topic ‘Theme Options Page generates “insufficient permissions” for administrator’ is closed to new replies.