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

robinyu81 created an issue. See original summary.

thalles’s picture

Please, see in your log the error message and share with us here.

robinyu81’s picture

The 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!

thalles’s picture

thalles’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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