Direkt zum Inhalt

Drupal

Jeder kennt die Fehlermeldung (denke ich mal): "The website encountered an unexpected error. Please try again later." :(  ... und Du hast keinen Zugriff mehr zur Admin-Konsole unter Drupal ! Was tun?!

Hier ist eine mögliche Lösung:

1) Auf der Konsole 

vi ./themes/my_theme/my_theme.info.yml
die Zeile:
"base theme: stable" einfügen.

2) Die Zeile 6 in der Datei "block_place.info.yml" auskommentieren:
vi ./core/modules/block_place/block_place.info.yml

    1    name: Place Blocks
    2    type: module
    3    description: 'Allow administrators to place blocks from any Drupal page. This module is deprecated in Drupal 8.8.0 and will be removed in Drupal 9.0.0. See the change record for a list of alternatives. See https://www.drupal.org/node/3081957.'
    4    package: Core (Experimental)
    5    # version: VERSION
    6    #core: 8.x
    7    hidden: true
    8    dependencies:
    9      - drupal:block

.............

Abspeichern und die Webseite neu laden.

:)

PS: Allerdings könnte man die Datei 'settings.php' editieren, um mehr Informationen für das fehlgeschlagene Login zu erhalten.

vi ./app/sites/default/settings.php

$config['system.logging']['error_level'] = 'verbose';