Problem/Motivation

Updated site from 8.9.5 to 9.0.5. When I tried to make new content, IMCE threw an error

Steps to reproduce

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 Drupal\imce\ImceFileField::preRenderWidget. See https://www.drupal.org/node/2966725 in Drupal\Core\Render\Renderer->doTrustedCallback() (line 96 of /srv/www/htdocs/orcma9/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php).

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

tjtj created an issue. See original summary.

thalles’s picture

Category: Bug report » Support request

Hi @tjtj, thanks for use IMCE and for report this.
This bug was fixed in dev branch, in the issue #3149697: php security error when I create content on Drupal 9.0

thalles’s picture

Status: Active » Fixed
thalles’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.