Getting below mentioned error when checking block version tree.

Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("entity_revision") to generate a URL for route "entity.block_content.revision". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 182 of /media/sf_vmshared/demo8/core/lib/Drupal/Core/Routing/UrlGenerator.php).

I have followed below mentioned steps:

1. Added new custom block.

2. Edit and save existing block.

3. Again click on edit then checking the revision tree I am getting the PHP exception error.

error

Comments

rahul.nahar001 created an issue. See original summary.

rahul.nahar001’s picture

Assigned: rahul.nahar001 » Unassigned
vijaycs85’s picture

Status: Active » Needs review
StatusFileSize
new797 bytes
new566 bytes

I faced exact issue for menu_item_content as well. Here are the options(apply any one of the patches).

The last submitted patch, 3: 2973051-option-one-3.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

rahul.nahar001’s picture

Status: Needs review » Needs work

Hi @vijay,

Option one is worked as expected. But need to fix unit-test issues.

Thanks

vijaycs85’s picture

Status: Needs work » Needs review
StatusFileSize
new959 bytes
new892 bytes

Thanks, @rahul.nahar001. Hopefully, this would fix test fails.

rahul.nahar001’s picture

Hi @vijay,

Both options are working fine on my local.

vijaycs85’s picture

👍

timmillwood’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

@vijaycs85 Would it be possible to get a test for this?

vijaycs85’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests
StatusFileSize
new2.86 KB

sorry for the delay. here it is...

vijaycs85’s picture

StatusFileSize
new2.31 KB

Test-only to fail...

Status: Needs review » Needs work

The last submitted patch, 11: 2973051-10-test-only.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

vijaycs85’s picture

Status: Needs work » Needs review

it's ready for review now.

  • jeqq committed 4713a66 on 8.x-1.x authored by vijaycs85
    Issue #2973051 by vijaycs85, rahul.nahar001, jeqq: Block revision tree...
jeqq’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.