Delete all duplicate URL Aliases ( langcode-path-alias ) :
Drupal
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 ?
Create Taxonomy Term (in Vocabulary):
use Drupal\taxonomy\Entity\Term;
$new_term = Term::create([
'vid' => 'name_of_the_vocabulary',
'name' => 'name of the term',
]);
$new_term->enforceIsNew();
$new_term->save();
Laut Composer gibt es 8 Updates, darunter Drupal Core 9.3.14 :
Drupal 8 (letzte Version) zeigt immer diese Fehlermeldung, wenn ich Module aktualisieren möchte (zB mit Drush). Unabhängig davon sehe ich diese Meldungen ab und zu in Logs.
# drush ws :
Obwohl man in Views, Blocks und auch in Anzeigen es markiert hat, wird das View trotzdem oft dargestellt bzw. Header / Footer bleiben sichtbar.
Lösung:
Gleiches Feld in Filter auswählen (if not empty)
Current Url
$current_url = Url::fromRoute('<current>');
$path = $current_url->toString();
Current Url : Internal Path / Route Name
$current_url->toString(); # /en/user/login
$current_url->getInternalPath(); # user/login
$path = $current_url->getRouteName(); # <current>
- Create : drupal_backup_update.sh
- Cronjob (Drupal Update every day at 03:15):
15 3 * * * /path/to/drupal_backup_update.sh
-
chmod +x drupal_backup_update.sh
Seitennummerierung
- Vorherige Seite
- Seite 7
- Nächste Seite
Neueste Kommentare
Alternative (without warnings like "no crontab for user")
Alternative (without warnings like "no crontab for dovecot") to see all tasks:
Problem:PHP APCu caching…
Problem:
Hilft "cp -avf old new && rm…
Hilft "
cp -avf old new && rm -rvf old"
nicht?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