Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Woocommerce "Add to Cart" cause PHP Fatal Error #47

Open
flystax opened this issue Oct 9, 2014 · 1 comment
Open

Woocommerce "Add to Cart" cause PHP Fatal Error #47

flystax opened this issue Oct 9, 2014 · 1 comment

Comments

@flystax
Copy link

flystax commented Oct 9, 2014

Hi there,

I downloaded the plugin and installed on my woocommerce store. Once I click the "Add to Cart" button on the products, it showed up a PHP Fatal Error, please see log below:

[Thu Oct 09 03:01:36.380979 2014] [:error] [pid 21246] PHP Fatal error: Call to undefined function WC() in /wp-content/plugins/segment-analytics/integrations/ecommerce/woocommerce.php on line 107

@JustinSainton
Copy link
Contributor

Thanks for the report, @flystax.

This sounds like there might be a weird configuration issue occurring, as the function that is called within should only ever be called after WC() is instantiated, but I think we should be able to harden this up a bit. Thanks again for the report, we'll assess a fix for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants