I am using the latest version of Habari 0.6.3 and an svn version dated
Oct 18 2009 for the drupalimport plugin. Also, i have it in the
user/plugins folder.
"The plugin file
/home/cex/www-habari/user/plugins/drupalimport/drupalimport.plugin.php
had syntax errors and could not load."
--
Chris Everest
I made a couple of minor tweaks to the Drupal importer (missing PHP
close tag and a array type fix I merged from the WP importer).
https://trac.habariproject.org/habari-extras/changeset/2571
which means I can now activate the plugin and enter DB credentials
using Habari 0.6.3.
However, I only have a Drupal 6.x install and the code explicitly
checks for 5.x DB structure so if you're using 6.x, you may need to
make some additional changes.
HTH (a little).
--
Andy
I managed to import a Drupal 6.x site into Habari 0.6.3 using SQLite.
I simply had to remove the check for a table called menu (c. line 68).
The rest of the Drupal DB structure seems the same.
if ( $has_node_type ) {
$stage = 2;
}
Also, on SQLite, I had to populate post->id with the Drupal post id
(otherwise the id was always 0 and a primary key violation happened
when adding posts). I thought this was an auto-increment field but
still.
$p = new Post( $post_array );
$p->id = $post_array['nid'];
Both of these are hacks IMHO so I didn't bother submitting to trac but
it may help you progress.
Oh and the '$_POST->getArrayCopy()' change has to be applied for each
occurrence of 'array_intersect_key'
--
Andy
I created a version for 0.6.3 and updated trunk for 0.7.
Thanks Andy, i was able to run the import plugin successfully.
Though, I think it's erroring out on some 'Audio' content types. I
'unforturnately' have a pretty complicated drupal setup which may not
be so import friendly.
But I got a lot of stuff imported.
--
Chris Everest
On Dec 19, 3:38 pm, Chris Everest <chrisever...@gmail.com> wrote: