Anonymous Publishing CL WSOD on /node/add page for anonymous users

Created on 13 October 2021, about 3 years ago
Updated 16 November 2023, about 1 year ago

Problem/Motivation

Running Drupal 10.1.6

Following error is reported:

Drupal\Core\Security\UntrustedCallbackException: Render #post_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was anonymous_publishing_honeyfield_cl_post_render. See https://www.drupal.org/node/2966725 in Drupal\Core\Render\Renderer->doTrustedCallback() (line 106 of core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php).

Authenticated users are not affected.

Steps to reproduce

  1. Enable full error reporting.
  2. In Main settings, enable anonymous publishing for Article.
  3. Navigate to /node/add/article.
  4. Inspect WSOD.
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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