Closed (fixed)
Project:
Metatag
Version:
2.2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2026 at 09:55 UTC
Updated:
9 Nov 2026 at 15:15 UTC
Jump to comment: Most recent
The tests against 11.4.x are currently failing:
Metatag Forum (Drupal\Tests\metatag\Functional\MetatagForum)
✘ Forum post
┐
├ Behat\Mink\Exception\ExpectationException: Current response status code is 500, but 200 expected.
│
│ /builds/project/metatag/vendor/behat/mink/src/WebAssert.php:888
│ /builds/project/metatag/vendor/behat/mink/src/WebAssert.php:145
│ /builds/project/metatag/tests/src/Functional/MetatagForumTest.php:85
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
shubhamgoel commentedHi Team,
On Drupal 11.4 and later, entityBaseFieldInfo() read $entity_type->getDecoratedClasses()[0]. That array is empty for entity types whose class was never decorated. The empty read raises an undefined-index error, which would surface as a 500 when the node add page builds its entity definitions. It now falls back to $entity_type->getClass() when the array is empty.
Please review and merge the MR https://git.drupalcode.org/project/metatag/-/merge_requests/287/diffs
Comment #5
damienmckennaThank you for identifying the source of the error and for providing a fix.
Comment #7
damienmckennaCommitted, Thank you.
Comment #9
shubhamgoel commentedHi @damienmckenna,
Can you please review the contribution credit for this issue?
Comment #10
damienmckennaYes, it has been updated.