Title: [Critical Error] Problem when activating the plugin
Last modified: September 19, 2019

---

# [Critical Error] Problem when activating the plugin

 *  [sanfrhkjzfcg](https://wordpress.org/support/users/sanfrhkjzfcg/)
 * (@sanfrhkjzfcg)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/critical-error-problem-when-activating-the-plugin/)
 * Hi
 * Whenever I try to activate the plugin, my website shows a massage about critical
   error. this is what I get in recovery mode about the error :
 * Error details
    ===================
 * error type : E_ERROR from the line 280 of this file :
    /home/mywebsite/public_html/
   wp-content/plugins/woo-mailerlite/includes/shared/mailerlite-wp-functions.php
 * error : Uncaught Error: Call to undefined method
 * MailerLiteApi\MailerLite::woocommerce() in /home/mywebsite/public_html/wp-content/
   plugins/woo-mailerlite/includes/shared/mailerlite-wp-functions.php:280
 * Stack trace:
    #0 /home/mywebsite/public_html/wp-content/plugins/woo-mailerlite/
   includes/class.woo-mailerlite-integration.php(272): mailerlite_wp_set_consumer_data(‘….’,‘….’,‘
   31877596’, 0) #1 /home/mywebsite/public_html/wp-content/plugins/woo-mailerlite/
   includes/class.woo-mailerlite-integration.php(36): Woo_Mailerlite_Integration-
   >update_selected_group() #2 /home/mywebsite/public_html/wp-content/plugins/woocommerce/
   includes/class-wc-integrations.php(37): Woo_Mailerlite_Integration->__construct()#
   3 /home/mywebsite/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.
   php(547): WC_Integrations->__construct() #4 /home/mywebsite/public_html/wp-includes/
   class-wp-hook.php(286): WooCommerce->init(”) #5 /home/mywebsite/public_html/wp-
   includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #6 /home/
   m

Viewing 1 replies (of 1 total)

 *  [loveunitesus](https://wordpress.org/support/users/loveunitesus/)
 * (@loveunitesus)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/critical-error-problem-when-activating-the-plugin/#post-12283457)
 * I’m getting the same. Critical error when activating plug-in via either manual
   upload or upload via inbuilt wordpress plug-in archive. IT downloads ok but once
   activated the error occurs.
 * Certainly a big issue going on had to login via FTP and delete the plugin to 
   get my site working again.
 * Please reply to help me and the bloke that started this topic!

Viewing 1 replies (of 1 total)

The topic ‘[Critical Error] Problem when activating the plugin’ is closed to new
replies.

 * ![](https://ps.w.org/woo-mailerlite/assets/icon-256x256.png?rev=3083985)
 * [MailerLite - WooCommerce integration](https://wordpress.org/plugins/woo-mailerlite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-mailerlite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-mailerlite/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-mailerlite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-mailerlite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-mailerlite/reviews/)

## Tags

 * [critical error](https://wordpress.org/support/topic-tag/critical-error/)

 * 1 reply
 * 1 participant
 * Last reply from: [loveunitesus](https://wordpress.org/support/users/loveunitesus/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/critical-error-problem-when-activating-the-plugin/#post-12283457)
 * Status: not resolved