Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi charmedchicken,

    This may happen when another plugin tries to include Mailchimp default library.

    Fortunately, solution is really simple: all you have to do is open wp-content/plugins/yith-woocommerce-mailchimp/init.php and change line 76 from this

    require_once( YITH_WCMC_INC . 'mailchimp/Mailchimp.php' );

    to this

    if( ! class_exists( 'Mailchimp' ) ) {
        require_once( YITH_WCMC_INC . 'mailchimp/Mailchimp.php' );
    }

    I will send an update as soon as possible to solve the problem; let me know if this hack solves your problem

    Thanks for your patience
    Have a nice day ??

    Thread Starter charmedchicken

    (@charmedchicken)

    Thank you. I made the change, but it seems to declare in other places in the code as well. The message remains. Thanks.

    Fatal error: Cannot redeclare class Mailchimp_Folders in …/wp-content/plugins/yith-woocommerce-mailchimp/includes/mailchimp/Mailchimp/Folders.php on line 3

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot Redclare Class upon activation’ is closed to new replies.