Multisite with Woocommerce fatals
-
wp-security-audit-log: 5.3.4.1 (Free version)
WP: 6.7.2
PHP: 8.3If you’ve got a multisite and you’ve got Woocommerce activated on one site and not all sites, when you try to edit a page you get an error.
That is because the plugin detects Woocommerce is on one site and so it thinks it runs on all sites. So if you edit a page the class-woocommerce-sensor.php is loaded and it tries to run the order_opened_for_editing() function.
There it tries to run a WooCommerce specific function, but it can’t because WooCommerce is not activated on that site resulting in a fatal error.
stack trace:
WSAL\WP_Sensors\WooCommerce_Sensor::order_opened_for_editing('')
wp-includes/class-wp-hook.php:324WP_Hook::apply_filters(NULL, array)
wp-includes/class-wp-hook.php:348WP_Hook::do_action(array)
wp-includes/plugin.php:517do_action('admin_action_edit')
wp-admin/admin.php:419require_once('/var/www/web/wp/wp-admin/admin.php')
wp-admin/post.php:12
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Multisite with Woocommerce fatals’ is closed to new replies.