Got same errors on website without Woocommerce.
Many function_exists( ‘WC’ ) controls are missing I think.
Yep, errors were on sites without WooCommerce. Didn’t have time to debug further or check through the plugin settings. Just installed previous version and that got rid of the error.
Same here on multiple sites. The error occurs when logged out and WooCommerce isn’t in use on this installation.
Same here, when not using WooCommerce:
In Matomo Settings -> General Tracking Settings, disabling “Enable ecommerce” solves the problem.
On another site with WooCommerce, there are no error
We have the same error on all pages where the plugin is installed.
Version 5.3.2
We did a temp fix with mu-plugins/
namespace WpMatomo\Ecommerce;
// no emojis in comments
if (!function_exists(__NAMESPACE__ . ‘\WC’)) {
function WC() {
return function_exists(‘\WC’) ? \WC() : null;
}
}
-
This reply was modified 4 months ago by
drZivil.
Version 5.3.1 does not have the issue.
So staying on it/reverting back to it will also work in the meantime. This can be downloaded from the plugin’s page with the advanced view.
Version 5.3.1 does not have the issue.
I can confirm that downgrading to v5.3.1 fixed the issue.
Same problem that others have mentioned after update.
Same here. This issue appeared with an auto update to Matomo 5.3.2 and crashed my sites.
Our apologies, we’ll fix this ASAP.
Can you check if version 5.3.3 solves the issue for you?
@dizzyatinnocraft 5.3.3 seems to solve the issue.
@dizzyatinnocraft 5.3.3 works for me too
Thanks with the quick fix!
Great! I will mark this as resolved.