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

  • 4 weeks ago
    Transaction isolation level REPEATABLE-READ The recommended level for Drupal is "READ COMMITTED". (Drupal Status Report)

     Edit "/etc/my.cnf" ( under [mysqld] ):

    transaction_isolation="READ-COMMITTED"

    Restart MariaDB / MySQL:

  • 1 month ago
    Wget - Eine Webseite rekursive downloaden

    wget -U 'Mozilla/MyUserAgent' -P MyTempDir123 --wait=0.2 --random-wait -nd -r -x -l 4 -e robots=off --reject

  • 1 month ago
    Wget - Eine Webseite rekursive downloaden

    wget -U 'Mozilla/MyUserAgent2024' -P MyOutPutDirectory --wait=1 --random-wait -nd -r -l 2 -e robots=off --reject

  • 2 months 1 week ago
    CPU benchmarking with sysbench (single-threaded/all cores)

     

    # sysbench --threads="$(nproc)" cpu run

  • 2 months 1 week ago
    CPU benchmarking with sysbench (single-threaded/all cores)

    # sysbench --threads="$(nproc)" cpu run

  • 2 months 1 week ago
    Linux Autovervollständigung - bash autocomplete
    source ~/.bashrc

    Diese Lösung wird empfohlen aber hat bei mir nicht funktioniert.

    Welche Alternative gibt es?

  • 2 months 1 week ago
    PHP-CLI auf PHP8.2 umstellen (für Composer, Drush etc)

    ln -snf /opt/plesk/php/8.3/bin/php /etc/alternatives/php

  • 2 months 1 week ago
    Drush Update failed (require php >=8.2)

    In composer.json, update: 

     

  • 2 months 1 week ago
    Drupal: Anmeldung fehlgeschlagen Es hat mehr als 5 fehlerhafte Anmeldeversuche für dieses Benutzerkonto gegeben. Es ist vorübergehend gesperrt.
    drush sqlq "DELETE FROM flood"
  • 2 months 1 week ago
    Drupal SMTP + Gmail funktioniert nicht mehr (Passwort ist richtig); was ist die Lösung?