Herzlich Willkommen ツ

Composer set memory_limit in bash

16.05.2019 - 12:41

PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108864 bytes) in ...

If you are running into a memory_limit when using composer, there are many ways to solve the problem. Finally I'm hoping for enhancements in composer to require less memory. But until that I've found a quick solution in bash:


Run jAnrufmonitor with OpenJDK on Windows 10

23.04.2019 - 09:46

Just a little hint, if you'd like to run jAnrufmonitor with OpenJDK and it complains it requires Java on start... simply use the RegEdit edit file offered here: https://www.janrufmonitor.de/warum-startet-janrufmonitor-nach-einem-upda...


OpenJDK Installer Open Source

23.04.2019 - 09:17

Eine kurze Randnotiz, falls ihr einen Installer für OpenJDK aufgrund der Oracle Lizenzänderung sucht: https://adoptopenjdk.net/ bietet .msi Installer für diverse Betriebssysteme und ist somit besonders benutzerfreundlich.


gtag.js Conversion Tracking in Drupal 7

How to track Google Ads conversions in Drupal (gtag.js) on specific pages

17.04.2019 - 17:20

My Drupal pro tip today only concerns Drupal 7 (sadly), because the tracking_code module is not available for Drupal 8 currently.

My little task was to add a Google Ads conversion tracking on a customer page. Google Ads uses gtag.js.


Drupal 8 Media: Format file size output / display

04.04.2019 - 12:19

If you'd like to output Drupal 8 Media file size (mapper field) output in human-readable format, this snippet may help you!

in MYTHEME.theme file:

  1. function MYTHEME_preprocess_media(&$variables) {
  2.   /** @var \Drupal\media_entity\MediaInterface $media */
  3.   $media = $variables['elements']['#media'];
  4.  
  5.   if ($media->bundle() == 'document' && !empty($media-> field_document_size)) {


Drupal 8 Backup-Migrate running into out-of-memory Error? A large key_value_expire table may be the cause!

03.04.2019 - 11:32

On a customer page we were running into problems with backup_migrate aborting with out of memory errors. In contrast to other similar websites we found out that a bug ([#2931611]) in the honeypot module caused the key_value_expire database table to grow up to 2,3 GB of (useless) data.
This bug in detail is being targeted in this issue: [#2997609]


Drupal 8 on-demand error display with disabled cache via URL Parameter

04.03.2019 - 13:35

Have you ever wanted to disable Drupal 8 cache and enable error reporting only for a specific page or to quickly debug a problem?
Here's a simple solution how to enable debugging and disable caching for a single call using a URL debug parameter


Drupal 7 / 8: Lightweight set / exchange domain specific front page (e.g. for landingpages)

21.02.2019 - 13:20

Would you like to create a Landingpage for a specific topic in Drupal 7 / 8 on a separate landingpage domain (https://www.my-landingpage-example123.com/) as specific frontpage without using complex modules like Domain Access or multisite?
Then here's the lighweight way to go for you!


Shopware 5 PLZ-Bereich (Umkreis) versandkostenfrei für ausgewählte Kategorien

11.02.2019 - 19:08


(IFNULL(us.zipcode,ub.zipcode) IS NOT NULL) AND (IFNULL(us.zipcode,ub.zipcode) IN ('32312', '32310', '12345'))
AND
MIN(SELECT 1 FROM s_articles_categories WHERE articleID=a.id AND categoryID IN (22,56)) AS erlaubtekategorie


Drupal 8: Override views row (views-view-fields.html.twig) in views style plugin

16.01.2019 - 15:59

In the last days I developed the ZURB Foundation Views integration module for Drupal 8. To match the markup required by foundation accordion we first had to write a views style plugin in our module.


Inhalt abgleichen