Warning: Undefined array key "time_wrapper"

Created on 29 April 2024, about 2 months ago
Updated 13 May 2024, about 1 month ago

Problem/Motivation

Since updating to 4.1.1 I am getting the following warnings when saving a node with a repeating date.

Warning: Undefined array key "time_wrapper" in Drupal\smart_date_recur\Entity\SmartDateRule::validateRecurring() (line 925 of /var/www/html/web/modules/contrib/smart_date/modules/smart_date_recur/src/Entity/SmartDateRule.php)

Warning: Trying to access array offset on value of type null in Drupal\smart_date_recur\Entity\SmartDateRule::validateRecurring() (line 925 of /var/www/html/web/modules/contrib/smart_date/modules/smart_date_recur/src/Entity/SmartDateRule.php)

Steps to reproduce

Update to 4.1.1
Open a node with a repeating date which ends "On Date"
Click save.

Proposed resolution

I haven't had a good look through the code so I don't want to suggest changes but I assume these errors are coming from the changes from this issue: https://www.drupal.org/project/smart_date/issues/3413612 πŸ› The repeat end date should not be allowed to come before the start time. Fixed

πŸ› Bug report
Status

Fixed

Version

4.1

Component

Smart Date Recur

Created by

πŸ‡¦πŸ‡ΊAustralia tisteegz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024