Title: Plugin shows critical error
Last modified: April 26, 2022

---

# Plugin shows critical error

 *  Resolved [lamayas](https://wordpress.org/support/users/lamayas/)
 * (@lamayas)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-shows-critical-error/)
 * Hi there,
 * I was trying to change my main currency when I started getting an error on the
   admin. I have the Fixed price option enabled but after I changed the main currency,
   prices are still converting as if the now main (COP) was still USD.
 * Error log shows this message:
 * `Warning: Undefined array key "is_main" in /home3/karinari/public_html/wp-content/
   plugins/woo-multi-currency/admin/analytics.php on line 93`
 * And a notice from WordPress has these details:
 *     ```
       Se ha producido un error del tipo E_ERROR en la línea 608 del archivo /home3/karinari/public_html/wp-content/plugins/woo-multi-currency/includes/support.php. Mensaje de error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in /home3/karinari/public_html/wp-content/plugins/woo-multi-currency/includes/support.php:608
       Stack trace:
       #0 /home3/karinari/public_html/wp-content/plugins/woo-multi-currency/includes/support.php(608): array_filter(NULL)
       #1 /home3/karinari/public_html/wp-content/plugins/woo-multi-currency/includes/support.php(562): VillaTheme_Support->get_data('woo-multi-curre...')
       #2 /home3/karinari/public_html/wp-includes/class-wp-hook.php(307): VillaTheme_Support->villatheme_support('')
       #3 /home3/karinari/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
       #4 /home3/karinari/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
       #5 /home3/karinari/public_html/wp-content/plugins/woo-multi-currency/admin/settings.php(1077): do_action('villatheme_supp...')
       #6 /home3/karinari/public_html/wp-includes/class-wp-hook.php(307): WOOMULTI_CURRENCY_F_Admin_Settings::page_callback('')
       #7 /home3/karinari/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
       #8 /home3/karinari/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
       #9 /home3/karinari/public_html/wp-admin/admin.php(259): do_action('toplevel_page_w...')
       #10 {main}
         thrown
       ```
   
 * Version of the plugin is 2.1.15
    Woocommerce 6.4.1 WordPress 5.9.3 And PHP 8.0.16
   Theme: OceanWP
 * Thanks in advance for any help.
    -  This topic was modified 4 years, 1 month ago by [lamayas](https://wordpress.org/support/users/lamayas/).

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

 *  [angelagrey](https://wordpress.org/support/users/angelagrey/)
 * (@angelagrey)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-shows-critical-error/#post-15594441)
 * Hi,
 * Thank you for reaching out to us.
    First, I would need you to check if this error
   remains with only WooCommerce and our plugin CURCY are activated. If it does,
   please contact us via this email address: [support@villatheme.com](https://wordpress.org/support/topic/plugin-shows-critical-error/support@villatheme.com?output_format=md)
 * Thank you.
    Best regards.
 *  Thread Starter [lamayas](https://wordpress.org/support/users/lamayas/)
 * (@lamayas)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-shows-critical-error/#post-15600266)
 * Hello,
 * The currency switch works normally if I have just those 2 plugins enabled but
   the dashboard still shows a critical error (not affecting the front end currently):
 * [https://www.awesomescreenshot.com/image/26402973?key=b3d06932a3f49bdb02c5750f27df8e54](https://www.awesomescreenshot.com/image/26402973?key=b3d06932a3f49bdb02c5750f27df8e54)
 *  [angelagrey](https://wordpress.org/support/users/angelagrey/)
 * (@angelagrey)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-shows-critical-error/#post-15608155)
 * The first issue is likely caused by a conflict with another plugin. For this,
   you can regard [this documentation](https://docs.villatheme.com/woocommerce-multi-currency/#page_section_menu_3939)
   to know more about which plugin is compatible with ours, and find an alternative
   solution.
 * Regarding the critical error, it does not happen on our sites, with only CURCY
   and WooCommerce the latest versions. In this case, please contact us via this
   email address: [support@villatheme.com](https://wordpress.org/support/topic/plugin-shows-critical-error/support@villatheme.com?output_format=md)
   
   We’ll detect further.
 * Thank you.
 *  [kimvt1991](https://wordpress.org/support/users/kimvt1991/)
 * (@kimvt1991)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-shows-critical-error/#post-15614673)
 * Hello,
    These issues are fixed in the latest version, please update it. Best 
   regards
 *  Thread Starter [lamayas](https://wordpress.org/support/users/lamayas/)
 * (@lamayas)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-shows-critical-error/#post-15616666)
 * Yes, that solved it! Thank you.

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

The topic ‘Plugin shows critical error’ is closed to new replies.

 * ![](https://ps.w.org/woo-multi-currency/assets/icon-128x128.gif?rev=3089832)
 * [CURCY - Multi Currency for WooCommerce - Smoothly on WooCommerce 9.x](https://wordpress.org/plugins/woo-multi-currency/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-multi-currency/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-multi-currency/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-multi-currency/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-multi-currency/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [lamayas](https://wordpress.org/support/users/lamayas/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/plugin-shows-critical-error/#post-15616666)
 * Status: resolved