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
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3459095-foreach-warning.patch | 3.01 KB | dolszewski |
Issue fork ckeditor5_plugin_pack-3459095
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
Comment #2
abhishek_gupta1 commentedComment #4
abhishek_gupta1 commented@tjtj, I have fixed the issue and created MR. please review it once.
Comment #5
tjtj commentedMake a patch file and I will.
Comment #8
dolszewski commented@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
Comment #9
tjtj commentedInstalled 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
Comment #10
dolszewski commentedComment #11
dolszewski commentedThe latest release (1.2.0) contains the fix for that issue.