Fatal Error: array_pop(): Argument #1 ($array) must be of type array, null given

Created on 23 January 2023, almost 2 years ago

Problem/Motivation

On a site testing tokens, I recently encountered this fatal error:
TypeError: array_pop(): Argument #1 ($array) must be of type array, null given in array_pop() (line 205 of /app/web/modules/custom/smart_date/modules/smart_date_recur/smart_date_recur.tokens.inc)

Proposed resolution

Check that the variable is an array before attempting an array_pop

🐛 Bug report
Status

Fixed

Version

3.7

Component

Smart Date Recur

Created by

🇨🇦Canada mandclu

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

Comments & Activities

Production build 0.71.5 2024