I was going through and cleaning up some plugin settings recently on a WordPress site and received an error when attempting to access Feed Comments Number admin settings page. The error states that you do not have sufficient permissions to access the page though that was not the case because I was logged in as an administrator. Luckily I had run into this exact error awhile back and knew exactly where the problem was. Below I describe the error in more detail and provide resolution to the issue.
Feed Comments Number Admin Page Error:
Error Message Text: You do not have sufficient permissions to access this page.
To resolve this error you will need to modify the feed_comments_number.php file which is located in the Feed Comments Number WordPress plugin directory located at /path/to/wordpress/wp-content/plugins/feed-comments-number/. Open feed_comments_number.php in your favorite text editor and make the modification on line 41 detailed below.
Original feed_comments_number.php Line 41:
- add_submenu_page('options-general.php', "Feed Comments Number", "Feed Comments Number", 10, "Feed Comments Number", array(&$this,"output_sub_admin_page_0"));
Modified feed_comments_number.php Line 41:
- add_submenu_page('options-general.php', "Feed Comments Number", "Feed Comments Number", 10, "FeedCommentsNumber", array(&$this,"output_sub_admin_page_0"));
Notice the only change on line 41 in the feed_comments_number.php file is the third instance of “Feed Comments Number” being changed to “FeedCommentsNumber”. Once you have made the change save the file and you should now be able to access the Feed Comments Number admin settings page via the WordPress admin. At some point WordPress disallowed spaces in the general options page PHP code so it now automatically removes those spaces and thus seems inaccurate as FeedCommentsNumber instead of what is it expecting as Feed%20Comments%20Number as a variable passed into the options-general.php page that many plugins use to construct their admin settings page.