The module works great. Except for image importing. Heres my setup:
WP 2.92
D6.16
Running on my local Ubuntu server
WP URL is http://shaiperednik.com
local URL is http://localhost/drupal
151 posts/pages
15 comments
1 authors
14 categories
197 tags
Options:
Import posts -> Blog Entry (Blog Core Mod enabled)
Import pages -> Don't Import
User Mapping - Single User
Advanced:
Transfer Images checked
Images Directory : /images
Everythings imported successfully and all images are there in the correct location /www/drupal/sites/default/files/images. However, the URL for the image in the post is http://localhost/sites/default/files/images/0f3c0_namechanger.jpg. Notice its missing the "drupal" subdirectory after the localhost and should be http://localhost/drupal/sites/default/files/images/0f3c0_namechanger.jpg.
This may not be a big deal as I will soon use this mod to import all my posts to the new live site. However, fornow I have this setup localy as a development site and would like to have everything working locally before going live to production. I'm sure this problem may be fixed with a .htaccess file and a rewrite of somesort, but this shouldn't be necessary.
Thank you for this module and I hop I've provided enough info.
Comments
Comment #1
angelmax commentedSame issue on hundreds of posts when importing into a Drupal site which is not in the root directory as the original Wordpress site. It would be nice to have this working from the beginning.
Is there any "search and replace" approach to fix this for the imported posts and the wrong image URLs?
thanks.
Comment #2
lavamind commentedRight, this is indeed a problem. This is fixed by using
$base_pathin the new image URL.Committed fix in 6.x-2.x-dev, thanks for the heads up!