No Code Attached Yet PHP 8.x
avatar richard67
richard67
24 Nov 2022

Steps to reproduce the issue

On PHP 8.1 with error reporting set to maximum in Global Configuration and PHP configured to log errors into a log file, edit an article in backend which has no Read More button and so has no intro text. Save the article.

Expected result

No PHP notice or warning or error logged.

Actual result

PHP notice PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/richard/lamp/public_html/joomla-cms-4.2-dev/plugins/content/fields/fields.php on line 66.

System information (as much as possible)

PHP 8.1

Additional comments

Happens since PR #38977 has been merged.

=> ping @nikosdion

avatar richard67 richard67 - open - 24 Nov 2022
avatar joomla-cms-bot joomla-cms-bot - change - 24 Nov 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Nov 2022
avatar richard67 richard67 - change - 24 Nov 2022
Labels Added: PHP 8.x
avatar richard67 richard67 - labeled - 24 Nov 2022
avatar richard67
richard67 - comment - 24 Nov 2022

For possible solutions see #38977 (comment) .

Am busy at the moment so it may take time until I can provide a fix.

avatar richard67 richard67 - close - 24 Nov 2022
avatar richard67
richard67 - comment - 24 Nov 2022

Closing as having a pull request. See #39299 .

avatar richard67 richard67 - change - 24 Nov 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-11-24 11:14:57
Closed_By richard67

Add a Comment

Login with GitHub to post a comment