A journey: Converting this site to D8

Submitted by Erik on Tue, 05/13/2014 - 09:57

Well, Drupal 8 is right around the corner. There's a lot of effort to get a beta release out, there are trainings being developed and books being written. But when I thought about the best way to teach myself about Drupal 8, the obvious choice was to install it and play around, investigate the issue queues, try to help in Sprints, and pick a small site to just bite the bullet and convert.

So since I only maintain one site, I guess this will have to do.

Varnish, Mollom, and Spam (oh, my!)

Submitted by Erik on Sat, 08/03/2013 - 18:15

I received an email the other day with the subject "Mollom's volume limit exceeded". Now, I work with the fine folks from Mollom and popped over to ask what was up? I have this blog and it's not all that crazy popular in terms of hits or probably even spam attempts, I do get spam that I have to clear out, but since I enabled Mollom two years ago, it has blocked 160K+ spam attempts… Mollom's free subscription for personal blogs is great and the spam that it auto blocks is not counted against you. So this volume limit should only be for "legitimate" comments and you're allowed 50 per day.

Migration bliss

Submitted by Erik on Sun, 04/15/2012 - 16:39

I have recently been working on a few projects that involve migrating legacy data to Drupal. In the past, I have used node_import, node_export, user_import, feeds, and migrate (version 1.x) and each has its pros and cons. But this project had a little more complexity and some pieces that I wasn't sure of how to approach with any of these methods. So I decided it was time to dive into migrate version 2.x.

Drupal login redirection

Submitted by Erik on Mon, 12/12/2011 - 15:51

One handy trick I've found is that when you're visiting a Drupal page and you notice that you're not logged in, you can simply add user?destination= into the URL right after the root of your Drupal site and keep the path. This means that




Then when you log in, you're brought back to the page you were viewing with no fuss.

I do this often enough that I decided to make it a bookmarklet.

Migrate nodereferences with dissimilar keys

Submitted by Erik on Mon, 10/24/2011 - 22:06

I ran into a problem using the Migrate module where I migrated a series of newsletter issues and then imported a series of articles that were related to each newsletter.

Typically, for nodereferences, you can add a dependency of the first migration. If both the newsletter issue table used a primary key and the article table used a foreign key of "issueid" then the mapping is very straight forward.

Develop Locally

Submitted by Erik on Sun, 10/16/2011 - 21:19

I presented at Drupal Camp New Hampshire 2011 and Drupal Camp MA 2012.

This talk was about running Drupal locally and how to set up a good development environment.

Edit: [2011-11-10] Just found out there's an error on the location of the my.cnf file. MAMP 2.x wants them in /Applications/MAMP/conf ... slides updated.