Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in views_handler_field_file_extension->render() (line 43 of views/modules/system/views_handler_field_file_extension.inc)
This issue is showing whenever there is a relationship with File:fid and the view is showing Field File:extension.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Depreceated_functionpreg_match_3323256_4.patch | 685 bytes | dilpreet_singh |
Issue fork views-3323256
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
damienmckennaThank you for opening the bug report.
Can you please explain how to trigger this problem? Are you able to replicate the problem using a base install of Drupal core and the Views module, or do you need additional modules or custom code to cause it?
FYI, the "needs work" status is for when an issue has been worked on, a potential solution was provided, but it was deemed this solution needed further work, it is not intended as a flag to indicate "someone needs to work on this"; when opening a new issue the appropriate status is "active" unless a patch or other proposed solution is provided.
Comment #4
dilpreet_singh commentedHere is the patch that fixes it for PHP 8.1.
Comment #5
dilpreet_singh commentedThanks, Damien for your comment. I have added a bit more info for the issue summary.
Just learning the process.
Comment #6
damienmckennaThank you!
Could you please upload an example view that causes the error? We can turn it into a patch.