- πΊπΈUnited States josephcheek Provo, UT
You can trigger this also just by trying to display a block whose token doesn't exist, such as adding a character to the end of a valid block token. Ex: if [block_token:my_module:foo] is a valid block, try to render [block_token:my_module:foo2]. You get the above error.
- Merge request !82899155: Check whether the block is loaded before attempting to render it. β (Merged) created by josephcheek
- πΊπΈUnited States josephcheek Provo, UT
Added a fix to check for the block before attempting to render it. Credit should go to ICF, not ZDS Group.
- Status changed to RTBC
about 1 year ago 12:18am 20 November 2023 - πΊπΈUnited States mlncn Minneapolis, MN, USA
This is a critical fix. In our case the way we were inserting tokens, one out of every 1,000 or so was getting inserted in a way that got corruptedβ not a case of you know immediately there's a problem. Fatal errors should be caught and handled whenever it can come from content, as josephcheek's merge request does.
- Status changed to Downport
12 months ago 9:39pm 10 December 2023 -
i-trokhanenko β
committed d53137ad on 8.x-1.x authored by
josephcheek β
Issue #2899155: TypeError: Argument 1 passed to Drupal\block\...
-
i-trokhanenko β
committed d53137ad on 8.x-1.x authored by
josephcheek β
- Status changed to Fixed
12 months ago 9:40pm 10 December 2023 Automatically closed - issue fixed for 2 weeks with no activity.