PHP 8.1 - Depreciation Warning

Created on 19 October 2022, over 1 year ago
Updated 26 January 2023, over 1 year ago

Problem/Motivation

Getting this warning sporadically on D9 with PHP 8.1.

Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in ajax_comments_preprocess_status_messages() (line 395 of modules/contrib/ajax_comments/ajax_comments.module).

Steps to reproduce

Edit a node with the following path
/node/1/edit?destination=/404-not-found
In order to trigger a 404 since 404s pages have no route.

Save the node and you will see a status message.
The dblog will register the warning or the next page will show the error as a status message

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States chucksimply

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.69.0 2024