Drupal (Auto) Update mit Shell Script & Cronjobs
- 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
15 3 * * * /path/to/drupal_backup_update.sh
chmod +x drupal_backup_update.sh
So geht es:
drush php-eval 'my_custom_module_cron();'
Controller könnte so aussehen:
Message:
EN: Attempting to re-run cron while it is already running.
DE: Versuche Cron erneut auszuführen, obwohl er bereits ausgeführt wird.
How fo fix it?
Was ist die Lösung?
Drupal's Forward Module hat ein Nachteil: jedes Form hat eine numerische eindeutige ID, was unmöglich macht Formulare mit Captcha / Recaptcha zu schützen.
zB:
Deswegen ist ein Patch nötig.
File:Line
modules\contrib\forward\src\Form\ForwardForm.php:187
Problem:
Solarium 5.0.2 is too old and has known issues. In order to get composer to upgrade solarium to a recent version a core patch or a workaround is required. Have a look at this Core issue and this Search API Solr issue.
Lösung:
composer require symfony/event-dispatcher:"4.3.4 as 3.4.99" && composer update
Drupal Update 8.6.16 auf 8.7.5
Woran liegt das, dass ich so eine Meldung bekomme:
This branch of Entity Browser is not compatible with the version of Media Entity installed. (Currently using Entity Browser This branch of Entity Browser is not compatible with the version of Media Entity installed.)
drush sql-dump --result-file="/path/to/backups/$(date +%Y%m%d_%H%M%S).sql"
Database dump saved to /path/to/backups/20190218_230104.sql
in .htaccess hinzufügen (ca. Zeile 165)
RewriteCond %{REQUEST_URI} !/meine-eigene-dateien/[^/]*\.php$
Wenn die Seite /admin/people aufgerufen wird, sieht man diese Fehlermeldung:
Drupal\Core\Extension\Exception\UnknownExtensionException: The module standard does not exist. in Drupal\Core\Extension\ExtensionList->get() (line 257 of /d8/public_html/core/lib/Drupal/Core/Extension/ExtensionList.php).
Woran liegt das?
Die Drupal Version ist 8.6.