| ( ! ) Fatal error: Type of Drupal\file_entity\Plugin\Field\FieldFormatter\FileImageResponsiveFormatter::$currentUser must be Drupal\Core\Session\AccountInterface (as in class Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter) in /var/www/html/drupal/web/modules/contrib/file_entity/src/Plugin/Field/FieldFormatter/FileImageResponsiveFormatter.php on line 25 |
| Call Stack |
| # | Time | Memory | Function | Location |
| 1 | 0.0826 | 7916888 | {fiber:7282A0084740}( ) | .../Renderer.php:639 |
| 2 | 0.0826 | 7933272 | Drupal\Core\Render\Renderer::Drupal\Core\Render\{closure:/var/www/html/drupal/web/core/lib/Drupal/Core/Render/Renderer.php:638-638}( ) | .../Renderer.php:639 |
| 3 | 0.0826 | 7933400 | Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure:/var/www/html/drupal/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php:235-243}( ) | .../Renderer.php:638 |
| 4 | 0.0826 | 7934472 | Drupal\Core\Render\Renderer->render( $elements = ['#node' => class Drupal\node\Entity\Node { protected $entityTypeId = 'node'; protected $enforceIsNew = NULL; protected $typedData = NULL; protected ?Drupal\Core\Entity\EntityInterface $originalEntity = NULL; protected $cacheContexts = [...]; protected $cacheTags = [...]; protected $cacheMaxAge = -1; protected $_serviceIds = [...]; protected $_entityStorages = [...]; protected $values = [...]; protected $fields = [...]; protected $fieldDefinitions = NULL; protected $languages = [...]; protected $langcodeKey = 'langcode'; protected $defaultLangcodeKey = 'default_langcode'; protected $activeLangcode = 'x-default'; protected ?bool $enforceDefaultTranslation = NULL; protected $defaultLangcode = 'en'; protected $translations = [...]; protected $translationInitialize = FALSE; protected $newRevision = FALSE; protected $isDefaultRevision = '1'; protected $entityKeys = [...]; protected $translatableEntityKeys = [...]; protected $validated = FALSE; protected $validationRequired = FALSE; protected $loadedRevisionId = '295'; protected $revisionTranslationAffectedKey = 'revision_translation_affected'; protected $enforceRevisionTranslationAffected = [...]; protected $isSyncing = FALSE; public $in_preview = NULL }, '#view_mode' => 'full', '#cache' => ['tags' => [...], 'contexts' => [...], 'max-age' => -1, 'keys' => [...], 'bin' => 'render'], '#pre_render' => [0 => [...], 1 => [...], 2 => [...]], '#post_render' => [0 => [...]], '#theme' => 'node', '#weight' => 0, '#entity_type' => 'node', '#attached' => ['html_head_link' => [...]], '#cache_properties' => [0 => '#title']], $is_root_call = FALSE ) | .../HtmlRenderer.php:242 |
| 5 | 0.0826 | 7934472 | Drupal\Core\Render\Renderer->doRender( $elements = ['#node' => class Drupal\node\Entity\Node { protected $entityTypeId = 'node'; protected $enforceIsNew = NULL; protected $typedData = NULL; protected ?Drupal\Core\Entity\EntityInterface $originalEntity = NULL; protected $cacheContexts = [...]; protected $cacheTags = [...]; protected $cacheMaxAge = -1; protected $_serviceIds = [...]; protected $_entityStorages = [...]; protected $values = [...]; protected $fields = [...]; protected $fieldDefinitions = NULL; protected $languages = [...]; protected $langcodeKey = 'langcode'; protected $defaultLangcodeKey = 'default_langcode'; protected $activeLangcode = 'x-default'; protected ?bool $enforceDefaultTranslation = NULL; protected $defaultLangcode = 'en'; protected $translations = [...]; protected $translationInitialize = FALSE; protected $newRevision = FALSE; protected $isDefaultRevision = '1'; protected $entityKeys = [...]; protected $translatableEntityKeys = [...]; protected $validated = FALSE; protected $validationRequired = FALSE; protected $loadedRevisionId = '295'; protected $revisionTranslationAffectedKey = 'revision_translation_affected'; protected $enforceRevisionTranslationAffected = [...]; protected $isSyncing = FALSE; public $in_preview = NULL }, '#view_mode' => 'full', '#cache' => ['tags' => [...], 'contexts' => [...], 'max-age' => -1, 'keys' => [...], 'bin' => 'render'], '#pre_render' => [0 => [...], 1 => [...], 2 => [...]], '#post_render' => [0 => [...]], '#theme' => 'node', '#weight' => 0, '#entity_type' => 'node', '#attached' => ['html_head_link' => [...]], '#cache_properties' => [0 => '#title']], $context = class Drupal\Core\Render\RenderContext { private ${SplDoublyLinkedList}flags = 6; private ${SplDoublyLinkedList}dllist = [0 => class Drupal\Core\Render\BubbleableMetadata { ... }] } ) | .../Renderer.php:230 |
| 6 | 0.0846 | 7945376 | Drupal\Core\Render\Renderer->doCallback( $callback_type = '#pre_render', $callback = [0 => class Drupal\node\NodeViewBuilder { protected $moduleHandler = class Drupal\Core\Extension\ModuleHandler { ... }; protected $stringTranslation = class Drupal\Core\StringTranslation\TranslationManager { ... }; protected $_serviceIds = [...]; protected $_entityStorages = [...]; protected $entityTypeId = 'node'; protected $entityType = class Drupal\Core\Entity\ContentEntityType { ... }; protected $entityRepository = class Drupal\Core\Entity\EntityRepository { ... }; protected $entityDisplayRepository = class Drupal\Core\Entity\EntityDisplayRepository { ... }; protected $cacheBin = 'render'; protected $languageManager = class Drupal\Core\Language\LanguageManager { ... }; protected $themeRegistry = class Drupal\Core\Theme\Registry { ... }; protected $singleFieldDisplays = NULL }, 1 => 'build'], $args = [0 => ['#node' => class Drupal\node\Entity\Node { ... }, '#view_mode' => 'full', '#cache' => [...], '#pre_render' => [...], '#post_render' => [...], '#theme' => 'node', '#weight' => 0, '#entity_type' => 'node', '#attached' => [...], '#cache_properties' => [...]]] ) | .../Renderer.php:447 |
| 7 | 0.0846 | 7945696 | Drupal\Core\Render\Renderer->doTrustedCallback( $callback = [0 => class Drupal\node\NodeViewBuilder { protected $moduleHandler = class Drupal\Core\Extension\ModuleHandler { ... }; protected $stringTranslation = class Drupal\Core\StringTranslation\TranslationManager { ... }; protected $_serviceIds = [...]; protected $_entityStorages = [...]; protected $entityTypeId = 'node'; protected $entityType = class Drupal\Core\Entity\ContentEntityType { ... }; protected $entityRepository = class Drupal\Core\Entity\EntityRepository { ... }; protected $entityDisplayRepository = class Drupal\Core\Entity\EntityDisplayRepository { ... }; protected $cacheBin = 'render'; protected $languageManager = class Drupal\Core\Language\LanguageManager { ... }; protected $themeRegistry = class Drupal\Core\Theme\Registry { ... }; protected $singleFieldDisplays = NULL }, 1 => 'build'], $args = [0 => ['#node' => class Drupal\node\Entity\Node { ... }, '#view_mode' => 'full', '#cache' => [...], '#pre_render' => [...], '#post_render' => [...], '#theme' => 'node', '#weight' => 0, '#entity_type' => 'node', '#attached' => [...], '#cache_properties' => [...]]], $message = 'Render #pre_render callbacks must be methods of a class that implements \\Drupal\\Core\\Security\\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', $error_type = 'exception', $extra_trusted_interface = 'Drupal\\Core\\Render\\Element\\RenderCallbackInterface' ) | .../Renderer.php:914 |
| 8 | 0.0846 | 7945912 | call_user_func_array:{/var/www/html/drupal/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php:107}( $callback = [0 => class Drupal\node\NodeViewBuilder { protected $moduleHandler = class Drupal\Core\Extension\ModuleHandler { ... }; protected $stringTranslation = class Drupal\Core\StringTranslation\TranslationManager { ... }; protected $_serviceIds = [...]; protected $_entityStorages = [...]; protected $entityTypeId = 'node'; protected $entityType = class Drupal\Core\Entity\ContentEntityType { ... }; protected $entityRepository = class Drupal\Core\Entity\EntityRepository { ... }; protected $entityDisplayRepository = class Drupal\Core\Entity\EntityDisplayRepository { ... }; protected $cacheBin = 'render'; protected $languageManager = class Drupal\Core\Language\LanguageManager { ... }; protected $themeRegistry = class Drupal\Core\Theme\Registry { ... }; protected $singleFieldDisplays = NULL }, 1 => 'build'], $args = [0 => ['#node' => class Drupal\node\Entity\Node { ... }, '#view_mode' => 'full', '#cache' => [...], '#pre_render' => [...], '#post_render' => [...], '#theme' => 'node', '#weight' => 0, '#entity_type' => 'node', '#attached' => [...], '#cache_properties' => [...]]] ) | .../DoTrustedCallbackTrait.php:107 |
| 9 | 0.0846 | 7946144 | Drupal\Core\Entity\EntityViewBuilder->build( $build = ['#node' => class Drupal\node\Entity\Node { protected $entityTypeId = 'node'; protected $enforceIsNew = NULL; protected $typedData = NULL; protected ?Drupal\Core\Entity\EntityInterface $originalEntity = NULL; protected $cacheContexts = [...]; protected $cacheTags = [...]; protected $cacheMaxAge = -1; protected $_serviceIds = [...]; protected $_entityStorages = [...]; protected $values = [...]; protected $fields = [...]; protected $fieldDefinitions = NULL; protected $languages = [...]; protected $langcodeKey = 'langcode'; protected $defaultLangcodeKey = 'default_langcode'; protected $activeLangcode = 'x-default'; protected ?bool $enforceDefaultTranslation = NULL; protected $defaultLangcode = 'en'; protected $translations = [...]; protected $translationInitialize = FALSE; protected $newRevision = FALSE; protected $isDefaultRevision = '1'; protected $entityKeys = [...]; protected $translatableEntityKeys = [...]; protected $validated = FALSE; protected $validationRequired = FALSE; protected $loadedRevisionId = '295'; protected $revisionTranslationAffectedKey = 'revision_translation_affected'; protected $enforceRevisionTranslationAffected = [...]; protected $isSyncing = FALSE; public $in_preview = NULL }, '#view_mode' => 'full', '#cache' => ['tags' => [...], 'contexts' => [...], 'max-age' => -1, 'keys' => [...], 'bin' => 'render'], '#pre_render' => [0 => [...], 1 => [...], 2 => [...]], '#post_render' => [0 => [...]], '#theme' => 'node', '#weight' => 0, '#entity_type' => 'node', '#attached' => ['html_head_link' => [...]], '#cache_properties' => [0 => '#title']] ) | .../DoTrustedCallbackTrait.php:107 |
| 10 | 0.0846 | 7946360 | Drupal\Core\Entity\EntityViewBuilder->buildMultiple( $build_list = [0 => ['#node' => class Drupal\node\Entity\Node { ... }, '#view_mode' => 'full', '#cache' => [...], '#pre_render' => [...], '#post_render' => [...], '#theme' => 'node', '#weight' => 0, '#entity_type' => 'node', '#attached' => [...], '#cache_properties' => [...]]] ) | .../EntityViewBuilder.php:255 |
| 11 | 0.0848 | 7948808 | Drupal\Core\Entity\Entity\EntityViewDisplay::collectRenderDisplays( $entities = [0 => class Drupal\node\Entity\Node { protected $entityTypeId = 'node'; protected $enforceIsNew = NULL; protected $typedData = NULL; protected ?Drupal\Core\Entity\EntityInterface $originalEntity = NULL; protected $cacheContexts = [...]; protected $cacheTags = [...]; protected $cacheMaxAge = -1; protected $_serviceIds = [...]; protected $_entityStorages = [...]; protected $values = [...]; protected $fields = [...]; protected $fieldDefinitions = NULL; protected $languages = [...]; protected $langcodeKey = 'langcode'; protected $defaultLangcodeKey = 'default_langcode'; protected $activeLangcode = 'x-default'; protected ?bool $enforceDefaultTranslation = NULL; protected $defaultLangcode = 'en'; protected $translations = [...]; protected $translationInitialize = FALSE; protected $newRevision = FALSE; protected $isDefaultRevision = '1'; protected $entityKeys = [...]; protected $translatableEntityKeys = [...]; protected $validated = FALSE; protected $validationRequired = FALSE; protected $loadedRevisionId = '295'; protected $revisionTranslationAffectedKey = 'revision_translation_affected'; protected $enforceRevisionTranslationAffected = [...]; protected $isSyncing = FALSE; public $in_preview = NULL }], $view_mode = 'full' ) | .../EntityViewBuilder.php:297 |
| 12 | 0.0870 | 7976736 | Drupal\Core\Entity\EntityStorageBase->loadMultiple( $ids = ['blog_post' => 'node.blog_post.default'] ) | .../EntityViewDisplay.php:130 |
| 13 | 0.0870 | 7977144 | Drupal\Core\Config\Entity\ConfigEntityStorage->doLoadMultiple( $ids = ['blog_post' => 'node.blog_post.default'] ) | .../EntityStorageBase.php:355 |
| 14 | 0.0871 | 7978248 | Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplayStorage->mapFromStorageRecords( $records = ['node.blog_post.default' => ['uuid' => '4df4b28e-c310-4b96-91d6-40c93d245c10', 'langcode' => 'en', 'status' => TRUE, 'dependencies' => [...], '_core' => [...], 'id' => 'node.blog_post.default', 'targetEntityType' => 'node', 'bundle' => 'blog_post', 'mode' => 'default', 'content' => [...], 'hidden' => [...]]] ) | .../ConfigEntityStorage.php:168 |
| 15 | 0.0871 | 7978688 | Drupal\Core\Entity\EntityStorageBase->mapFromStorageRecords( $records = ['node.blog_post.default' => ['uuid' => '4df4b28e-c310-4b96-91d6-40c93d245c10', 'langcode' => 'en', 'status' => TRUE, 'dependencies' => [...], '_core' => [...], 'id' => 'node.blog_post.default', 'targetEntityType' => 'node', 'bundle' => 'blog_post', 'mode' => 'default', 'content' => [...], 'hidden' => [...]]] ) | .../LayoutBuilderEntityViewDisplayStorage.php:41 |
| 16 | 0.0871 | 7979456 | Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->__construct( $values = ['uuid' => '4df4b28e-c310-4b96-91d6-40c93d245c10', 'langcode' => 'en', 'status' => TRUE, 'dependencies' => ['config' => [...], 'module' => [...]], '_core' => ['default_config_hash' => '1hG2mu0xfv_LiRUMRmAUuJmUL_K4AXFJgk6Pm5muw-A'], 'id' => 'node.blog_post.default', 'targetEntityType' => 'node', 'bundle' => 'blog_post', 'mode' => 'default', 'content' => ['body' => [...], 'field_blog_comments' => [...], 'field_blog_tags' => [...], 'links' => [...]], 'hidden' => []], $entity_type = 'entity_view_display' ) | .../EntityStorageBase.php:468 |
| 17 | 0.0871 | 7979456 | Drupal\Core\Entity\Entity\EntityViewDisplay->__construct( $values = ['uuid' => '4df4b28e-c310-4b96-91d6-40c93d245c10', 'langcode' => 'en', 'status' => TRUE, 'dependencies' => ['config' => [...], 'module' => [...]], '_core' => ['default_config_hash' => '1hG2mu0xfv_LiRUMRmAUuJmUL_K4AXFJgk6Pm5muw-A'], 'id' => 'node.blog_post.default', 'targetEntityType' => 'node', 'bundle' => 'blog_post', 'mode' => 'default', 'content' => ['body' => [...], 'field_blog_comments' => [...], 'field_blog_tags' => [...], 'links' => [...]], 'hidden' => []], $entity_type = 'entity_view_display' ) | .../LayoutBuilderEntityViewDisplay.php:52 |
| 18 | 0.0872 | 7980352 | Drupal\Core\Entity\EntityDisplayBase->__construct( $values = ['uuid' => '4df4b28e-c310-4b96-91d6-40c93d245c10', 'langcode' => 'en', 'status' => TRUE, 'dependencies' => ['config' => [...], 'module' => [...]], '_core' => ['default_config_hash' => '1hG2mu0xfv_LiRUMRmAUuJmUL_K4AXFJgk6Pm5muw-A'], 'id' => 'node.blog_post.default', 'targetEntityType' => 'node', 'bundle' => 'blog_post', 'mode' => 'default', 'content' => ['body' => [...], 'field_blog_comments' => [...], 'field_blog_tags' => [...], 'links' => [...]], 'hidden' => []], $entity_type = 'entity_view_display' ) | .../EntityViewDisplay.php:190 |
| 19 | 0.0872 | 7980400 | Drupal\Core\Entity\EntityDisplayBase->init( ) | .../EntityDisplayBase.php:155 |
| 20 | 0.0876 | 8023072 | Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->setComponent( $name = 'uid', $options = ['label' => 'hidden', 'type' => 'author', 'weight' => 0, 'region' => 'content'] ) | .../EntityDisplayBase.php:204 |
| 21 | 0.0876 | 8023072 | Drupal\Core\Entity\EntityDisplayBase->setComponent( $name = 'uid', $options = ['label' => 'hidden', 'type' => 'author', 'weight' => 0, 'region' => 'content'] ) | .../LayoutBuilderEntityViewDisplay.php:446 |
| 22 | 0.0876 | 8023072 | Drupal\Core\Field\FormatterPluginManager->prepareConfiguration( $field_type = 'entity_reference', $configuration = ['label' => 'hidden', 'type' => 'author', 'weight' => 0, 'region' => 'content'] ) | .../EntityDisplayBase.php:360 |
| 23 | 0.0876 | 8023448 | Drupal\Core\Field\FormatterPluginManager->getDefaultSettings( $type = 'author' ) | .../FormatterPluginManager.php:154 |
| 24 | 0.0876 | 8023448 | Drupal\Core\Plugin\DefaultPluginManager->getDefinition( $plugin_id = 'author', $exception_on_invalid = FALSE ) | .../FormatterPluginManager.php:203 |
| 25 | 0.0876 | 8023448 | Drupal\Core\Plugin\DefaultPluginManager->getDefinitions( ) | .../DiscoveryCachedTrait.php:25 |
| 26 | 0.0878 | 8023776 | Drupal\Core\Plugin\DefaultPluginManager->findDefinitions( ) | .../DefaultPluginManager.php:216 |
| 27 | 0.0890 | 8131096 | Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions( ) | .../DefaultPluginManager.php:340 |
| 28 | 0.0890 | 8131096 | Drupal\Core\Plugin\Discovery\AttributeDiscoveryWithAnnotations->getDefinitions( ) | .../DerivativeDiscoveryDecorator.php:86 |
| 29 | 0.0891 | 8131368 | Drupal\Component\Plugin\Discovery\AttributeClassDiscovery->getDefinitions( ) | .../AttributeDiscoveryWithAnnotations.php:67 |
| 30 | 0.1176 | 8473136 | class_exists( $class = 'Drupal\\file_entity\\Plugin\\Field\\FieldFormatter\\FileImageResponsiveFormatter', $autoload = TRUE ) | .../AttributeClassDiscovery.php:162 |
| 31 | 0.1176 | 8473320 | Composer\Autoload\ClassLoader->loadClass( $class = 'Drupal\\file_entity\\Plugin\\Field\\FieldFormatter\\FileImageResponsiveFormatter' ) | .../AttributeClassDiscovery.php:162 |
| 32 | 0.1176 | 8473480 | Composer\Autoload\{closure:/var/www/html/drupal/vendor/composer/ClassLoader.php:581-583}( $file = '/var/www/html/drupal/web/modules/contrib/file_entity/src/Plugin/Field/FieldFormatter/FileImageResponsiveFormatter.php' ) | .../ClassLoader.php:433 |