Deprecated: preg_split(): Passing null in argument_validator

Created on 3 February 2023, almost 2 years ago
Updated 9 July 2023, over 1 year ago

Problem/Motivation

Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /app/web/core/modules/views/src/Plugin/views/argument_validator/Entity.php on line 183

Steps to reproduce

  1. While using the WYSIWYG, click on media browser button.
  2. Click "Library" at the top of the modal.
  3. See the warning at the top of the modal.

Proposed resolution

Don't run preg_split() on $argument variable if null.

Remaining tasks

  1. Check my fix.
  2. Correct or guide me to a better solution.
  3. Test.
πŸ› Bug report
Status

Fixed

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated about 2 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States cbfannin

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024