Closed (fixed)
Project:
IMCE
Version:
8.x-2.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2020 at 15:29 UTC
Updated:
9 Jul 2020 at 16:24 UTC
Jump to comment: Most recent
I created a simple content with a image field. If I turn on IMCS for the field, when I try to create new content, I get this error:
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 /home/ftpuser/RetamaD83/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php).
If I use the IMCE icon in CKEditor, it works okay.
Comments
Comment #2
thallesThanks for report this issue!
this issue was fixed in #3149697: php security error when I create content on Drupal 9.0, but your description about this subject was very useful
Comment #3
thalles