Automattic / wc-calypso-bridge

20 stars 4 forks source link

Deactivate tiktok-for-woocommerce if tiktok-for-business is active #1373

Closed PanosSynetos closed 9 months ago

PanosSynetos commented 11 months ago

A user is on the business plan and has installed tiktok-for-business

When they upgrade to the ecommerce plan, we install tiktok-for-woocommerce which causes a fatal error

Fatal error: Cannot declare class Tt4b_Mapi_Class, because the name is already in use in /wordpress/plugins/tiktok-for-woocommerce/1.2.2/mapi/Tt4b_Mapi_Class.php on line 15

See discussion in Slack p1700391999867779-slack-C02Q5922VGC

Those two plugins are the same, but one is on wccom and the other on work, with different slugs.

I suggest we deactivate tiktok-for-woocommerce if both plugins are installed and active

Nic-Sevic commented 9 months ago

another instance of this here: p1705996894991119-slack-C03TY6J1A

It seems like the fatal caused by the two might have been preventing JP from showing the plan correctly (due to breaking JP) but this might also be due to how the introductory offers are set up

PanosSynetos commented 9 months ago

@Nic-Sevic this is merged, and will be released tomorrow