Ramblings

How I upgraded my site to Drupal 8 on the train

Submitted by Erik on Sun, 12/06/2015 - 02:11

Well, November 19th was destined to be a momentous day and since I had started almost eighteen months ago, I thought it might be high time to actually convert my site to Drupal 8.0.0.

But the only time I seem to be able to sit down and look at non work things is during my commute. On a train. With very… ummm… spotty internet connectivity at best. But what the heck. So luckily I have a local development copy of my site and a copy of the drupal git repo which was up to date.

A journey: Converting this site to D8

Submitted by Erik on Tue, 05/13/2014 - 13: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 - 22: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 - 20: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 - 20: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

http://eporama.com/ramblings

becomes

http://eporama.com/user?destination=ramblings

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 Tue, 10/25/2011 - 02: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.