• Hopefully someone has some ideas andfI’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.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator threadi

    (@threadi)

    The reason for the error should be visible in the error log. You can find it in your hosting area. If necessary, the support of your hosting can help you.

    Alternatively, you could also enable debugging in WordPress. How to do this is described here: https://wordpress.org/support/article/debugging-in-wordpress/ – also here the support of your hosting can help you if necessary to edit the file accordingly.

    In both cases you should be able to see what the cause is in the logfile.

    Thread Starter jester1470

    (@jester1470)

    Thanks, the debugging came up with:
    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 –

    Moderator James Huff

    (@macmanx)

    I recommend getting in touch with WooCommerce’s support about this via https://woo.com/my-account/contact-support/ if you have any of their paid WooCommerce products or https://wordpress.org/support/plugin/woocommerce-payments/ if you do not.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Woocommerce causing critical error’ is closed to new replies.