Title: Warning: Undefined array key
Last modified: August 23, 2023

---

# Warning: Undefined array key

 *  Resolved [johansam](https://wordpress.org/support/users/johansam/)
 * (@johansam)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-19/)
 * Hi,
 * on my frontpage I have the widget installed on the right side and I get the following
   result. Used to work before some update. Currently widget is removed.
 * ![](https://wordpress.org/58254e7d-4dc2-4da8-90ae-871e6be092dd)
 *  [https://mariefredsbk.se/skarmbild-2023-08-23-081707/](https://mariefredsbk.se/skarmbild-2023-08-23-081707/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-undefined-array-key-19%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [bramwaas](https://wordpress.org/support/users/bramwaas/)
 * (@bramwaas)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-19/#post-16994374)
 * thanks for reporting this issue with a very clear screenshot.
 *  I’m going to look into it and hope to fix it soon.
 * Would you help me with the following information:
 * – the version of the plug-in – the version of your WordPress installation
 * – do you use the block directly, or the widget (via legacy widget block)
 * – Did you refresh the data after the last update with the Reset Id button (in
   advanced settings) or would you like to try that again?
 * Regards Bram
 *  Thread Starter [johansam](https://wordpress.org/support/users/johansam/)
 * (@johansam)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-19/#post-16994996)
 * Plugin version 2.1.4
   WordPress version 6.3I use the widgetTried th e ResetID 
   button, no change
 * Regards Johan
 *  Plugin Author [bramwaas](https://wordpress.org/support/users/bramwaas/)
 * (@bramwaas)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-19/#post-16995053)
 * thank you Johan, that helps me trying to reproduce the issue.
 * 
   This is no excuse, I will try to solve the problem anyway
 * But warnings should not be shown in a production environment. It looks like your
   site has got a line
 * `Define('WP_DEBUG', true) `
 * in the wp-config.php file. This line should not be in production. If you remove
   it, or change true to false, the warnings will no longer be visible.
 * This could be a work a round for now.
 * Regards Bram
 *  Plugin Author [bramwaas](https://wordpress.org/support/users/bramwaas/)
 * (@bramwaas)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-19/#post-16998041)
 * Hi Johan,
 * I managed to reproduce the issue and find a solution.
   Fix implemented in version
   2.1.5.
 * Reproduction:
    1. Back to version 2.1.0., here less settings are available.
    2. Insert legacy widget with similar settings. DB is now missing the new settings
       such as blockid.
    3. Debug on: no warnings.
    4. Update to v2.1.4. Refresh screen: Warnings about undefined array keys appear.
 * Solution 1: Update plugin to v2.1.5. Implemented in v2.1.5: All settings are 
   now also initialized with legacy widget (this already happens with block, because
   settings are only saved there if they differ from the default).
   No more warnings.
 * Solution 2: Transform Legacy widget block to ‘Simple ical Block’, warnings are
   also gone. Solution is not always possible, for example because page builders
   such as Elementor only support Legacy Widgets.
 * Solution 3: Change a setting and save it most warnings disappear. (unfortunately
   the one about anchorId remains plus in php 8 Deprecated messages) and disable
   debug.
 * Thanks for reporting the issue and apologies for the inconvenience.
 * Regards Bram
 *  Thread Starter [johansam](https://wordpress.org/support/users/johansam/)
 * (@johansam)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-19/#post-16999928)
 * Problem solved with last version 2.1.5.
 * Many thanks for your fast respons and fix!
   Regards Johan

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

The topic ‘Warning: Undefined array key’ is closed to new replies.

 * ![](https://ps.w.org/simple-google-icalendar-widget/assets/icon-128x128.png?rev
   =2099704)
 * [Simple Google Calendar Outlook Events Widget](https://wordpress.org/plugins/simple-google-icalendar-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-google-icalendar-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-google-icalendar-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-google-icalendar-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-google-icalendar-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-google-icalendar-widget/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [johansam](https://wordpress.org/support/users/johansam/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/warning-undefined-array-key-19/#post-16999928)
 * Status: resolved