drupal
-
Drupal 9/10: Fix Views Reset button with Big Pipe
I was flabbergasted to discover that Big Pipe breaks the Views Reset button. In fact, Big Pipe breaks all form redirects. Not sure how other Drupal devs feel about that, but this was a big smh moment for me. Just imagine the collective time wasted debugging one’s code until one...
-
Drupal 10: From cookies to user sessions
When you need to examine user session tokens, you know you’re deep in the bowels of the CMS. That’s what happened to me recently, as I was debugging why CloudFlare was mixing up user sessions and giving admin access to otherwise unpermissioned users
To help debug this, I needed...
-
Drupal 9: Troubleshooting Cache API issues, Part 1: Xdebug, wodby/drupal, VS Code
In my 30+ years of programming, my go-to debugging tool has been the judicious usage of
print
commands on the appropriate variables at the appropriate times. Of course,print
takes many different forms depending on the technology stack and the application model, but the principle remains... -
Drupal 9: Backup and Migrate - Drush 11 support
Supporting content migrations across stages is a tricky subject, and most tools I reviewed seemed too fragile or too complex to be delivered to a client. We opted to use a simple workflow based on BAM (Backup and Migrate) coupled with config re-synchronization. To help automate...
-
Drupal 9: Fixing Google Charts rendering in tabbed pages
Google Charts has a long-standing, known issue rendering correctly in hidden divs. This caused us much head scratching and debugging hours before we even landed on the correct diagnosis: a chart that renders correctly on the Charts API Example page does not...
-
Drupal 9: Backup and Migrate - PostgreSQL support
I was suprised this hadn’t been already done, so I added PostgreSQL support to the venerable Backup and Migrate (BAM) module. Instead of previous patches that implemented SQL generation and parsing manually, I opted for the much simpler and (imho) more robust approach of invoking the...
-
Drupal 9: Showing an export link for each manually updated config item
The Configuration API is by far the best surprise I got about Drupal 9. Finally, a core system that is robust enough to hold any configuration set reliably, and extensible enough for contrib modules. Back in Drupal 7, maintaining a consistent configuration across stages had been...
-
Still Drupal after all these years
I thought I was done with Drupal in 2016 when we rebuilt Meedan’s fact-checking platform, Check, using Ruby / React. It felt like a breath of fresh air to decouple the frontend from the backend, and further subdivide the application into a set of services that...