Das Leeren des Caches in Drupal kann auf verschiedene Weisen durchgeführt werden.
Drupal
Drupal Upgrade Error:
Reset Drupal User Password via Drush + Commandline
drush user:password admin "mypassword123"
drush upwd admin "mypassword123"
Problem
Unable to create temporary directory for Upgrade Status at /var/www/vhosts/example.com/tmp/upgrade_status Scanning is not possible until this is resolved.
Create directory & chmod +w
mkdir /var/www/vhosts/example.com/tmp/upgrade_status
chmod +w /var/www/vhosts/example.com/tmp/upgrade_status
use Markup in Drupal
use Drupal\Core\Render\Markup;
PHP Code
$html_code = " <p> ✕ </p> ";
$link_with_html = Link::createFromRoute( Markup::create( $html_code ), 'my_module')->toString();
Um eine einmalige Login Link zu erstellen (ohne Password-Reset Zwang) :
drush uli --name=MyUsername
Man hat ein Hosting + Basic_Auth aktiviert.
Nachdem Authentifizierung (Basic_Auth) zeigt Drupal eine Meldung statt Inhalt "Sie haben keine Zugriffsberechtigung für diese Seite. " (English: You do not have permission to access this page).
Die Lösung ist oft eine Deaktivierung von Basic_Auth Modul von Drupal:
drush pmu basic_auth -y
Problem (während # drush cr)
In InfoParserDynamic.php line 88:
The 'core_version_requirement' constraint (^9.4 || ^10) requires the 'core' key not be set in themes/contrib/bootstrap_barrio/bootstrap_barrio.info.yml
Lösung :
Die Zeile mit "core: 8.x" aus der Datei "bootstrap_barrio.info.yml" entfernen. Danach sollte der Anfang so aussehen:
Composer Error:
In Filesystem.php line 284:
Could not delete /var/www/.../sites/default/default.services.yml
Was ist die Lösung ?
HTML Benachrichtigung durch Drupal Messenger:
\Drupal::messenger()->addStatus( [ '#markup' => '<div><b>BoldText</b> and other HTML </div> ' ] );