Call to a member function getOptions() on null

Created on 28 August 2024, 4 months ago
Updated 11 September 2024, 3 months ago

Problem/Motivation

When using a token that calls for a Smart Date format that doesn't exist on the current site, a fatal error is thrown, on line 132 of smart_date.tokens.inc.

Remaining tasks

If the specified format is not available, throw an error message and try to load the default format. If that also can't be found, then throw another error message, and return an empty string.

🐛 Bug report
Status

Fixed

Version

4.1

Component

Code

Created by

🇨🇦Canada mandclu

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024