Woocommerce crashing WordPress Admin when activated
-
I’m trying to install Woocommerce and when activated, it crashes the WordPress admin and I see this message: There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.
I have tried deactivating all plugins and changing to the default theme; nothing works.
PHP version is 8.2
Woocommerce version is 9.7.1
WordPress version is 6.7.2
When I log into the admin in recovery mode, the following displays with the Woocommerce plugin:
This plugin failed to load properly and is paused during recovery mode.
An error of type
E_ERRORwas caused in line450of the file/var/www/wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentProviders/PaymentGateway.php. Error message:Uncaught TypeError: Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders\PaymentGateway::get_plugin_file(): Return value must be of type string, bool returned in /var/www/wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentProviders/PaymentGateway.php:450 Stack trace: #0 /var/www/wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentProviders/PaymentGateway.php(35): Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders\PaymentGateway->get_plugin_file(Object(GoDaddy\WordPress\MWC\Core\WooCommerce\Payments\GoDaddyPaymentsGateway), 'vendor') #1 /var/www/wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentProviders.php(186): Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders\PaymentGateway->get_details(Object(GoDaddy\WordPress\MWC\Core\WooCommerce\Payments\GoDaddyPaymentsGateway), 6, 'US') #2 /var/www/wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentProviders.php(167): Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders->get_payment_gateway_base_details(Object(GoDaddy\WordPress\MWC\Core\WooCommerce\Payments\GoDaddyPaymentsGateway), 6, 'US') #3 /var/www/wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php(104): Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders->get_payment_gateway_details(Object(GoDaddy\WordPress\MWC\Core\WooCommerce\Payments\GoDaddyPaymentsGateway), 6, 'US') #4 /var/www/wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsController.php(212): Automattic\WooCommerce\Internal\Admin\Settings\Payments->get_payment_providers('US') #5 /var/www/wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsController.php(122): Automattic\WooCommerce\Internal\Admin\Settings\PaymentsController->store_has_providers_with_incentive() #6 /var/www/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\Settings\PaymentsController->add_menu('') #7 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #8 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /var/www/wp-admin/includes/menu.php(161): do_action('admin_menu', '') #10 /var/www/wp-admin/menu.php(412): require_once('/var/www/wp-adm...') #11 /var/www/wp-admin/admin.php(158): require('/var/www/wp-adm...') #12 /var/www/wp-admin/index.php(10): require_once('/var/www/wp-adm...') #13 {main} thrownPlease help!
Thanks,
Cindy
The topic ‘Woocommerce crashing WordPress Admin when activated’ is closed to new replies.