Problem/Motivation
We started to get these errors.
Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in varbase_bootstrap_paragraphs_field_widget_entity_reference_paragraphs_form_alter() (line 135 of modules/contrib/varbase_bootstrap_paragraphs/varbase_bootstrap_paragraphs.module).
Warning: Undefined array key 1 in varbase_bootstrap_paragraphs_field_widget_entity_reference_paragraphs_form_alter() (line 138 of modules/contrib/varbase_bootstrap_paragraphs/varbase_bootstrap_paragraphs.module).
Running:
- Drupal 9.5.10
- Varbase bootstrap paragraphs 9.0.12
Proposed resolution
- Add a check on the background colors
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ✅ Release varbase-9.0.17, varbase_bootstrap_paragraphs-9.0.17, varbase_bootstrap_paragraphs-9.1.1, varbase-10.0.0-rc1, varbase_bootstrap_paragraphs-10.0.0-rc2
Varbase update type
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Background_color_returns-null-3387135.patch | 1.03 KB | shreya_th |
| #2 | Error2.png | 47.46 KB | jedgar1mx |
| #2 | Error1.png | 63.42 KB | jedgar1mx |
Comments
Comment #2
jedgar1mx commentedI noticed that the background selection for "no background" is not saving correctly. Probably the reason it returns the null warning.
Comment #3
shreya_th commentedComment #4
shreya_th commentedI have fixed the issues for background color returns null . Kindly review the above attached patch file.
Comment #5
shreya_th commentedComment #6
rajab natshahThanks, Edgar for reporting.
Thank you, Shreya, for patching.
Reviewing and testing the fix
Comment #7
rajab natshahComment #8
rajab natshahComment #9
jedgar1mx commentedI don't see the error anymore but the form view still doesn't show the
no backgroundas selected.Comment #10
rajab natshahComment #11
rajab natshahComment #12
rajab natshahComment #13
rajab natshahFacing two issues with Background Colors:
9.1.x-dev( the colors are NOT showing up with Drupal~10.1.0at the back-end ) under Varbase9.0.16and
10.0.x-dev( showing at the back-end- but not showing bg colors for columns at the front-end ) under Varbase10.0.x-devComment #20
rajab natshahComment #21
rajab natshahComment #22
rajab natshahComment #23
rajab natshah✅ Released varbase_bootstrap_paragraphs-9.0.17
Comment #24
rajab natshah✅ Released varbase_bootstrap_paragraphs-9.1.1
Comment #25
rajab natshah✅ Released varbase_bootstrap_paragraphs-10.0.0-rc2
Comment #26
rajab natshahComment #28
rajab natshah✅ Released varbase-9.0.17
Comment #29
rajab natshah✅ Released varbase-10.0.0-rc1