Title: PHP warnings
Last modified: May 7, 2024

---

# PHP warnings

 *  Resolved [johansam](https://wordpress.org/support/users/johansam/)
 * (@johansam)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-warnings-187/)
 * I get the following warning:
 * **Warning**: Undefined array key “classname” in **/home/mariefre/mariefredsbk.
   se/wp-content/plugins/simple-google-icalendar-widget/simple-google-icalendar-
   widget.php** on line **170**
 * And I cant suppress it…..
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warnings-187%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [bramwaas](https://wordpress.org/support/users/bramwaas/)
 * (@bramwaas)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-warnings-187/#post-17737711)
 * Hi,
 * A quick look at the code tells me that that array key should exist and be filled
   with ‘Simple_iCal_Widget’ when the widget is proper initialized.
 * It clearly is not.
 * So a work-around until I have found the reason for the issue and have solved 
   it could be to replace $args[‘classname’] by ‘Simple_iCal_Widget’ in line 170
   of file simple-google-icalendar-widget.php ( see error message for complete path).
   I think this is possible from an administrator screen in WordPress otherwise 
   you could use Filezilla or an other FTP client.
 * Of course I will come with a solution soon
 *  Thread Starter [johansam](https://wordpress.org/support/users/johansam/)
 * (@johansam)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-warnings-187/#post-17737824)
 * OK, many thanks! This seems to have made the trick.
 *  Plugin Author [bramwaas](https://wordpress.org/support/users/bramwaas/)
 * (@bramwaas)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-warnings-187/#post-17744406)
 * Hi Johan,
 * It was not difficult to reproduce the issue, even with the default Twenty Twenty-
   one theme. Apparently my assumption that the keys of the $args array only are
   filled or changed after initialization is not correct.
 * In v2.4.1 that I just released, I solved it by defaulting all keys from $args
   that I use. This should definitively resolve this issue.
 * Apologies for not testing this sufficiently with ‘WP_DEBUG’ = true.
 * Kind regards,
 * Bram
 * ![Icoon voor Geverifieerd door de community](https://wordpress.org/3b7adae8-e0d9-
   4d97-b165-0eb91ad83b8b)
    -  This reply was modified 1 year, 11 months ago by [bramwaas](https://wordpress.org/support/users/bramwaas/).
 *  Thread Starter [johansam](https://wordpress.org/support/users/johansam/)
 * (@johansam)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-warnings-187/#post-17744768)
 * OK, many thanks! Now it works without any warnings.
 * Kind Regards
 * Johan

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

The topic ‘PHP warnings’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [johansam](https://wordpress.org/support/users/johansam/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/php-warnings-187/#post-17744768)
 * Status: resolved