• Hi team, apologies in advance if this is not the right place to ask but wondering if I could get some advice.

    We are having issues with users accessing the membership plugin in the backend of the website. When they try to add new members, they are seeing the ‘sorry you are not allowed to access this page’ error.

    I’ve contacted our hosting support and they have detected the issue is coming from Woocommerce, which is blocking access to users who isn’t an administrator in file wp-content/plugins/woocommerce/includes/wc-user-functions.php and the block is on line 578 (screenshot: https://imgur.com/a/MKif8fG )

    They were able to add members before, and the issue seems to have started from last week. The user currently has the editor/shop manager role.

    Can provide more info if needed. Any advice on this would be greatly appreciated. System report below. Thank you.

    ### WordPress Environment ###

    WordPress address (URL): [Redacted]
    Site address (URL): [Redacted]
    WC Version: 9.0.2
    Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
    Action Scheduler Version: ? 3.7.4
    Log Directory Writable: ?
    WP Version: 6.5.5
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: –
    Language: en_NZ
    External object cache: ?

    ### Server Environment ###

    Server Info: Apache/2.4.59 (Debian)
    PHP Version: 8.0.30
    PHP Post Max Size: 499 MB
    PHP Time Limit: 899
    PHP Max Input Vars: 2500
    cURL Version: 7.64.0
    OpenSSL/1.1.1n

    SUHOSIN Installed: –
    MySQL Version: 10.4.34-MariaDB-1:10.4.34+maria~deb10-log
    Max Upload Size: 499 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    ### Database ###

    [REDACTED]

    ### Post Type Counts ###

    acf-field: 103
    acf-field-group: 19
    ae_global_templates: 13
    ang_tokens: 1
    attachment: 147
    custom_css: 1
    elementor_cf_db: 8
    elementor_library: 37
    event: 3
    initiatives: 7
    jet-woo-builder: 8
    llms_coupon: 1
    llms_form: 3
    llms_voucher: 1
    member-update: 2
    nav_menu_item: 45
    oembed_cache: 3
    page: 23
    post: 14
    product: 14
    product_variation: 1
    resources: 3
    revision: 3735
    shop_coupon: 2
    shop_order_placehold: 8
    support: 5
    tec_tc_ticket: 3
    testimonials: 4
    ticket-meta-fieldset: 2
    tribe_events: 11
    tribe_organizer: 1
    tribe_rsvp_attendees: 91
    tribe_rsvp_tickets: 11
    tribe_venue: 3
    tribe_wooticket: 10
    wp_block: 6
    wp_navigation: 1
    wpcode: 2

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (39) ###

    ManageWP - Worker: by GoDaddy – 4.9.20
    Advanced Custom Fields PRO: by WP Engine – 6.3.3
    AnyWhere Elementor Pro (Premium): by WP Vibes – 2.27
    Autocomplete WooCommerce Orders: by QuadLayers – 3.3.2
    Breeze: by Cloudways – 2.1.11
    Custom Post Type UI: by WebDevStudios – 1.17.1
    Image Placeholders: by WordPress Performance Team – 1.1.1
    DynamicConditions: by RTO GmbH – 1.6.3
    Elementor Pro: by Elementor.com – 3.22.1
    Elementor: by Elementor.com – 3.22.3
    Event Tickets Plus: by The Events Calendar – 5.10.2
    Event Tickets: by The Events Calendar – 5.11.0.4
    Imsanity: by Exactly WWW – 2.8.4
    WPCode Lite: by WPCode – 2.1.14
    JetWooBuilder For Elementor: by Crocoblock – 2.1.11
    LifterLMS: by LifterLMS – 7.6.3
    MalCare WordPress Security Plugin - Malware Scanner, Cleaner, Security Firewall: by MalCare Security – 5.56
    Members: by MemberPress – 3.2.9
    Office 365 Outlook Room Booking: by wpintegrate.com – 1.4
    Office 365: by wpintegrate.com – 3.8
    Object Cache Pro: by Rhubarb Group – 1.21.1
    Paid Memberships Pro: by Paid Memberships Pro – 3.0.6
    Performance Lab: by WordPress Performance Team – 3.2.0
    Paid Memberships Pro - Custom Post Type Add On: by Paid Memberships Pro – 1.0.1
    Paid Memberships Pro - Events Add On: by Paid Memberships Pro – 1.4
    Paid Memberships Pro - Set Expiration Dates Add On: by Stranger Studios – 0.6.1
    Paid Memberships Pro - WooCommerce Add On: by Paid Memberships Pro – 1.9.1
    Redirection: by John Godley – 5.4.2
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.6
    Contact Form DB - Elementor: by Web Ace Tech Services – 1.8.1
    Event Tickets Extension: Members Only Tickets: by The Events Calendar – 1.0.3
    The Events Calendar: by The Events Calendar – 6.5.1.5
    Modern Image Formats: by WordPress Performance Team – 2.0.1
    WooCommerce Checkout Manager: by QuadLayers – 7.5.3
    WooCommerce Stripe Gateway: by WooCommerce – 8.4.0
    WooCommerce: by Automattic – 9.0.2
    Wordfence Security: by Wordfence – 7.11.6
    Yoast SEO: by Team Yoast – 23.0
    WP Mail SMTP Pro: by WP Mail SMTP – 4.0.2

    ### Inactive Plugins (2) ###

    Paid Memberships Pro - Courses for Membership Add On: by Paid Memberships Pro – 1.2.5
    WP Mail SMTP: by WP Mail SMTP – 4.0.1

    ### Dropin Plugins () ###

    advanced-cache.php: advanced-cache.php
    object-cache.php: Object Cache Pro (Drop-in)

    ### Must Use Plugins (1) ###

    ManageWP - Worker Loader: by GoDaddy –

    ### Settings ###

    API Enabled: –
    Force SSL: –
    Currency: NZD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)

    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)

    Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories: ?
    HPOS feature enabled: ?
    Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
    HPOS data sync enabled: –

    ### Logging ###

    Enabled: ?
    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
    Retention period: 30 days
    Level threshold: –
    Log directory size: 585 KB

    ### WC Pages ###

    Shop base: ? Page visibility should be public
    Cart: #938 - /cart/
    Checkout: #939 - /checkout/
    My account: #940 - /my-account/
    Terms and conditions: ? Page not set

    ### Theme ###

    Name: Hello Elementor Child
    Version: 1.0.0
    Author URL: https://elementor.com/
    Child Theme: ?
    Parent Theme Name: Hello Elementor
    Parent Theme Version: 3.1.0
    Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    WooCommerce Support: ?

    ### Templates ###

    Overrides: /home/196840.cloudwaysapps.com/wtdymgxzdd/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/cart/cart-empty.php
    /home/196840.cloudwaysapps.com/wtdymgxzdd/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/cart/cart.php
    /home/196840.cloudwaysapps.com/wtdymgxzdd/public_html/wp-content/plugins/jet-woo-builder/templates/woocommerce/myaccount/my-account.php


    ### Admin ###

    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customize-store
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    product-custom-fields
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page

    Disabled Features: minified-js
    new-product-management-experience
    pattern-toolkit-full-composability
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    launch-your-store
    product-editor-template-system

    Daily Cron: ? Next scheduled: 2024-07-11 19:40:55 +12:00
    Options: ?
    Notes: 83
    Onboarding: completed

    ### Action Scheduler ###

    Complete: 186
    Oldest: 2024-06-10 17:01:42 +1200
    Newest: 2024-07-11 14:30:13 +1200

    Failed: 10
    Oldest: 2024-01-19 00:02:08 +1300
    Newest: 2024-04-22 09:51:40 +1200

    Pending: 4
    Oldest: 2024-07-11 16:10:10 +1200
    Newest: 2024-07-15 02:20:10 +1200


    ### Status report information ###

    Generated at: 2024-07-11 15:56:18 +12:00

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello lisapearsonnz

    Thank you for contacting Woo support.

    There is no need to apologize.
    We are here to support you.
    If it is not in our domain, we will guide you to the correct place.

    The users have editor/shop manager roles.
    This means they must have limited access to the page.

    Could you share a full-page screenshot of the page where users are blocked access?
    You will need to use a user that has access to the page.

    Once I have more information, I will be happy to guide you further.
    Looking forward to your response. ??

    Best regards.

    Thread Starter lisapearsonnz

    (@lisapearsonnz)

    Hi Zubair, thank you for your respose.

    I have my own account, assigned the same roles as the user and can see the same error: https://imgur.com/a/adbtYTC

    I have updated and can confirm that all roles assigned to the user (editor, shop manager, and looks like theres a custom role assigned as well, which is used to grant access to other parts of wordpress like the customizer and menus) have granted access to the membership pro settings. https://imgur.com/Cn2Xry0 Thou even with these settings updated , I’m still getting the error.

    Hopefully this helps. Any more additional info you need please let me know. ??

    Thank you for reaching back, with further details on this @lisapearsonnz .

    have granted access to the membership pro settings.?https://imgur.com/Cn2Xry0?Thou even with these settings updated , I’m still getting the error.

    The issue reported in this thread is related to different user roles having access to areas of the site where you don’t want them to. Am I getting this?

    I went ahead with investigating the site’s System Status Report (SSR), and it appears the following membership-related plugin(s) are currently active:

    • Paid Memberships Pro: by Paid Memberships Pro – 3.0.6
    • Paid Memberships Pro – Custom Post Type Add On: by Paid Memberships Pro – 1.0.1
    • Paid Memberships Pro – Events Add On: by Paid Memberships Pro – 1.4
    • Paid Memberships Pro – Set Expiration Dates Add On: by Stranger Studios – 0.6.1
    • Paid Memberships Pro – WooCommerce Add On: by Paid Memberships Pro – 1.9.1

    Feel free to reach out to its support channel (linked here), as they would be in a better position to assist you.

    I trust that points you in the right direction, but if you have more questions, let us know.

    We’re happy to help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.