Blog

Moving a cycling club off end-of-life Drupal onto WordPress

In 2016 I started moving a volunteer-run bicycling club in Portland off Drupal and onto WordPress. The club was PWTC, since renamed the Portland Bicycling Club, and its website is run by volunteers.

That was ten years ago, so I went back to the record instead of trusting my memory for the details. The dates and specifics below come from the project's commit history and from copies of the old site in the Wayback Machine.

If you look after a small organisation's site on Drupal 7, which reached end of life on 5 January 2025, you are where this club was. That is who this is for.

Where the club was

The archived page source from May 2016 is Drupal 6. It loads CCK and FileField as separate modules, and Drupal 7 had folded both into core. The same source lists the rest of what the site was made of:

  • CCK and Views for content, with a news section and a photo gallery;
  • Calendar and Date for the ride calendar, the page the menu simply called "Rides";
  • Ubercart for the club store;
  • CiviCRM for membership.

Drupal 6 reached end of life on 24 February 2016. After that date there were no more security advisories for it. My first commit to the WordPress build is dated 29 June 2016, four months later.

That list is the first thing worth taking from this. The club did not have a website to migrate. It had four systems in one site: pages and news, a ride calendar, a store and a membership database. Each one needed its own answer.

What replaced what

  • Pages, news and the gallery became WordPress content in a custom Twig theme, built on my own starter theme, with Advanced Custom Fields for the structured parts. Meeting minutes got a section of their own.
  • The ride calendar became three custom post types: ride maps, ride templates and scheduled rides. Two roles went with them, ride leader and ride captain.
  • Ubercart became WooCommerce, installed a month into the build.
  • CiviCRM became CiviCRM.

The membership system came along unchanged

CiviCRM runs under WordPress as well as under Drupal, and the first day's commits install it. The members' account page on the new site (membership status and the other people in a household) read all of it through CiviCRM's API. Two plugins that sync CiviCRM's records with WordPress users were installed beside it, and the theme defined a role for a current member and another for an expired one.

So the CMS changed and the membership system did not. It still had a price, and the price shows up on day one, in a commit titled "downgrade symfony and remove form functionality for civicrm compatability". My starter theme used Symfony 3 components. CiviCRM 4.7 shipped its own copies from Symfony 2.5, and one PHP process loads one version of a class. The theme's requirements went from ^3.0 to ~2.5.0, and its form handling came out in the same commit.

Keeping a system is a real choice in a migration. It is also a dependency, and it starts making decisions for you straight away.

The old site ran until the new one was ready

The Wayback Machine still shows the Drupal site on 24 March 2017. By 16 May 2017 it shows WordPress. The build took about ten months, and the old site stayed live for all of them, which also means it ran for more than a year past its end of life.

The import tooling arrives at the end, not the beginning. WP All Import, with its add-ons for custom fields, users and WooCommerce, is added on 27 March 2017. Many of the commits after that are about accounts: where a member lands after logging in, fixes to the account page, validation, and one titled "add current user to their own household as head of household".

Launch was the middle

At least four in ten of my commits on the project come after the WordPress site was live. They sort into a few kinds:

  • Updates. WordPress core and plugin updates, a dozen or so rounds of them between July 2017 and March 2019.
  • Catching up with production. "Missed updates from live", "sync of live" and "pull from live" recur. Things changed on the live site, and the code in version control had to be brought back in line with it.
  • Rules that only turn up in use. Only the head of a household can edit its members or renew (October 2017). A scheduled ride can be marked as cancelled (November 2017).
  • Dates. Time zone fixes, once around launch and again ten months later. And a calendar fix titled "always select first of month to avoid issues when navigating months". The calendar parsed a month name on its own, so PHP filled in today's day, and on the 31st a 30-day month rolled over into the next one.
  • A backup plugin, added in September 2017.
  • Speed. In March 2018 I started a second theme, described in its first commit as a faster theme with the same looks.

Most of that is work nobody can list in advance. It is what a site is asked for once people rely on it.

The second migration

In October 2018 the commits remove CiviCRM and add WooCommerce Memberships, with its Teams extension standing in for households. A third theme, on Timber, follows in January 2019. The branch all of this happened on was called civifree, and it was merged in August 2019.

So "Drupal to WordPress" was two migrations. The CMS moved in the spring of 2017. The membership system's move started eighteen months after that and was merged about two years after it.

Someone else maintains it now

The first pull request from Mark Hartel, a software developer in the club, arrived in September 2017. More followed: links in ride descriptions, an iCal feed for the ride calendar, an export button, a location view. He also wrote the club's own plugins for ride maps and mileage.

My last change of substance is from July 2019, and the club has looked after the site itself since then. The move to WordPress is what made that possible. WordPress is easy to learn, so the club's own members could help maintain the site instead of depending on an outside developer for every change.

The live site today runs a theme that still carries my name in its header, since moved to Timber 2 and PHP 8, alongside WooCommerce Memberships and Mark's plugins.

That is the result I would point to. The site outlasted my involvement, and somebody inside the club has been the one changing it.

If you are on Drupal 7 now

  • List the systems, not the pages. Content is the easy part. Find the store, the calendar and the member database, and decide about each one separately.
  • Decide what is not moving yet. Carrying one system across unchanged makes the first move smaller. Know that it constrains everything built around it, and that it will need its own move later.
  • Leave the old site running and import last. The new site can be built and tested while the old one keeps serving members.
  • Plan for the work after launch. Updates, backups, and the rules nobody knew to write down.
  • Keep it somewhere another developer can pick it up. For a volunteer-run organisation, that developer may well be one of the volunteers.

WordPress was the destination here because volunteers had to run the site day to day. For a larger site, modern Drupal is the other sensible destination, and I cover both under legacy PHP modernization.

Sources

The case study for this project is PWTC. Moves like it are part of my WordPress development work.