- Issue created by @slydevil
- 🇨🇦Canada slydevil Halifax
slydevil → changed the visibility of the branch 3406852-exception-thrown-when to hidden.
- Merge request !73Issue #3406852: Exception thrown when viewing a node with an empty smart date → (Open) created by slydevil
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 6:52pm 7 December 2023 - 🇨🇦Canada mandclu
I wasn't able to reproduce the error using the provided steps. Based on the code changes proposed, it sounds like the error you encountered has more to do with a missing or invalid Smart Date format having been configured in the formatter. Did you delete a format after setting your formatter to use it?
- 🇨🇦Canada slydevil Halifax
There were no smart date formats. I created one and assigned it in the display settings and everything is working now. Is the module supposed to create a default smart date format?
Really, there should be a message displayed to the user that the smart date format is not set rather than an exception being thrown.
Anyway, thanks for your help.
- 🇨🇦Canada slydevil Halifax
I'm also seeing this error when I click on Manage Instances. I have the Smart Date formatter set. Same error, different place in the code:
Error: Call to a member function getOptions() on null in Drupal\smart_date_recur\Controller\Instances->buildRow() (line 235 of /var/www/web/modules/contrib/smart_date/modules/smart_date_recur/src/Controller/Instances.php).
- 🇨🇦Canada slydevil Halifax
I re-installed the module and everything is working now.
- Status changed to Closed: works as designed
about 1 year ago 5:23pm 11 December 2023