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
-
WordPress Left Panel -> Settings -> Special Recent Posts
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
So that means you can’t access the widget page, because that’s where all those options are located: within the dragged SRP widget.
Ok… does that tell you anything about how I can gain access?
ThanksThe 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://ww.wp.xz.cn/tags/_dir_ for other plugins with this error.
The topic ‘Getting Permissions Error’ is closed to new replies.