Closed (fixed)
Project:
IMCE
Version:
8.x-2.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 Aug 2020 at 05:58 UTC
Updated:
10 Sep 2020 at 11:29 UTC
Jump to comment: Most recent
According the documentation of file/image field integration, I checked the box "Allow users to select files from Imce File Manager for this field." and saved.
Then I add content of Article, it shows "The website encountered an unexpected error."
Comments
Comment #2
thallesPlease, see in your log the error message and share with us here.
Comment #3
robinyu81 commentedThe log details is as follow,
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 /www/wwwroot/192.168.123.63/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php).
Drupal core 9.0.3
IMCE 8.X-2.2
if there is something I set wrong? Thank you!
Comment #4
thallesThis was fixed in dev branch, see: #3149697: php security error when I create content on Drupal 9.0
Comment #5
thalles