• Resolved simonbbs

    (@simonbbs)


    Hey Guys,

    We received notices overnight that there was an error pointing to this plugin.

    We’re using the latest version of 2.1.13 and there’s nothing that appears to be wrong or not working, but I figured I should pass this error along as we received the notice multiple times:

    Error Details
    =============
    An error of type E_ERROR was caused in line 450 of the file /www/wp-content/plugins/yith-woocommerce-mailchimp/includes/class.yith-wcmc.php. Error message: Uncaught Error: Class ‘DrewM\MailChimp\MailChimp’ not found in /www/wp-content/plugins/yith-woocommerce-mailchimp/includes/class.yith-wcmc.php:450
    Stack trace:
    #0 /www/wp-content/plugins/yith-woocommerce-mailchimp/includes/class.yith-wcmc.php(173): YITH_WCMC->init_api()
    #1 /www/wp-content/plugins/yith-woocommerce-mailchimp/includes/class.yith-wcmc.php(149): YITH_WCMC->install_api()
    #2 /wordpress/wp-includes/class-wp-hook.php(287): YITH_WCMC->install(”)
    #3 /wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #4 /wordpress/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 /wordpress/wp-settings.php(543): do_action(‘init’)
    #6 /www/wp-config.php(113): require_once(‘/wordpress/wp-s…’)
    #7 /wordpress/wp-config.php(5): require(‘/www/wp-config….’)
    #8 /wordpress/wp-load.php(37): require_once(‘/wordpress/wp-c…’)
    #9 /wordpress/wp-admin/admin-ajax.php(22): require_once(‘/wordpress/wp-l…’)
    #10 {main}
    thrown

    Thanks!

    -Simon

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

    (@yithemes)

    Hello there,

    Thanks for contacting us and we hope you’re doing well ??

    For some reason seems the Mailchimp class is not loaded on your site. In order to try to load again. Please add the following code in the functions.php of your active theme.

    if( ! function_exists( 'yith_wcmcm_include_api_class' ) ){
    	function yith_wcmcm_include_api_class(){
    		if( ! class_exists( '\DrewM\MailChimp\MailChimp' ) && defined( 'YITH_WCMC_VENDOR' ) ){
    			include_once YITH_WCMC_VENDOR . 'drewm/mailchimp-api/src/MailChimp.php';
    		}
    	}
    	add_action( 'init', 'yith_wcmcm_include_api_class', 3 );
    }
    

    Please, try it and let us know.

    Have a good day.

    Thread Starter simonbbs

    (@simonbbs)

    Hey Guys,

    Awesome, thanks so much!

    I added this code snippet and everything appears to be working like a charm.

    If we should run into that error message again in the future I’ll let you know, but that appears to have done the trick.

    Super appreciate the quick help with this!

    Thread Starter simonbbs

    (@simonbbs)

    Good Morning Guys,

    I’m just following up on this as we’ve received another one of those error messages on the site.

    Here are the diagnostic details and the Error details from that email:

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.4.2
    Current theme: Dynamik-Gen (version 2.6.8)
    Current plugin: YITH WooCommerce Mailchimp (version 2.1.14)
    PHP version 7.3.22-1+ubuntu20.04.1+deb.sury.org+1

    Error Details
    =============
    An error of type E_COMPILE_ERROR was caused in line 40 of the file /www/wp-content/plugins/yith-woocommerce-mailchimp/init.php. Error message: require_once(): Failed opening required ‘/www/wp-content/plugins/yith-woocommerce-mailchimp/plugin-fw/yit-plugin-registration-hook.php’ (include_path=’.:/usr/share/php’)

    Like last time there are no visual issues on the site, but I figured I should send this over.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error thrown by WordPress’ is closed to new replies.