Problem/Motivation
Previewing nodes is throwing errors. Other than previewing content no other issues are currently found. Creating, editing and viewing nodes work as expected.
Error message:
The website encountered an unexpected error. Please try again later.
Error: Call to a member function getEntity() on null in Drupal\node\ParamConverter\NodePreviewConverter->convert() (line 37 of core/modules/node/src/ParamConverter/NodePreviewConverter.php).
This is a new project and some differences I found was that I enabled <code>varbase_workflow.
Proposed resolution
Add the 3264639-2.patch from #3264639: Can't preview a new node
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
- ✅ 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.7, varbase_workflow-2.0.7
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 #3223852 by jedgar1mx, yasmeensalah, Qusai Taha: Fixed preview in nodes with workflows
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3223852-5.patch | 423 bytes | qusai taha |
Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #4
yasmeensalah commentedThere is a new error when previewing the nodes before saving it caused by the "moderation_sidebar" module
This error will be fixed after applying the patch here
https://www.drupal.org/project/moderation_sidebar/issues/3264639
Comment #5
qusai taha commentedFix issue When previewing the node before saving the node by applying the patch form #2 from https://www.drupal.org/project/moderation_sidebar/issues/3264639
Comment #6
rajab natshahComment #7
rajab natshahComment #10
rajab natshahComment #11
rajab natshahComment #14
rajab natshahComment #15
rajab natshahComment #16
rajab natshah✅ Released varbase_workflow-2.0.7
Comment #17
rajab natshah✅ Released varbase-9.0.7
Comment #18
rajab natshah