Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

Weird error in header menu area


  • Brian
    Newbie 37 points
    April 2, 2019 at 8:26 pm

    Hello,

    I added WP EasyCart over the weekend to have a full store in addition to the auctions.
    It adds a cart icon with details on how much is in the cart into the regular menu. It works fine for admin users, but produced an “Oops” message about permissions for subscribers.

    Any ideas how to get around this?

    Thanks!

    Attachments:
    You must be logged in to view attached files.
  • Marie
    Marie
    Super Guru 1,747 points
    April 3, 2019 at 6:44 am

    hi,

    it might be your permalinks, what permalink structure did you set to your site?


  • Brian
    Newbie 37 points
    April 3, 2019 at 10:04 am

    HI Marie,

    The permalink structure is set to day and name.

    Thanks!


  • Brian
    Newbie 37 points
    April 4, 2019 at 1:43 am

    Worked with the developer of the cart and he said it looks like the template/header is blocking jquery. Any idea if the header is doing that and how to possibly correct it?

    Thanks!

  • Marie
    Marie
    Super Guru 1,747 points
    April 4, 2019 at 2:30 am

    hi brian

    inspect element your website , see what errors are displaying


  • Brian
    Newbie 37 points
    April 4, 2019 at 7:26 pm

    HI Marie,

    Thanks for all your help. Not really good with the debugging stuff, but this only happens if a user is logged in as subscriber. If they are logged in as admin or not logged in, the cart link appears just fine.


  • Brian
    Newbie 37 points
    April 6, 2019 at 3:40 am

    Was able to fix this after reading through this post:

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

    It came down to adding “subscriber” into the mentioned part of the class_admin.php file:

    After this:
    // FIX FOR ADMIN QUERY

    I added:
    && !user_can($userdata->ID, ‘subscriber’)

    And everything works fine now. Thanks to Delali for originally finding this one!

  • Marie
    Marie
    Super Guru 1,747 points
    April 8, 2019 at 7:40 am

    Thanks for sharing Brian :)

Viewing 8 posts - 1 through 8 (of 8 total)