Warning: Trying to access array offset on value of type null

Created on 12 March 2024, 4 months ago
Updated 16 May 2024, about 1 month ago

Problem/Motivation

If we don't choose any locations in the Locations field, then after trying to save the node, we got this error:
Warning: Trying to access array offset on value of type null in ws_event_tokens() (line 106 of /var/www/docroot/modules/contrib/ws_event/ws_event.tokens.inc)

Steps to reproduce

  1. log in as admin
  2. create an Event CT
  3. leave empty the Locations field
  4. save the page

Proposed resolution

An additional check needs to be added if the location field isn't empty.

πŸ› Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine aleevas

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024