• Resolved Joe Bailey

    (@billybidley)


    The new 5.0.0 update has broken the plugin:

    PHP Fatal error: Uncaught Error: Class 'WC_Payments_Admin_Settings' not found in /var/www/htdocs/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php:572"

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • manu.p

    (@manup-1)

    Hi, same issue here!

    Here’s what I get when I try to log in as WP admin:
    Fatal error: Uncaught Error: Class "WC_Payments_Admin_Settings" not found in /homepages/18/d319076814/htdocs/lpp/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php:572 Stack trace: #0 /homepages/18/d319076814/htdocs/lpp/wp-includes/class-wp-hook.php(308): WC_Payments_Account->maybe_redirect_to_onboarding('') #1 /homepages/18/d319076814/htdocs/lpp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #2 /homepages/18/d319076814/htdocs/lpp/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /homepages/18/d319076814/htdocs/lpp/wp-admin/admin.php(175): do_action('admin_init') #4 /homepages/18/d319076814/htdocs/lpp/wp-admin/index.php(10): require_once('/homepages/18/d...') #5 {main} thrown in /homepages/18/d319076814/htdocs/lpp/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php on line 572

    Had to log in in recovery mode and deactivate Woocommerce Payments.
    Will I have to unactivate automatic updates for woocommerce plugins? I’m afraid yes…

    • This reply was modified 2 years ago by manu.p.
    BenR

    (@brajno)

    Same

    brunoairam

    (@brunoairam)

    +1 Same prob here.

    If I may add something: I use Advanced Access Manager and the problem seems to arise only for certain specific roles.

    For full admin roles, there’s no issue logging in.

    I rolled back to 4.9.0 thanks to WP Rollback plugin waiting for a fix. I’ve disabled auto updates for this plugin too.

    Please keep us posted when fix has been found. Thanks.

    • This reply was modified 2 years ago by brunoairam.
    manu.p

    (@manup-1)

    Thanks @brunoairam for the tip about WP Rollback. Worked perfectly.

    brunoairam

    (@brunoairam)

    You’re welcome ;).

    mattlarmstrong

    (@mattlarmstrong)

    There’s a 5.0.1 update that fixes this issue.

    Hi @billybidley @manup-1 @brajno @brunoairam

    Thanks for reaching out!

    Firstly, I apologize for the delayed response on our end.

    As suggested by @mattlarmstrong have you tried to update the plugin to version 5.0.1 which fixed this issue?

    Thanks!

    bradwebb66

    (@bradwebb66)

    It doesn’t fix the issue, as 5.0.2 still creates fatal errors:

    2022-11-09T16:48:06+00:00 CRITICAL Uncaught Error: Class 'WC_Payments_Admin_Settings' not found in /home/comixpoc/public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php:572
    Stack trace:
    #0 /home/comixpoc/public_html/wp-includes/class-wp-hook.php(308): WC_Payments_Account->maybe_redirect_to_onboarding('')
    #1 /home/comixpoc/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #2 /home/comixpoc/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/comixpoc/public_html/wp-admin/admin-post.php(30): do_action('admin_init')
    #4 {main}
      thrown in /home/comixpoc/public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php on line 572

    Hi @bradwebb66

    I checked the Github repository and found that there is an open issue about this bug that was already reported here: https://github.com/Automattic/woocommerce-payments/issues/5096

    I suggest subscribing to the thread to keep posted for updates.

    Thanks!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    5.0.1 had fixed this issue, but it seems to be back with 5.1. According to the open issue in github, it appears to be caused by some pages checking for “Manage Woocommerce” privileges and failing if the user doesn’t have them.

    The problem is that I’m a full administrator with "manage_woocommerce": true, and I get the same error.

    Hi there @mattlarmstrong

    The problem is that I’m a full administrator with “manage_woocommerce”: true, and I get the same error.

    Thank you for clarifying further.

    5.0.1 had fixed this issue, but it seems to be back with 5.1.

    Indeed, version 5.0.1 addressed this issue specifically, according to the changelog.

    Meanwhile, from your last response in this thread, two more minor releases were made available. Could you go ahead with updating, please? Let us know how that goes!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘WC_Payments_Admin_Settings not found’ is closed to new replies.