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

Created on 23 January 2023, over 1 year 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.69.0 2024