• Resolved jester1470

    (@jester1470)


    Hopefully someone has some ideas and I’m asking in the right place, we used to have Woocommerce and payments working fine, then the website crashed with: There has been a critical error on this website. Please check your site admin email inbox for instructions. I had to go into the ftp to change the plugin folder to get access. Since I got back in I deleted most things and disconnected everything except woocommerce, woopayments and jetpack. Everything seems to be working until I try to turn off the sandbox and I get: There has been a critical error on this website. Please check your site admin email inbox for instructions. again – no idea why, everything used to work OK, I tried changing the theme in case it was something to do with that and it still didn’t work. I don’t know much about these kind of things so any help would be appreciated.

    Given some very kind advice on another site I ran wp debug and got the following:

    Uncaught WCPay\Exceptions\API_Exception: Error: Error deleting account. Unable to delete live accounts which have completed onboarding. in /home/storage/564/3465564/user/htdocs/wp-content/plugins/woocommerce-payments/includes/wc-payment-api/class-wc-payments-api-client.php:2037 Stack trace: #0 /home/storage/564/3465564/user/htdocs/wp-content/plugins/woocommerce-payments/includes/wc-payment-api/class-wc-payments-api-client.php(1851): WC_Payments_API_Client->check_response_for_errors(Array) #1 /home/storage/564/3465564/user/htdocs/wp-content/plugins/woocommerce-payments/includes/wc-payment-api/class-wc-payments-api-client.php(2479): WC_Payments_API_Client->request(Array, ‘accounts/delete’, ‘POST’, true, true) #2 /home/storage/564/3465564/user/htdocs/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-account.php(1031): WC_Payments_API_Client->delete_account(true) #3 /home/storage/564/3465564/user/htdocs/wp-includes/class-wp-hook.php(324): WC_Payments_Account->maybe_handle_onboarding(”) #4 /home/storage/564/3465564/user/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /home/storage/564/3465564/user/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/storage/564/3465564/user/htdocs/wp-admin/admin.php(175): do_action(‘admin_init’) #7 {main} thrown in /home/storage/564/3465564/user/htdocs/wp-content/plugins/woocommerce-payments/includes/wc-payment-api/class-wc-payments-api-client.php on line 2037

    Which is a lot to try and get my head rounds – not sure if this gives anyone any ideas of where I can start –

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @jester1470,

    From the error message you’ve shared, it looks like the issue is coming from an unsuccessful attempt to delete a live account that has completed on-boarding. WooPayments does not allow deletion of such accounts for security and data integrity reasons.

    Additionally, if you have debug or dev mode enabled, then you need to disable it first, as explained here: https://woo.com/document/woopayments/testing-and-troubleshooting/sandbox-mode/

    If you are still having problems, please open a ticket about this from Woo.com > My profile > Support. Make sure to include a link to this thread, so we know what has been done already.

    Thanks!

    Thread Starter jester1470

    (@jester1470)

    I haven’t been trying to delete anything though just reconnect it, when my website had a critical failure I disconnected everything and reinstalled everything, which got it working but this happening. Do you know why it thinks I’m trying to delete things? I just want it working as it was before the critical failure and it works fine in sandbox but does this when I switch it off, it looks like it’s seeing the previous account ok until I try to turn off sandbox.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @jester1470,

    It’s possible that the system is misunderstanding your reconnection attempt as a deletion request. This could be due to some residual data or settings from the previous installation.

    To rectify this, you might need to try clearing your site’s cache and WooPayment cache and ensuring that all your plugins, themes, and WordPress are up-to-date.

    If the issue persists, I recommend you open a support ticket via Woo.com > My profile > Support, and provide a link to this thread. This will enable our support team to understand the issue better and provide a more specific solution.

    Thank you for your patience and cooperation.

    Hello support, this issue is related to many duplicate orders from our site. Hope someone can help me fix the problem

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi there @jiji2023,

    As per the forum rules, I suggest that you start a new thread with your case, so that we don’t mix several troubleshooting sessions in one thread.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce causing critical error’ is closed to new replies.