"Oops! You do not have sufficient permissions to access this page."

I'm getting below permission errors for ajax requests. "Oops! You do not have sufficient permissions to access this page." Iā€™m using 4.5 version. This is occurring mainly for ajax requests.

Created: October 11, 2013 at 5:14 pm
  • In: Coupon Theme
  • Started by: PraveenPraveen
  • 9 members left 16 comments
  • Last reply from: AdnanAdnan

  • Mark Fail
    Mark Fail
    October 12, 2013 at 1:46 am

    #8230; please update

  • Praveen
    October 24, 2013 at 3:40 am

    Hi Mark,

    Even after updating to i’m getting the same permission error for ajax requests šŸ™

  • Praveen
    October 25, 2013 at 5:20 pm

    Any update?

  • Praveen
    October 29, 2013 at 6:41 am

    @Mark, any update on this ajax permission issue?

  • Mark Fail
    Mark Fail
    October 29, 2013 at 8:43 am

    ajax request using what? which plugin?

  • Praveen
    October 31, 2013 at 7:40 am

    Using twitter posts, its giving permission error for ajax calls.

  • Richard Bonk
    Richard Bonk
    October 31, 2013 at 9:10 am

    What is that plugin supposed to do?
    Also If you get error from the plugin, you should contact the plugin creator.

  • Praveen
    October 31, 2013 at 2:32 pm

    @Richard, yes i contacted the plugin developer. But again he blamed it with the theme šŸ™

  • Gino
    May 15, 2015 at 7:41 am


    I am facing this issue too with multi rating pro. The plugin author have helped me to update the code in BT framework.

    Please check if this can help any of you who are facing this issue.

    BT/framework/ line 1299

    Original code from the theme

    if(isset($_GET[‘action’]) ){ return; }

    if (strpos(strtolower($_SERVER[‘REQUEST_URI’]), ‘/wp-admin’) !== false && $userdata->ID) {

    $userdata = wp_get_current_user();

    if( !user_can($userdata->ID, ‘administrator’) && !user_can($userdata->ID, ‘contributor’) && !user_can($userdata->ID, ‘editor’) ){

    wp_die(__(‘Oops! You do not have sufficient permissions to access this #8217;));


    Multi Rating Pro submits a HTTP POST AJAX request ($_POST) and not a HTTP GET ($_GET).
    In order to support both $_GET and $_POST.

    if(isset($_GET[‘action’]) || isset( $_POST[‘action’] ) ){ return; }

    Thanks for the support from multi rating pro author.

  • Anonymous
    June 25, 2015 at 5:29 pm

    I’m getting this horrid error too. I tried 4 different ratings plugins and get this error every time. But the plugins work fine for my other site using a non-premiumpress theme. Obviously it’s a problem with the theme. Unfortunately this Multi Ratings Pro fix doesn’t work for my rating plugin.
    I’m dying here. 2 days straight trying to find a solution. Seriously, from morning to night looking for help. The plugin author was so patient and so helpful, but it’s not a problem with his plugin. I haven’t gotten any responses posting in this forum for this issue, so I hope I get a quick response to my ticket. I think spending over 30 hours on one issue is ridiculous.

  • Anonymous
    June 25, 2015 at 7:28 pm

    For anyone who has this issue with wp-postratings plugin, here is what worked for me.

    Open wp-content/themes/BT/framework/

    After this line: // FIX FOR ADMIN QUERY
    You’ll see: if( !user_can($userdata->ID, ‘administrator’) && !user_can($userdata->ID, ‘contributor’) && !user_can($userdata->ID, ‘editor’)

    Just add the user levels you need, like subscriber, author, etc.

  • Josh
    June 25, 2015 at 7:42 pm

    Thanks for sharing šŸ™‚

  • Clive
    June 26, 2015 at 12:12 am

    Well done Josh šŸ™‚

  • Hemanta Chakladar
    Hemanta Chakladar
    February 9, 2016 at 12:54 pm

    Hey, we can’t run any ajax call from non-admin user, because it always says,

    “Oops! You do not have sufficient permissions to access this #8221;

    Are you going to fix it ?

Viewing 15 posts - 1 through 15 (of 17 total)