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();
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
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> ' ] );
Delete all duplicate URL Aliases ( langcode-path-alias ) :
Das Problem (Logs überfüllt mit):
Notice: Trying to access array offset on value of type null in Drupal\views\Plugin\views\display\EntityReference->query() (Zeile 195 in /var/www/web/core/modules/views/src/Plugin/views/display/EntityReference.php)
core\modules\views\src\Plugin\views\display\EntityReference.php (Line 156):
Lösung
Aktivieren Sie 2FA in Ihrem E-Mail-Konto und verwenden Sie das App-Passwort statt E-Mail-Passwort für die SMTP-Authentifizierung.
Seit Jahren verschickt unsere Website Emails via Drupal + SMTP + Gmail. Die Authentifizierung hat immer über MeineEmail@gmail.com und Passwort wunderbar funktioniert.
Seit zwei Wochen gibt es aber nur noch diese Fehlermeldung :
Fehler beim E-Mail-Versand
SMTP Error: Could not authenticate.
Unser Passwort funktioniert und über Firefox, Chrome usw können wir uns auf Gmail ganz normal anmelden.
Was ist das Problem und wie ist die Lösung ?
Neueste Kommentare
Same with Drush 13 + PHP 8.3 and my Solution
Same with Drush 13 + PHP 8.3
Error : Failed to install the required package 'RPM' by using AP
Initializing...
Error : Failed to install the required package 'RPM' by using APT. Please install it manually.
Exit
Solution:
Installieren & Aktivieren
So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert:
I have a view with a path…
I have a view with a path like
/my-content-export
to export entivies as JSON or CSV.admin_toolbar 3.5.2 is the…
admin_toolbar 3.5.2 is the reason. Patch coming ...
Drupal 10.4, in a custom View
Drupal 10.4:
Tools & Settings >> Security…
Tools & Settings >> Security Policy :
Allow only secure FTPS connections
List config vaiables
/usr/sbin/mariadbd --help --verbose | grep "query.*size"
Restart MariaDB / MySQL
Commandline:
MariaDB Restart (after changes in /etc/mysql/db-performance.cnf)
After my changes in /etc/mysql/db-performance.cnf