Warning: Illegal offset type in isset or empty in cacheable_csrf_supported_pathO

Created on 21 October 2024, 6 months ago

Problem/Motivation

In some cases, this warning appears:
Warning: Illegal offset type in isset or empty in cacheable_csrf_supported_pathO (line 91 of /var/www/html/docroot/sites/all/modules/contrib/cacheable_csrf/cacheable_csrf.module).

Steps to reproduce

This happens in some cases when the access argument, which is parsed to get the old callback, includes an array. This can happen when using batched views exports, for example.

Proposed resolution

Since cacheable_csrf uses the last argument as a string, if the last argument is not a string we can assume the path was not included.

Remaining tasks

Testing

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇹Italy marco

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

Comments & Activities

Production build 0.71.5 2024