woocommerce-external-product-embed icon indicating copy to clipboard operation
woocommerce-external-product-embed copied to clipboard

There has been a critical error on this website.

Open lanemello opened this issue 2 years ago • 5 comments

Hello, I have the following error when saving. There has been a critical error on this website. Please check your site admin email inbox for instructions.

lanemello avatar Sep 17 '22 20:09 lanemello

Hard to say what went wrong without a more specific error message, but my guess is that you need to download from the releases page and not clone the repo: https://github.com/WPprodigy/woocommerce-external-product-embed#installation

WPprodigy avatar Sep 19 '22 18:09 WPprodigy

This is really simple. This is because the plugin is not compatible with PHP 8.x. We are able to run it just fine on every site up to 7.4, but with 7.4 no longer being supported, we are forced to 8.x starting November 7th.

I hope someone will fix this, as we use it on a couple of dozen Affiliate sites.

The exact error is:

Fatal error: Cannot redeclare WCEPE() (previously declared in /srv/htdocs/wp-content/plugins/woocommerce-external-product-embed/woocommerce-external-product-embed.php:112) in /srv/htdocs/wp-content/plugins/woocommerce-external-product-embed-master/woocommerce-external-product-embed.php on line 111

csgaraglino avatar Sep 27 '22 17:09 csgaraglino

Looks like you might have the plugin installed in two different places and enabled twice?

  • /plugins/woocommerce-external-product-embed/
  • plugins//woocommerce-external-product-embed-master/

WPprodigy avatar Sep 27 '22 21:09 WPprodigy

Interesting I didn't catch that and I don't know how/why there were two directories. I did remove both and reinstalled, and of course it's working! Sorry for the trouble.

csgaraglino avatar Sep 27 '22 23:09 csgaraglino

No worries :)

WPprodigy avatar Sep 28 '22 15:09 WPprodigy