Cannot login to Admin
-
When the WooCommerce updated to 6.6.0 I cannot login to my admin dashboard
-
What happens when you try to log in? Is there any error message on the screen?
Error: There has been a critical error on this website. Please check your site admin email inbox for instructions.
Yesterday I faced the same error. Then I do restore my backup and sort it out.
I got to know that when WooCommerce update to the latest one, I am facing this kind error.Error: There has been a critical error on this website. Please check your site admin email inbox for instructions.
Did you receive the email? If not, did you check your spam folder just to be sure it’s not there? If you DID receive the email, what does the email say? It should tell you what caused the problem.
The following are the details received on the email. I couldn’t understand these.
Error Details
=============
An error of type E_ERROR was caused in line 51 of the file /home/u999708037/domains/vmpetsmart.com/public_html/wp-content/plugins/woocommerce/src/Internal/Utilities/HtmlSanitizer.php. Error message: Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\Internal\Utilities\HtmlSanitizer::sanitize() must be of the type string, null given, called in /home/u999708037/domains/vmpetsmart.com/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-payment-gateway.php on line 308 and defined in /home/u999708037/domains/vmpetsmart.com/public_html/wp-content/plugins/woocommerce/src/Internal/Utilities/HtmlSanitizer.php:51
Stack trace:
#0 /home/u999708037/domains/vmpetsmart.com/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-payment-gateway.php(308): Automattic\WooCommerce\Internal\Utilities\HtmlSanitizer->sanitize(NULL, Array)
#1 /home/u999708037/domains/vmpetsmart.com/public_html/wp-content/plugins/woo-wallet/includes/class-woo-wallet-settings.php(313): WC_Payment_Gateway->get_title()
#2 /home/u999708037/domains/vmpetsmart.com/public_html/wp-content/plugins/woo-wallet/includes/class-woo-wallet-settings.php(169): Woo_Wallet_Settings->get_wc_payment_allowed_gatewaHi @vmpetsmart
Sorry for the trouble. Could you please login to your cPanel or control panel, then rename the woocommerce folder to anything like woocommerce-bk so the plugin will be deactivated? Then you’ll be able to log in to the WordPress dashboard. You could then delete the WooCommerce plugin and reinstall a fresh copy. If you still found the issue, you could do the same step again. But this time deactivate all other plugins after logging in to the dashboard. Then active those plugins one by one so you could find which plugin conflicting there.Give it a try and let me know how that goes! 😄
If delete and install new copy of WooCommerce plugin, that would delete my files?
No, your all settings are already saved on the databases. For additional safety, you may take a backup of your files.
It doesn’t help. I just restored my backup. But i need help to find why the WooCommerce update broken my WP admin
Please make a post in the Woocommerce plugin’s own support forum for the Woocommerce developers to help you: https://wordpress.org/support/plugin/woocommerce/
Good luck!
The topic ‘Cannot login to Admin’ is closed to new replies.