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

CommentFileSizeAuthor
#5 3223852-5.patch423 bytesqusai taha

Comments

jedgar1mx created an issue. See original summary.

rajab natshah’s picture

Project: Varbase - The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) » Varbase Workflow
Version: 8.x-8.11 » 2.0.x-dev
rajab natshah’s picture

Assigned: Unassigned » rajab natshah
yasmeensalah’s picture

There is a new error when previewing the nodes before saving it caused by the "moderation_sidebar" module

Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "entity" for route "moderation_sidebar.sidebar_latest" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 203 of core/lib/Drupal/Core/Routing/UrlGenerator.php).

This error will be fixed after applying the patch here
https://www.drupal.org/project/moderation_sidebar/issues/3264639

qusai taha’s picture

Status: Active » Needs review
StatusFileSize
new423 bytes

Fix 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

rajab natshah’s picture

Title: Issues with preview in nodes » Fix preview in nodes with workflows
rajab natshah’s picture

Issue summary: View changes

rajab natshah’s picture

rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned

rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-9.0.7

rajab natshah’s picture

Status: Fixed » Closed (fixed)