ArgumentCountError: Too few arguments to function esi_panels__esi_pane_prepare() if request made to esi/%esi_component without additional arguments

Created on 13 November 2023, about 1 year ago

Problem/Motivation

Request to esi/%esi_component without any additional argument results in ArgumentCountError: Too few arguments to function esi_panels__esi_pane_prepare() because there are no checks for arguments before calling the function.

Steps to reproduce

Make a request to path e.g. esi/panels_pane using PHP 8.0.

Proposed resolution

Check for arguments and if none return 404, don't attempt to call esi_panels__esi_pane_prepare().

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lwalley

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

Comments & Activities

Production build 0.71.5 2024