When transcluding a special page that accesses the global state directly, things could break in the most surprising way due to how special page transclusion works, by replacing the main context of the request. For details, see T290706: Parser code for special page transclusion replaces main context.
This task encompasses investigation and rectification of any issues with Special:AllEvents related to these problems. A partial list of things to fix can be found in T385729#10602473:
Aside from what the patch already does: no OOUI (and this is going to be a problem), the Pager constructor needs a context object, our UserLinker needs to be migrated from Linker to the new UserLinkRenderer.