Title: Cannot Activate
Last modified: June 17, 2021

---

# Cannot Activate

 *  Resolved [jjfc](https://wordpress.org/support/users/jjfc/)
 * (@jjfc)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/cannot-activate-55/)
 * Does this plugin support multisite?
 * I am getting an error when activating the plugin
    “Plugin could not be activated
   because it triggered a fatal error. Woo Manage Fraud Orders depends on WooCommerce
   to work!”

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [prasidhda](https://wordpress.org/support/users/prasidhda/)
 * (@prasidhda)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/cannot-activate-55/#post-14569189)
 * Hi [@jjfc](https://wordpress.org/support/users/jjfc/) ,
 * Do you have the “WooCommerce” plugin installed ? This plugin doesn’t work if 
   your site doesn’t have “WooCommerce”.
 * Thanks
 *  Plugin Contributor [Brian Henry](https://wordpress.org/support/users/brianhenryie/)
 * (@brianhenryie)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/cannot-activate-55/#post-14637377)
 * It’s not good practice to trigger a fatal error (or to use `die` or `exit`).
 * `trigger_error() found. Debug code should not normally be used in production.(
   WordPress.PHP.DevelopmentFunctions.error_log_trigger_error)`
 * Imagine you’re troubleshooting a problem on a site. You disable all the plugins,
   address the cause of the problem and are about to re-enable all the plugins. 
   So you select-all on the plugins screen, and choose enable. Any plugins that 
   come alphabetically before WooCommerce will be activated before it. If they check
   for WooCommerce and trigger a fatal error, the process stops and no further plugins
   are activated, even though the user wanted to activate all their plugins including
   WooCommerce.
 * I’ve had this happen on a live site and it just added to the stress of fixing
   the issue.
 * So why do plugins do this check? It’s partly so WooCommerce’s functions (e.g.`
   wc_get_order()`) aren’t accessed when WooCommerce’s files have not been loaded.
   The correct way to get around this is to use WooCommerce’s hooks – i.e. you can
   safely infer that WooCommerce is loaded when your code is running on the ‘woocommerce_process_shop_order_meta’
   hook!
 * If a plugin wants to communicate to a user that a required plugin is missing,
   a much better way is to use an admin notice. Even then, I don’t think a plugin
   like this, with “Woo” in its name, really needs to tell the users they need WooCommerce!
 * I’ll open a PR to remove this if it’s welcome.
 *  Plugin Author [prasidhda](https://wordpress.org/support/users/prasidhda/)
 * (@prasidhda)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/cannot-activate-55/#post-14661305)
 * Hi [@jjfc](https://wordpress.org/support/users/jjfc/) ,
 * You were right. There is issue with the plugin while trying to activate on the
   multisite.
    I will address that in the very next release.
 * Thanks
 *  Plugin Author [prasidhda](https://wordpress.org/support/users/prasidhda/)
 * (@prasidhda)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/cannot-activate-55/#post-14662569)
 * Hi [@jjfc](https://wordpress.org/support/users/jjfc/) ,
 * This issue has been fixed in latest version 2.1.1.
 * Many thanks for your bug report.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Cannot Activate’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-manage-fraud-orders_7c4c73.svg)
 * [Woo Manage Fraud Orders](https://wordpress.org/plugins/woo-manage-fraud-orders/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-manage-fraud-orders/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-manage-fraud-orders/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-manage-fraud-orders/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-manage-fraud-orders/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-manage-fraud-orders/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [prasidhda](https://wordpress.org/support/users/prasidhda/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/cannot-activate-55/#post-14662569)
 * Status: resolved