Drupal Installation Profile Woes

Most of my work to date has been Drupal 5, but a new project I am involved in has required the switch to Drupal 6. On the whole I couldn't be happier - D6 is really nice in so many areas, and the switch has been pretty painless. Except - I'm now looking at Drupal installation profiles.

A couple of gotchas that I wasn't expecting...

  1. Don't include any modules that automatically create node types in their module.install file in your installation profile setup. The call to drupal_execute('node_type_form') will try and redirect to 'admin/something/...' which breaks the installation procedure.
  2. hook_profile_final is no longer available.

I'm still playing around with getting this Drupal installation profile working, and I'll be sure to post the working version when I do!

I'm having similar issues. See http://drupal.org/node/307129#comment-1044176 and http://drupal.org/node/128038#comment-1044119.

If you figure this out, I think a lots of folks will be happy ;-)

Thanks.

(Great feature: Notify me of follow-up comments posted here.)

I'm about to start another port from D5 to D6. This one is a biggie - over 22500 nodes, and lots of users.

I'm trying to avoid using drupal_execute because it's too slow. I'm using node_load() -> serialize() -> node_save() to move content around. There's only a few cases with some CCK fields this doesn't seem to work with.

I'm also making good use of the new batch processing functionality in D6 - a simple API to a really useful bit of functionality... no more script time outs!

Darren,
see http://drupal.org/node/310823 which might be helpful. It's great to get this stuff down to a clean process that respects the Drupal Way if you can ;-)
I hack some of this stuff w/ perl: see what Drupal does, then imitate. Not a great robust solution though, that's why I'm trying to figure out a clean method. I'm just trying to install the CCK types, not move gobs o' data.
Thanx.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options