Features 7.x-2.x

If you’re doing any features development on a site using Features 7.x-1.x I’d recommend upgrading to 7.x-2.x as it contains a few new goodies. In particular:

  • Fields instances and field bases have been separated, which avoids the problem you could get in 1.x where you if you exported the same field to two separate features then changed a setting your two features could fight for control of the setting.
  • A much nicer interface for adding / removing items.
  • The ability to write changes to disk from the UI: Under advanced options, fill out ‘Path to Generate feature module’ (unless you’re happy with the default) and click Generate feature. No more delete-download-copy-untar-delete!

Drupal pages being served as 404s, forms not being saved?

A couple of times I’ve been in the situation where I can browse around a newly installed Drupal site fine, but none of the forms will save and all pages are served with a status code 404 (as shown in Firebug or similar tools). No errors were logged.

The problem turned out to be that mod_rewrite wasn’t enabled. As I run Ubuntu (a Debian-based distro) I needed to run:

sudo a2enmod rewrite
sudo service apache restart

a2enmod is used for enabling apache2 modules, and you need to tell apache to re-read the configuration for the changes to apply.

Hello world!

After many years of reading blogs and not always having the right place to contribute, it felt like it was finally time for me to start my own, so here it is. I’m a Drupal developer for a living, so expect posts about modules I like or problems I run into (as much as notes to myself as anything else). I’m also a fairly regular skydiver, so maybe I’ll have some pretty photos from that to share.