Weird error in header menu area

WordPress Business Themes Forums Responsive Themes Auction Theme Weird error in header menu area

Discontinued - The forum content is out of date. For theme support please use our support desk here.

Weird error in header menu area

April 2, 2019
 Brian

  • Brian
    Newbie 37 points

    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.
    April 2, 2019 at 8:26 pm
  • Marie
    Marie
    Super Guru 1,747 points

    hi,

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

    April 3, 2019 at 6:44 am

  • Brian
    Newbie 37 points

    HI Marie,

    The permalink structure is set to day and name.

    Thanks!

    April 3, 2019 at 10:04 am

  • Brian
    Newbie 37 points

    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!

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

    hi brian

    inspect element your website , see what errors are displaying

    April 4, 2019 at 2:30 am

  • Brian
    Newbie 37 points

    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.

    April 4, 2019 at 7:26 pm

  • Brian
    Newbie 37 points

    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!

    April 6, 2019 at 3:40 am
  • Marie
    Marie
    Super Guru 1,747 points

    Thanks for sharing Brian :)

    April 8, 2019 at 7:40 am
Viewing 8 posts - 1 through 8 (of 8 total)

Didn't find what you were after?

Chat with us now

or contact our support team