- 2012-08-19: Working on the new Drupal 8 Entity system at Drupalcon Munich
- 2012-06-15: Working on the new Drupal 8 Entity system at DrupalDevDays Barcelona
- 2012-03-23: Working on the future Drupal Document Oriented Storage at DrupalCon Denver. D8 or later ? Bets are on.
- 2011-09-01: Building an Unfuddle to Drupal Casetracker import module using Migrate
- 2011-08-28: Back from DrupalCon London and its WSCCI code sprint. Wow.
- 2009-11-29: mongodb_watchdog module created by dereine, ported to D7 by me in about half an hour, and migrated in a larger MongoDB project by damz before the hour ended. Wow...
Drupal tips and tricks
When Drush Make fails to apply patches...
Submitted by fgm on Fri, 2013-01-25 13:32The issue
These last few days, I had noticed a problem with Drush Make and patches: some patches, be they rolled by our team or from elsewhere, would apply without a glitch, but some others, which worked normally according to the test bot on Drupal.org, would fail to apply without any obvious reason.
I had mostly put it out of my list of pressing issues when I really had to use an old version of OpenLayers, 7.x-2.0-alpha2 to be specific, AND apply a patch fixing one of the bugs in that module: behaviors plugin not being located correctly (http://drupal.org/node/1898662 if you want details). So I rolled the patch, tested it locally, the qa.d.o bot applied it and did not report more errors than expected for that old version.... and my Drush Make install refused to apply it.
Here was the relevant excerpt:
projects[domain] = 3.7
projects[domain][patch][] = "http://drupal.org/files/domain-foreach_argument-1879502-1.patch"
; ...snip...
projects[openlayers] = 2.0-alpha2
projects[openlayers][patch][] = "http://drupal.org/files/0001-Fix-the-path-file-declaration-for-behaviors.patch"
The Domain patch applied normally, but the OpenLayers patch would't apply. What could be wrong ?
How to restore Unfuddle dumps: migrating to Drupal CaseTracker
Submitted by fgm on Sat, 2011-09-03 17:02Unfuddle is a very convenient and fairly cheap SaaS hosted Redmine (with extensions) and SVN/Git, which I use regularly on customer projects. Their service includes reassuring "Backup" options, going as far as to include the ability to backup to your own Amazon S3 bins in addition to their local backups.
Recently, however, I had to go back to an archived project for which I had dutifully taken a dump before closing it on Unfuddle, and looked for a way to restore it to my Unfuddle account. To no avail. Unfuddle support then kindly confirmed that the service did include a backup feature, but no restore:
Backups of projects within Unfuddle are for personal use only and cannot be restored into accounts via the interface. This however may be possible with some custom scripting on your part and with the use of our API (http://unfuddle.com/docs/api).What then ?
What to do when you can no longer login to your Drupal site
Submitted by fgm on Thu, 2011-08-04 09:51So the scenario is this: you notice that you are no longer able to login on your Drupal site:
- the
{users}table entry for your account looks just fine - the
loginandaccesstimestamps on your account are just a few seconds old, matching your latest attempt to login - you reset your password in the DB, just in case, and it still does not work
- the telltale is that Drupal will not even tell you your login failed: it actually works, as the
{users}table shows, but yet you are not logged in
Can you guess what can have been going wrong and fix it ?
Drupal tip of the day: using "format" in Drupal aliases
Submitted by fgm on Sat, 2010-03-27 23:44I noticed today that one of my sites returned 403 Access denied on various pages with URLs like format/<foo>, although it was an alias for a taxonomy/term/<tid> taxonomy path which was actually available when not aliased. What could be going on ?
Drupal as one of the key Internet Technologies
Submitted by fgm on Tue, 2010-02-23 16:31Received this Harris Interactive poll today, on behalf of Tarsus, the french company organizing the Solutions Linux expo.
One of the choices was a list of the top 30 Internet Technologies. And guess what ? For once, Drupal was on the list: first time I see it mentioned in this type of business context. Interesting.

Debug vanilla
Submitted by fgm on Fri, 2009-12-11 13:14Most of the time, when working on some piece of code, I'll resort to the configured debugger in my current Zend Studio configuration. And you probably do too :-)
However, I often have to access debug-type information on live sites where installing a debugger is out of the question, and I find myself often resorting to parameter dumps like the following:
<?php
// lazy version for simple cases
function foo_bar($x, $y, $z) {
dsm(func_get_args());
// [...]
// less lazy version for more hairy cases
function foo_baz($x, $y, $z) {
dsm(array('in foo_baz, x' => $x, 'y' => $y, 'z' => $z));
// ...
?>You've probably being using it too and, of course, after the first few dozen times, it becomes a bit used. So here's a tiny snippet that makes such dumps simpler to type and use :
Easy mass deletions
Submitted by fgm on Mon, 2009-11-16 15:21Sometimes, you want to delete a whole bunch of users, terms, or nodes, say to cleanup a site while developing and still keep its configuration, so reinstalling is not really an option, and the normal content- or user-administration pages get in your way because they only show a limited number of entries, meaning you have to delete page after page of entries.
Module Extendr for Flickr
Submitted by fgm on Mon, 2009-09-14 17:23In case you've found Jeff Miccolis' post about the Extendr module for Flickr great, but have been bothered by the fact that the link on the blog was broken and that comments on that article were closed, the good news is that he made his code available on drupal.org too, at:
Views in Paris
Submitted by fgm on Sat, 2009-08-29 17:08In case you've been living under a rock, DrupalCon Paris is happening next week, and features, not one, but two Views Sessions, in addition to merlinofchaos' own CTools sessions on Panels 3 and CTools. One of them being, of course, by yours truly :-)
Gadgets module now available for Drupal 6
Submitted by fgm on Sun, 2009-05-24 17:132011-08-06: UPDATE: now available from my drupal.org sandbox





Recent comments
12 weeks 4 days ago
14 weeks 4 days ago
15 weeks 5 days ago
16 weeks 1 day ago
16 weeks 1 day ago
16 weeks 1 day ago
24 weeks 6 days ago
25 weeks 2 hours ago
27 weeks 12 hours ago
27 weeks 5 days ago