No Code Attached Yet
avatar RickR2H
RickR2H
29 Sep 2025

When testing Joomla 6 I noticed a deprecation warning using the new Note Custom Field introduced in PR: #45233
To generate the bug create a note custom field. Edit an article where the note field is visible. On top there will be the warning:

Deprecated: DOMCdataSection::__construct(): Passing null to parameter #1 ($data) of type string is deprecated in C:\laragon\www\joomla6test\administrator\components\com_fields\src\Plugin\FieldsPlugin.php on line 277

The solution could be to leave the "Default Value Form Field" in the plugin settings visible despite it having no function.
The "Default Value Form Field" is remove in: plugins\fields\note\src\Extension\Note.php on line 50

@TLWebdesign could you please take a look?

avatar RickR2H RickR2H - open - 29 Sep 2025
avatar RickR2H RickR2H - change - 29 Sep 2025
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 29 Sep 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Sep 2025
avatar RickR2H RickR2H - change - 29 Sep 2025
Title
New J6 note field throws Deprecation warning
New Joomla 6 note field throws deprecation warning
avatar RickR2H RickR2H - edited - 29 Sep 2025
avatar RickR2H RickR2H - change - 29 Sep 2025
The description was changed
avatar RickR2H RickR2H - edited - 29 Sep 2025
avatar richard67
richard67 - comment - 29 Sep 2025

The "Default Value Form Field" is remove in: plugins\fields\note\src\Extension\Note.php on line 50

For reference: That was made with PR #46039 .

avatar TLWebdesign
TLWebdesign - comment - 29 Sep 2025

Yep that introduced it. I'll make a PR. Already know what do to do fix it. Thanks Rick for reporting this!

avatar QuyTon QuyTon - change - 3 Oct 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-10-03 05:36:51
Closed_By QuyTon
avatar QuyTon QuyTon - close - 3 Oct 2025
avatar QuyTon
QuyTon - comment - 3 Oct 2025

PR #46196

Add a Comment

Login with GitHub to post a comment