Problem/Motivation
On deleting the media with all it's history and revisions
Or when using content share or syncing with number of site
In some point the when the media is not shared with other synced sitesThe following error will show up:
Error: Call to a member function getValue() on null in varbase_media_block_preprocess_block() (line 145 of modules/contrib/varbase_layout_builder/modules/varbase_media_block/varbase_media_block.module).
Steps to reproduce
Given that a Media was placed using the Varbase Media Block, or with media embed in the CKEditor
When the landing page with Layout Builder is synced or shared with other sites
Then the fatal error show up
Proposed resolution
Check if media exist before call getValue
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
- ➖ Update Release Notes and Update Helper on new feature change/addition
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Release varbase-9.0.6, varbase_layout_builder-10.0.11 , varbase_layout_builder-9.0.3
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
- Issue #3264905 by abu-zakham: Fixed Fatal error if a source media was deleted
Issue fork varbase_layout_builder-3264905
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 #3
rajab natshahComment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #10
rajab natshahComment #11
rajab natshahComment #12
rajab natshahComment #13
rajab natshahComment #18
rajab natshahComment #19
rajab natshahComment #21
rajab natshahComment #22
rajab natshah✅ Released varbase-9.0.6
Comment #23
rajab natshah