Fixed
Project:
Smart Date
Version:
4.3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2025 at 23:58 UTC
Updated:
3 Jul 2026 at 15:17 UTC
Jump to comment: Most recent
Getting this notice in an edge case when $elements[$delta] has not been initialised or was unset.
Undefined array key 0 in Drupal\smart_date\Plugin\Field\FieldFormatter\SmartDateFormatterBase->viewElements()
MR coming
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
vancec commentedConfirm patch fixes the log spam created by this issue, no issues with patch after a few months in production.
Comment #5
mandclu commentedI can see the need for the proposed change, though as implemented it does slightly change the logic. I have updated the MR, please confirm that the updated version still fixes your issue.
Comment #6
mandclu commentedComment #7
mandclu commentedComment #9
mandclu commentedMerged into the 4.3.x. branch