TypeError: Argument 1 passed to Drupal\Core\Plugin\Context\Context::__construct() must implement interface ... ContextDefinitionInterface, null given, called in

Wenn ich Unterseiten (node/123...) aufrufe, bekomme ich diese Fehlermeldung :

 

The website encountered an unexpected error. Please try again later.

 

TypeError: Argument 1 passed to Drupal\Core\Plugin\Context\Context::__construct() must implement interface Drupal\Core\Plugin\Context\ContextDefinitionInterface, null given, called in /var/www/mysite1.local/web/core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php on line 85 in Drupal\Core\Plugin\Context\Context->__construct() (Zeile 50 in /var/www/mysite1.local/web/core/lib/Drupal/Core/Plugin/Context/Context.php)
#0 /var/www/mysite1.local/web/core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php(85): Drupal\Core\Plugin\Context\Context->__construct()
#1 /var/www/mysite1.local/web/core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php(116): Drupal\Core\Executable\ExecutablePluginBase->getContext()
#2 /var/www/mysite1.local/web/core/lib/Drupal/Core/Entity/Plugin/Condition/EntityBundle.php(91): Drupal\Core\Executable\ExecutablePluginBase->getContextValue()
#3 /var/www/mysite1.local/web/core/lib/Drupal/Core/Condition/ConditionManager.php(77): Drupal\Core\Entity\Plugin\Condition\EntityBundle->evaluate()
#4 /var/www/mysite1.local/web/core/lib/Drupal/Core/Condition/ConditionPluginBase.php(84): Drupal\Core\Condition\ConditionManager->execute()
#5 /var/www/mysite1.local/web/modules/contrib/view_mode_page/src/Entity/ViewmodepagePattern.php(411): Drupal\Core\Condition\ConditionPluginBase->execute()
#6 /var/www/mysite1.local/web/modules/contrib/view_mode_page/src/PathProcessor/DynamicPathProcessor.php(107): Drupal\view_mode_page\Entity\ViewmodepagePattern->applies()
#7 /var/www/mysite1.local/web/core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php(70): Drupal\view_mode_page\PathProcessor\DynamicPathProcessor->processInbound()
#8 /var/www/mysite1.local/web/modules/contrib/redirect/src/EventSubscriber/RedirectRequestSubscriber.php(138): Drupal\Core\PathProcessor\PathProcessorManager->processInbound()
#9 [internal function]: Drupal\redirect\EventSubscriber\RedirectRequestSubscriber->onKernelRequestCheckRedirect()
#10 /var/www/mysite1.local/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
#11 /var/www/mysite1.local/vendor/symfony/http-kernel/HttpKernel.php(134): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#12 /var/www/mysite1.local/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#13 /var/www/mysite1.local/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#14 /var/www/mysite1.local/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#15 /var/www/mysite1.local/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#16 /var/www/mysite1.local/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#17 /var/www/mysite1.local/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
#18 /var/www/mysite1.local/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#19 /var/www/mysite1.local/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#20 /var/www/mysite1.local/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#21 /var/www/mysite1.local/web/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle()
#22 /var/www/mysite1.local/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#23 {main}

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare

  • 3 weeks 4 days ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    Das geht auch:

          $this->operator = $break->operator ?? '' ;
  • 1 month 1 week ago
    Bootstrap 5 subtheme is not properly configured. This may be caused by a problem with file or directory permissions.
  • 3 weeks 4 days ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    It works too:

    • web/core/modules/views/src/Plugin/views/argument/NumericArgument.php 

    Line 63, 96 :

  • 1 month 2 weeks ago
    Site URI : http://default (Drupal, how2 update config?)

    Add this line to drupalroot/vendor/drush/drush/drush.yml

  • 2 months 3 weeks ago
    Webserver CPU Performance Test mit PHP

    Time: 0,19 

    CPU: AMD Ryzen 7 PRO 3700 8-Core Processor

  • 4 months 1 week ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    Line 63, 99 :

  • 5 months 1 week ago
    Drupal + Basic_Auth Problem : You do not have permission to access this page (Sie haben keine Zugriffsberechtigung für diese Seite. )

    My problem was:

  • 5 months 1 week ago
    Drupal Upgrade (Drupal 9 » Drupal 10)

    I had this exact issue and your site was the only place I found the fix.

    It'd be nice if the module developer applied your fix though.

    Good work! Much appreciated!

  • 6 months 1 week ago
    The datasource with ID 'elstut--entity:node' could not be retrieved for index (Drupal, Solr)

    Hier ist die Lösung. (/admin/config/search/search-api/server/solr_server/edit)

    Multisite-Kompatibilität
     + Nur Ergebnisse von dieser Seite beziehen
     

  • 6 months 1 week ago
    PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock

     

    Ich bekomme diese Fehlermeldung: