User tests: Successful: Unsuccessful:
Pull Request for Issue #39298 .
Add is_string
check before calling strpos
for the intro text which might be null when no Read More button.
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. Then check the PHP error log file.
PHP notice PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /path-to-your-joomla-site/plugins/content/fields/fields.php on line 66
.
No such notice.
Please select:
No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
PHP 8.x
Maintainers Checked
|
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-11-28 08:56:41 |
Closed_By | ⇒ | laoneo | |
Labels |
Added:
?
|
Thank you!
I have tested this item✅ successfully on 4f91d90
Tested successfully in Joomla 4.2.6-dev using PHP 8.1.10.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39299.