• Hi there, thanks for working on this plugin, it looks great at first glance, I’m giving this a try.
    it actually gave me a fatal error when I tried to install it. I was caused by class-woo-emailoctopus-integration.php on line 138 (see details below). I could fix it like so. Hope that’ll help!

    SOLUTION:
    public function get_list_options() { $options = array( ” => __(‘Choose one…’, ‘fw-integration-for-emailoctopus’ ) ); $resp = get_option(‘fweo_mailing_lists’); // Check if $resp is an array and not empty before trying to count it if (is_array($resp) && !empty($resp)) { return array_merge($options, $resp); } else { // Return just the default option if no valid lists are found return $options; } }

    ERROR:
    Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /home/customer/www/picoti-picota.ca/public_html/wp-content/plugins/fw-integration-for-emailoctopus/include/class-woo-emailoctopus-integration.php:138 Stack trace: #0 /home/customer/www/picoti-picota.ca/public_html/wp-content/plugins/fw-integration-for-emailoctopus/include/class-woo-emailoctopus-integration.php(37): FWEO_Woo_EmailOctopus_Integration->get_list_options() #1 /home/customer/www/picoti-picota.ca/public_html/wp-content/plugins/fw-integration-for-emailoctopus/include/class-woo-emailoctopus-integration.php(22): FWEO_Woo_EmailOctopus_Integration->init_form_fields() #2 /home/customer/www/picoti-picota.ca/public_html/wp-content/plugins/woocommerce/includes/class-wc-integrations.php(41): FWEO_Woo_EmailOctopus_Integration->construct() #3 /home/customer/www/picoti-picota.ca/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(846): WC_Integrations->construct() #4 /home/customer/www/picoti-picota.ca/public_html/wp-includes/class-wp-hook.php(324): WooCommerce->init(”) #5 /home/customer/www/picoti-picota.ca/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home/customer/www/picoti-picota.ca/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home/customer/www/picoti-picota.ca/public_html/wp-settings.php(704): do_action(‘init’) #8 /home/customer/www/picoti-picota.ca/public_html/wp-config.php(95): require_once(‘/home/customer/…’) #9 /home/customer/www/picoti-picota.ca/public_html/wp-load.php(50): require_once(‘/home/customer/…’) #10 /home/customer/www/picoti-picota.ca/public_html/wp-admin/admin.php(34): require_once(‘/home/customer/…’) #11 {main} thrown in /home/customer/www/picoti-picota.ca/public_html/wp-content/plugins/fw-integration-for-emailoctopus/include/class-woo-emailoctopus-integration.php on line 138

Viewing 1 replies (of 1 total)
  • Plugin Author Olaf Lederer

    (@finalwebsites)

    Hi,
    Thanks for reporting this. I guess you didn’t entered the API key first? Or maybe it’s just a different server/hosting version which produces this error.
    Anyway the test inside this function is necessary and is added in the latest version I’ve uploaded a few minutes ago.
    Let me know if you have any other issues.

Viewing 1 replies (of 1 total)

The topic ‘fatal error’ is closed to new replies.