I upgraded to WordPress 3.0 awhile back on the site where the below issue was noticed and in fact am running WordPress 3.1 on the site now. Today when attempting to block a new page from showing in the navigation bar via the Mandigo theme Theme Options screen I received an error complaining about permissions. I had to check to see if I had modified anything recently that could have effected these permissions but was unable to come up with anything. Turns out in the changelog that I keep the item that made the most sense was the upgrades from WordPress 2.X to WordPress 3.X. Below I describe the error in more detail followed by how to resolve the issue.
Mandigo Theme Options Permissions Error:
Error Text: You do not have sufficient permissions to access this page.
After visiting another WP site that is still running WordPress 2.X and I have the Mandigo theme installed on I noticed the difference which was in the URL used to access the Theme Options page. The URL of the site running WP 2.X was “/wp-admin/themes.php?page=Theme%20Options” but in the updated WordPress 3.X the URL was attempting to access “/wp-admin/themes.php?page=ThemeOptions”. Since I knew that I had not upgraded Mandigo the problem must be with the WordPress upgrade as thought previously but instead of modifying WP it made more sense to update Mandigo to resolve the issue as noted below by modifying the theme_options.php file located at the below path.
Mandigo theme_options.php Location:
- /wp-root/wp-content/themes/mandigo/backend/theme_options.php
Below I first code snip shows the original section that we will change in the second code snip below.
Original theme_options.php add_theme_page PHP Function:
- // the functions that load the theme options page
- function add_mandigo_options_page() {
- global $dirs;
- add_theme_page(
- 'Theme Options',
- '<img src="'. $dirs['www']['backend'] .'images/attention_catcher.png" alt="" /> Theme Options',
- 'edit_themes',
- 'Theme Options',
- 'mandigo_options_page'
- );
- }
Updated theme_options.php add_mandigo_options_page PHP Function:
- // the functions that load the theme options page
- function add_mandigo_options_page() {
- global $dirs;
- add_theme_page(
- 'ThemeOptions',
- '<img src="'. $dirs['www']['backend'] .'images/attention_catcher.png" alt="" /> ThemeOptions',
- 'edit_themes',
- 'ThemeOptions',
- 'mandigo_options_page'
- );
- }
Refresh your WordPress admin section and you can now click on ThemeOptions to view the WordPress Mandigo theme Theme Options configuration page.
Thank you! You saved me having finding a new theme on the fly. I’ll need to update to all devices friendly theme soon but for now, this solved it. Thanks so much!
Hello alc,
No problem. Thanks for taking the time to leave feedback.
Thanks.
alex