• Resolved shyfrog

    (@shyfrog)


    Hello,

    All roles (Administrator, Subscriber) in WP are working when this plugin is activated (I rolled out the new update today and this began happening) but the Editor role does not. When an editor role tries to log in they get:
    “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    If I deactivate the plugin, everything works fine for all roles.

    And here is the dump:

    Error Details
    =============
    An error of type E_ERROR was caused in line 572 of the file /home/abre/public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php. Error message: Uncaught Error: Class "WC_Payments_Admin_Settings" not found in /home/abre/public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php:572
    Stack trace:
    #0 /home/abre/public_html/wp-includes/class-wp-hook.php(308): WC_Payments_Account->maybe_redirect_to_onboarding('')
    #1 /home/abre/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #2 /home/abre/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/abre/public_html/wp-admin/admin.php(175): do_action('admin_init')
    #4 /home/abre/public_html/wp-admin/edit.php(10): require_once('/home/abre/publ...')
    #5 {main}
      thrown
Viewing 2 replies - 1 through 2 (of 2 total)
  • BenR

    (@brajno)

    Same here

    anastas10s

    (@anastas10s)

    Howdy @shyfrog and @brajno ??

    Editor Role stops working with new update

    Thanks for reaching out about this! From what I gather, a “There has been a critical error on this website. Please check your site admin email inbox for instructions.” message appears when a user with Editor role tries to access their account.

    Could you make sure your sites are running the latest version of the plugin, please? It is currently version 5.0.1.

    While trying to replicate this, on a test installation of mine, I was not able to replicate this. My test setup details are as follows:

    ### WordPress Environment ###
    
    WC Version: 7.1.0
    REST API Version: ? 7.1.0
    WC Blocks Version: ? 8.7.5
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.1
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.33
    PHP Post Max Size: 256 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 3000
    cURL Version: 7.66.0
    OpenSSL/1.1.1q-fips
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.39-42-log
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    and

    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (2) ###
    
    WooCommerce Payments: by Automattic – 5.0.1
    WooCommerce: by Automattic – 7.1.0
    
    ### Inactive Plugins (0) ###

    I was able to access the site with either an Administrator, a Subscriber and an Editor account, without a hiccup. Both through the /wp-admin or the /my-account login screens.

    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select Get system report and then Copy for support.?

    Additionally, could you also provide us with the fatal error logs (if any) under WooCommerce > Status > Logs.

    Once you’ve copied each, you can either paste them in your response here, or use https://pastebin.com/ for pasting it there and sharing it with us.

    Looking forward to hearing from you!

    • This reply was modified 2 years ago by anastas10s. Reason: rephrase
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Editor Role stops working with new update’ is closed to new replies.