Herzlich Willkommen ツ

Migrating ownCloud 10.4.1 to nextcloud 18 Odyssee

28.05.2020 - 20:55

Migrating ownCloud to nextcloud typically isn't that hard thank to the nextcloud developers who provide a user friendly migration script: https://nextcloud.com/migration/

Sadly at the moment the migration script only supports ownCloud migrations up to 10.0.x and not 10.x.

1) Old PHP Versions


Drupal 8: Add field validation constraint programmatically

14.05.2020 - 16:41

In foundation_anchor_menu_block module I needed to add a validation to a field in a block to ensure the entered value matches the regex allowed for an "id" HTML element attribute.


Drupal 8: Delete view programmatically

12.05.2020 - 15:22

If you should run into the same situation, that you'd like to delete a view programmatically, for example on module uninstall, here you go:

  1. \Drupal::service('config.factory')->getEditable('views.view.' . $view_name)->delete();


VSCode: (Better) alternative to phpcs & intelephense for Drupal Code style / linting: phpcbf

08.05.2020 - 18:00

After fighting a lot with phpcs, intelephense and WSL2 in VSCode, I found vscode-phpcbf and hey, it works! :D immediately!

And it shares the Standard with phpcs!

https://marketplace.visualstudio.com/items?itemName=persoderlind.vscode-...


PR_END_OF_FILE_ERROR in Firefox may be caused by fail2ban

06.05.2020 - 13:12

If you experience a PR_END_OF_FILE_ERROR in firefox, I experienced that it might be caused by a fail2ban block for the given user IP on SSL / https pages.

Just as a note to myself if I should ever run into that problem again.

Further information can be found here for example:
https://support.mozilla.org/en-US/questions/1267074


Using wget for Cronjob without output

24.02.2020 - 10:37

Short snippet to use for a cronjob to call a url if you don't want any output:

* * * * * /usr/bin/wget wget -qO /dev/null https://www.example.com/your-script-to-run

Or to only use HEAD:
* * * * * /usr/bin/wget wget --spider -qO /dev/null https://www.example.com/your-script-to-run

For further details see https://www.gnu.org/software/wget/manual/wget.html


Download PDFs in Cordova InAppBrowser (3.1.0)

09.12.2019 - 18:28

I wasted several hours on handling PDF downloads in cordovas inAppBrowser.

My situation was that a page was loaded in inAppBrowser which contained links to PDF Downloads from the same host.
The links simply didn't work.


JTL Shop 4: Google Analytics Zielvorhaben einrichten

JTL Shop 4: Google Analytics Zielvorhaben einrichten

15.10.2019 - 11:04

Auch mit dem JTL-Shop4 lässt sich schnell und einfach in Google Analytics ein Zielvorhaben für Verkäufe einrichten. Somit erhaltet Ihr Transparenz über Käufe, ggf. sogar ohne die eCommerce Erweiterung nutzen zu müssen und eine optionale Alternative für das Google Ads Conversion Tracking via Tracking Code


JTL-Shop 4 "keinBild.gif" Platzhalter Grafik updatesicher ersetzen / überschreiben

19.08.2019 - 18:23

Heute ein kleiner Tipp für JTL-Shop Entwickler: Wenn ihr die Platzhalter-Grafik für "Kein Bild vorhanden", z.B. für Kategorien, Produktbilder o.Ä. kundenspezfisch und updatesicher durch Grafiken aus Eurem JTL-Shop Template ersetzen möchtet, könnt ihr dies durch folgende Einträge in der Konfiguration erzielen (Beispiel):


Drupal 8 print current breadcrumb trail with route title

07.08.2019 - 20:38

Whao, that wasn't as easy as I thought. I wanted to print out the two top level breadcrumb elements, without "Home", with node title in a custom block. I tried it in many different ways but ran into surprises every time. So finally I'd like to share my code with you, if you should run into the same situation:


Inhalt abgleichen