• Official MailerLite Sign Up Forms

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Cannot redeclare class ML_Lists in /var/www/html/wp-content/plugins/official-mailerlite-sign-up-forms/libs/mailerlite_rest/ML_Lists.php on line 40

Viewing 2 replies - 1 through 2 (of 2 total)
  • Are you also using the WooCommerce Advanced Newsletter (WAN) plugin?
    I’m having this issue too, and it’s because both plugins call/declare the same class.

    OK, I found a solution thanks to MailerLite support.
    The problem is indeed double identical class names.

    Follow these steps:
    1. Open class-integration-advance-newsletter.php in WAN plugin
    2. Try to comment out lines 38 and 42 (see below) where MailerLite classes are included:
    include_once( ‘api/class-mailerlite-list.php’ );
    include_once( ‘api/class-mailerlite-subscribe.php’ );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error when activating plugin’ is closed to new replies.