Title: Error Plugin
Last modified: August 1, 2022

---

# Error Plugin

 *  Resolved [sinocaweb](https://wordpress.org/support/users/sinocaweb/)
 * (@sinocaweb)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-plugin-20/)
 * I have installed the plugin, but it returns an error in this file
 * Warning: Invalid argument supplied for foreach() in /****/*****/public_html/wp-
   content/plugins/woo-save-abandoned-carts/includes/class-cartbounty-wordpress.
   php on line 754
 * This is code
 *     ```
       public function get_active_steps( $automation = false ){
       		$result = false;
       		$option = 'cartbounty_automation_steps';
       		$this->restore_steps( $option );
       		$automation_steps = get_option( $option );
       		$result = array();
       <THIS LINE>        foreach ($automation_steps as $key => $step) {      </THIS LINE>
       			if(isset($step['enabled'])){
       				$result[] = $key;
       			}
       		}
       		return $result;
       	}
       ```
   
 * Why 🤔
    i disabled the other plugins for any conflicts … but nothing
    -  This topic was modified 4 years, 2 months ago by [sinocaweb](https://wordpress.org/support/users/sinocaweb/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Nauriskolats](https://wordpress.org/support/users/nauriskolats/)
 * (@nauriskolats)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-plugin-20/#post-15877423)
 * Hi [@sinocaweb](https://wordpress.org/support/users/sinocaweb/)
 * Thanks for reaching out.
    The issue might be that your wp_options database table
   collation is not set to support utf8mb4which is intended for supporting 4-byte
   characters like emojis.
 * Could you please make a backup of your database and then change the collation
   of your tables to something like “utf8mb4_unicode_ci”?
 * This is a task you would like to ask you developer to help you change. Or you
   could try to go with this plugin: [https://wordpress.org/plugins/database-collation-fix/](https://wordpress.org/plugins/database-collation-fix/)
 *  Thread Starter [sinocaweb](https://wordpress.org/support/users/sinocaweb/)
 * (@sinocaweb)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-plugin-20/#post-15877798)
 * Great!
    This plugin and YOUR support deserve 5 stars 🙂
 *  Plugin Contributor [Nauriskolats](https://wordpress.org/support/users/nauriskolats/)
 * (@nauriskolats)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-plugin-20/#post-15877809)
 * Always glad to be able to assist and improve the product! 🙂
    Thank you ❤️

Viewing 3 replies - 1 through 3 (of 3 total)

 The topic ‘Error Plugin’ is closed to new replies.

 * ![](https://ps.w.org/woo-save-abandoned-carts/assets/icon-256x256.gif?rev=2768009)
 * [CartBounty - Save and recover abandoned carts for WooCommerce](https://wordpress.org/plugins/woo-save-abandoned-carts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-save-abandoned-carts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-save-abandoned-carts/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-save-abandoned-carts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-save-abandoned-carts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-save-abandoned-carts/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Nauriskolats](https://wordpress.org/support/users/nauriskolats/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/error-plugin-20/#post-15877809)
 * Status: resolved