Problem/Motivation

This is in Drupal 10.3

Message 	Warning: foreach() argument must be of type array|object, null given in Drupal\ckeditor5_plugin_pack_highlight\Plugin\CKEditor5Plugin\Highlight->buildConfigurationForm() (line 105 of /home/stelnews/public_html/web/modules/contrib/ckeditor5_plugin_pack/modules/ckeditor5_plugin_pack_highlight/src/Plugin/CKEditor5Plugin/Highlight.php) 

also
Warning: Undefined array key "custom_marker_wrapper" in Drupal\ckeditor5_plugin_pack_highlight\Plugin\CKEditor5Plugin\Highlight->buildConfigurationForm() (line 102 of /home/stelnews/public_html/web/modules/contrib/ckeditor5_plugin_pack/modules/ckeditor5_plugin_pack_highlight/src/Plugin/CKEditor5Plugin/Highlight.php)
andWarning: foreach() argument must be of type array|object, null given in Drupal\ckeditor5_plugin_pack_font\Plugin\CKEditor5Plugin\FontColor->buildConfigurationForm() (line 60 of /home/stelnews/public_html/web/modules/contrib/ckeditor5_plugin_pack/modules/ckeditor5_plugin_pack_font/src/Plugin/CKEditor5Plugin/FontColor.php)
Message Warning: Undefined array key "custom_colors_wrapper" in Drupal\ckeditor5_plugin_pack_font\Plugin\CKEditor5Plugin\FontColor->buildConfigurationForm() (line 57 of /home/stelnews/public_html/web/modules/contrib/ckeditor5_plugin_pack/modules/ckeditor5_plugin_pack_font/src/Plugin/CKEditor5Plugin/FontColor.php)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#8 3459095-foreach-warning.patch3.01 KBdolszewski
Command icon 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

tjtj created an issue. See original summary.

abhishek_gupta1’s picture

Assigned: Unassigned » abhishek_gupta1

abhishek_gupta1’s picture

Assigned: abhishek_gupta1 » Unassigned
Status: Active » Needs review

@tjtj, I have fixed the issue and created MR. please review it once.

tjtj’s picture

Status: Needs review » Active

Make a patch file and I will.

dolszewski made their first commit to this issue’s fork.

dolszewski’s picture

Status: Active » Needs review
StatusFileSize
new3.01 KB

@abhishek_gupta1 Thank you for MR, I have added comments to it.

Also added a new MR with changes in Font Color and Text transformation, because the same warning occurs there:
https://git.drupalcode.org/project/ckeditor5_plugin_pack/-/merge_requests/5

@tjtj
Added patch file to the issue

tjtj’s picture

Status: Needs review » Active

Installed patch. seems to work. Thanks. This also solves the issues with the cheditor5_font plugin https://www.drupal.org/project/drupal/issues/3457622#comment-15664592

dolszewski’s picture

Status: Active » Reviewed & tested by the community
dolszewski’s picture

Status: Reviewed & tested by the community » Fixed

The latest release (1.2.0) contains the fix for that issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.