Hi,

I have updated the core to 8.4.4. whenever I submit any entity which does not have a collection. I am getting the following error. I found it is throwing from the event subsriber. So, I have created a patch for this please review. Added !empty() condition before adding the token_devel route in collection.

Drupal\Core\Entity\EntityStorageException: Some mandatory parameters are missing ("workflow_transition") to generate a URL for route "entity.workflow_scheduled_transition.token_devel". in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 805 of C:\xampp\htdocs\site\core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

saranya ashokkumar’s picture

Status: Active » Needs review
FileSize
552 bytes
vani.S’s picture

Status: Needs review » Reviewed & tested by the community

This patch worked for me. I also faced this problem.

MRPRAVIN’s picture

I tested this patch working fine. Thanks for the patch.

Berdir’s picture

Status: Reviewed & tested by the community » Needs work

The patch has coding style issues (for example missing space after if).

I don't think that's the right fix, might work for that example because it happens to not have a collection route but that's pretty arbitrary. Will need a better check, for example having more than one argument in the path.

Prashant.c’s picture

@saranya purushothaman

Can you please write down the steps to regenerate this issue ?