Title: Getting Permissions Error
Last modified: August 20, 2016

---

# Getting Permissions Error

 *  [glrwork](https://wordpress.org/support/users/glrwork/)
 * (@glrwork)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/getting-permissions-error/)
 * Love the plugin and am using it on another site, but I’m having trouble on this
   one.
 * When I install the plugin and click on Settings, I get this error:
 * “You do not have sufficient permissions to access this page.”
 * The settings on my cache folder are 775.
 * Any idea what could be causing this error to pop up?
 * The site is TwoDogTownhouse.com
 * Thanks
 * [http://wordpress.org/extend/plugins/special-recent-posts/](http://wordpress.org/extend/plugins/special-recent-posts/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Luca Grandicelli](https://wordpress.org/support/users/lgrandicelli/)
 * (@lgrandicelli)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/getting-permissions-error/#post-3627480)
 * WordPress Left Panel -> Settings -> Special Recent Posts
 *  Thread Starter [glrwork](https://wordpress.org/support/users/glrwork/)
 * (@glrwork)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/getting-permissions-error/#post-3627563)
 * I can access the settings from the WordPress panel. However I can’t access the
   settings from the Plugin page to ID the number of posts to show, get the shortcode,
   etc. That is where I get the do not have permissions” error.
 * Thanks
 *  Plugin Author [Luca Grandicelli](https://wordpress.org/support/users/lgrandicelli/)
 * (@lgrandicelli)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/getting-permissions-error/#post-3627591)
 * So that means you can’t access the widget page, because that’s where all those
   options are located: within the dragged SRP widget.
 *  Thread Starter [glrwork](https://wordpress.org/support/users/glrwork/)
 * (@glrwork)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/getting-permissions-error/#post-3627599)
 * Ok… does that tell you anything about how I can gain access?
    Thanks
 *  [kitchin](https://wordpress.org/support/users/kitchin/)
 * (@kitchin)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/getting-permissions-error/#post-3627658)
 * The bug is at line 117 in special-recent-posts.php:
 * `$settings_link = sprintf( '<a href="options-general.php?page=%s">%s</a>', plugin_basename(
   __DIR__) . '/lib/lib-admin.php', __('Settings') );`
 * Should be:
 * `$settings_link = sprintf( '<a href="options-general.php?page=%s">%s</a>', dirname(
   plugin_basename( __FILE__ )) . '/lib/lib-admin.php', __('Settings') );`
 * Because the PHP constant __DIR__ is not available until PHP 5.3.
 * See [http://wordpress.org/tags/_dir_](http://wordpress.org/tags/_dir_) for other
   plugins with this error.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Getting Permissions Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/special-recent-posts_006699.svg)
 * [Special Recent Posts](https://wordpress.org/plugins/special-recent-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/special-recent-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/special-recent-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/special-recent-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/special-recent-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/special-recent-posts/reviews/)

## Tags

 * [permission error](https://wordpress.org/support/topic-tag/permission-error/)
 * [permissions](https://wordpress.org/support/topic-tag/permissions/)
 * [__DIR__](https://wordpress.org/support/topic-tag/__dir__/)

 * 5 replies
 * 3 participants
 * Last reply from: [kitchin](https://wordpress.org/support/users/kitchin/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/getting-permissions-error/#post-3627658)
 * Status: not resolved