Title: Can&#039;t active plugin
Last modified: August 31, 2016

---

# Can't active plugin

 *  Resolved [mike10](https://wordpress.org/support/users/mike10/)
 * (@mike10)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/cant-active-plugin/)
 * I getting Warning : Install/Activate Woocommerce to activate “Embed Videos To
   Product
    Image Gallery” plugin.
 * How can I fix it or find out what’s going wrong?
 * Thank you!
 * [https://wordpress.org/plugins/woocommerce-embed-videos-to-product-image-gallery/](https://wordpress.org/plugins/woocommerce-embed-videos-to-product-image-gallery/)

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

 *  [dschiedel](https://wordpress.org/support/users/dschiedel/)
 * (@dschiedel)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/cant-active-plugin/#post-6943750)
 * I’m having the same issue. Woocommerce is enabled on my site as well.
 *  Plugin Author [ZealousWeb](https://wordpress.org/support/users/zealopensource/)
 * (@zealopensource)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/cant-active-plugin/#post-6943764)
 * Hello,
 * This message will be showed only when WooCommerce will not be enabled. Please
   recheck it.
 * Thanks,
    ZealousWeb
 *  [tomaslee](https://wordpress.org/support/users/tomaslee/)
 * (@tomaslee)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/cant-active-plugin/#post-6943814)
 * I found solution how to fix it.
 * Into woocommerce-embed-videos-product-image-gallery.php file into plugin folder
   
   update these lines of code
 *     ```
       if ( !in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
           wp_die( __( '<b>Warning</b> : Install/Activate Woocommerce to activate "Embed Videos To Product Image Gallery" plugin', 'woocommerce' ) );
       }
       ```
   
 * on to
 *     ```
       include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
   
       if ( !is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
           wp_die( __( '<b>Warning</b> : Install/Activate Woocommerce to activate "Embed Videos To Product Image Gallery" plugin', 'woocommerce' ) );
       }
       ```
   
 *  Plugin Author [ZealousWeb](https://wordpress.org/support/users/zealopensource/)
 * (@zealopensource)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/cant-active-plugin/#post-6943869)
 * Hello tomaslee,
 * Thank you for your help and cooperation in solving this issue. We will sort it
   out in next release version.
 * Thanks,
    ZealousWeb

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

The topic ‘Can't active plugin’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-embed-videos-to-product-image-gallery/assets/
   icon-256x256.png?rev=3240614)
 * [Embed Videos For Product Image Gallery Using WooCommerce](https://wordpress.org/plugins/woocommerce-embed-videos-to-product-image-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-embed-videos-to-product-image-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-embed-videos-to-product-image-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-embed-videos-to-product-image-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-embed-videos-to-product-image-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-embed-videos-to-product-image-gallery/reviews/)

## Tags

 * [activate](https://wordpress.org/support/topic-tag/activate/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 4 replies
 * 4 participants
 * Last reply from: [ZealousWeb](https://wordpress.org/support/users/zealopensource/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/cant-active-plugin/#post-6943869)
 * Status: resolved