Closed (fixed)
Project:
Wordpress Import
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Nov 2009 at 17:29 UTC
Updated:
23 Dec 2009 at 03:30 UTC
Using the patch from #645432: path_set_alias() called twice per imported node, thus breaking "Create path aliases" url importing
If pathauto is installed and emabled, an automatically generated path is created rather than the imported path. The easy solution is disabling pathauto for the import (that's what I did), the more complex solution would be to modify the previously mentioned patch to mimic the settings in the node object on a node/add/TYPE submission.
At the very least, the README.txt should mention having to disable pathauto.
Comments
Comment #1
lavamind commentedLooking at http://drupalcontrib.org/api/function/pathauto_nodeapi/6 it seems we would simply need to check if pathauto is enabled, and if so, set
$node->pathauto_perform_aliasto 0. That should be sufficient to prevent pathauto from doing its magic.Comment #2
lavamind commentedFixed in latest 6.x-2.x-dev.
Thanks!