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 to see the link]
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.
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
This reply was modified 1 year, 11 months ago by bramwaas.