Title: Undefined array key &#8220;show_flags&#8221;
Last modified: July 8, 2023

---

# Undefined array key “show_flags”

 *  Resolved [eminozturk](https://wordpress.org/support/users/eminozturk/)
 * (@eminozturk)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/undefined-array-key-show_flags/)
 * Hello,
 * I love using this plugin. Today I noticed that the error log file is getting 
   very large. It logs this error code almost every minute when I check it. There
   is no problem in the operation of the plugin, but why is it constantly throwing
   this error in the error log file.
 * I will be waiting for your help.
 * Thanks.
   [24-Jun-2022 14:21:17 UTC] PHP Warning: Undefined array key “show_flags”
   in /home/mysite/public_html/wp-content/plugins/currency-switcher/classes/widgets/
   widget-wpcs-selector.php on line 31[24-Jun-2022 14:21:17 UTC] PHP Warning: Undefined
   array key “show_flags” in /home/mysite/public_html/wp-content/plugins/currency-
   switcher/classes/widgets/widget-wpcs-selector.php on line 31[24-Jun-2022 14:21:
   48 UTC] PHP Warning: Undefined array key “show_flags” in /home/mysite/public_html/
   wp-content/plugins/currency-switcher/classes/widgets/widget-wpcs-selector.php
   on line 31[24-Jun-2022 14:21:49 UTC] PHP Warning: Undefined array key “show_flags”
   in /home/mysite/public_html/wp-content/plugins/currency-switcher/classes/widgets/
   widget-wpcs-selector.php on line 31

Viewing 1 replies (of 1 total)

 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/undefined-array-key-show_flags/#post-16882761)
 * Hello
 * Please try in file – \wp-content\plugins\currency-switcher\classes\widgets\widget-
   wpcs-selector.php – change this line – [https://share.pluginus.net/image/i20230710115731.png](https://share.pluginus.net/image/i20230710115731.png)
 *     ```wp-block-code
        $instance['show_flags'] = isset($new_instance['show_flags'])?$new_instance['show_flags']:1;
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Undefined array key “show_flags”’ is closed to new replies.

 * ![](https://ps.w.org/currency-switcher/assets/icon-256x256.png?rev=2063672)
 * [WPCS - WordPress Currency Switcher Professional](https://wordpress.org/plugins/currency-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/currency-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/currency-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/currency-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/currency-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/currency-switcher/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/undefined-array-key-show_flags/#post-16882761)
 * Status: resolved