"Render #pre_render callbacks must be methods of a class that implements \\Drupal\\Core\\Security\\TrustedCallbackInterface or be an anonymous function" PHP error after installation

Created on 14 September 2020, about 4 years ago
Updated 2 February 2023, almost 2 years ago

I installed this module on Drupal 9.0.5, and now the sites throws the following error and leaving the site unusable:

[Mon Sep 14 12:13:14.018344 2020] [proxy_fcgi:error] [pid 1109] [client 91.207.175.203:52280] AH01071: Got error 'PHP message: Uncaught PHP Exception Drupal\\Core\\Security\\UntrustedCallbackException: "Render #pre_render callbacks must be methods of a class that implements \\Drupal\\Core\\Security\\TrustedCallbackInterface or be an anonymous function. The callback was _redirect_node_block_render_alter. See https://www.drupal.org/node/2966725" at [path]/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php line 96', referer: [url]/admin/modules

Steps to reproduce: install the module :)

πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland maenjuel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024