There have been multiple bug reports for the events plugin in the last two days that all seem to be type-casting issues with custom fields. The events plugin hasn’t been substantively updated in a few months.
The plugin.rb file casts
event_start as an integer:
The error is being thrown here:
def has_event? self.custom_fields['event_start']&.nonzero? end
The error itself follows this format:
NoMethodError (undefined method `nonzero?' for [1563127206, 1563127206]:Array)
As far as I understand
register_custom_field_type it should ensure that the custom_field always returns as the defined type (perhaps I’m misunderstanding it).
Looking at the
has_custom_fields.rb concern, there have been a few changes in the past week that could have affected this, in particular
@eviltrout Any thoughts on this?