I encountered this issue using the latest Drupal 10.3 on my local environment. When accessing the back-end of an individual paragraph, for example: /admin/structure/paragraphs_type/home_media/fields, a 500 error appears. After some trial and error, I managed to resolve the issue by setting ‘debug_cacheability_headers’ to false in the development.services.yml. I did not spend more time investigating the… Continue reading 500 server error on paragraph back-end in Drupal
Category: Uncategorized
Drupal Starshot – my thoughts
I kept a close eye on the DrupalCon Portland 2024 across the pond. In my opinion, the most exciting element is the announcement of the Drupal Starshot initiative, which is in summary, a Drupal 10 including carefully picked and preconfigured modules, managed using recipes. When it comes to the production of new projects, most of… Continue reading Drupal Starshot – my thoughts
Remove cache on an individual block in Drupal
This can be done by overriding the individual block settings, by updating its cache age to 0. Target an individual block in the preprocess hook in the .theme file.
Find and replace text string in a .sql file
Consider this error when importing a database into your live or local environment. The error is related to the inconsistencies between the encoding on the .sql file and the server. The fix is to run this bash command to find and replace the string “utf8mb4_0900_ai_ci” with “utf8mb4_unicode_ci”, or the specific encoding on your machine. Then… Continue reading Find and replace text string in a .sql file
My personal reflection on online privacy, data trackers and adblockers
I normally focus on web development and its technical aspects, covering Drupal, WordPress, software architecture and code. Today, I’d like to reflect on my opinions on privacy, its ethical implications in a more abstract sense. I’ll try to avoid using marketing jargon here. Please keep in mind what I mean by data tracking companies and… Continue reading My personal reflection on online privacy, data trackers and adblockers
Set the PHP version using .bashrc
Here’s a scenario:The hosting provider’s Apache server is using the PHP version specified by the control panel, via the web interface. It’s set to 8.1. However, the PHP version used by SSH (for my Linux user) is still using PHP 7.1.This causes issues when relying on Composer or Drush via SSH.I want to specify the… Continue reading Set the PHP version using .bashrc
ChatGPT, Node.js, and Drupal experiment
I’ve put together a brief video that summarizes my tinkering with ChatGPT, Node.js, and Drupal.
Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
I’m using Docksal to run local environments. This error indicates that Docker ran out of networks. I’m assuming there is a way to increase this limit, however, I went with the easy route by removing all networks using the below Docker command. Note, the same error could be also related to VPN being used. Also,… Continue reading Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
Get media document file url in twig
In Drupal: