Needs work
Project:
Token
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2020 at 01:19 UTC
Updated:
10 Feb 2026 at 07:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
larowlanthis seems to prevent it from blowing up
Comment #4
ngkoutsaik commentedHi,
I reviewed the issue and run the steps to get the error. I am not certain if I misunderstood but I get a different error.
Drupal\Core\Entity\EntityStorageException: The requested context was not found in the supplied array of contexts. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 846 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).I also applied the patch, which applied cleanly, but the issue still repeats.
Comment #5
amykhailova commentedI'm on 8.x-1.7 and it seems that it's not an issue anymore. I have followed your steps and cannot reproduce the error.
Comment #6
mohit_aghera commentedI noticed similar issues for the different scenario where I changed content from archived to published state.
Steps to reproduce:
- Content is archived and it doesn't have any menu link
- When we change content form archived to published state or review state and add a new link from the node edit form, the link is not created when it tries to create instance.
The issue seems with the following code in function "token_node_menu_link_submit()"
since when we move to "needs review", it might not be the default revision for the node.
Eventually it fails.
I think following check should address the issue.
Adding a MR with the fix.