×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: I am so confused re parsing, absolute paths etc

I am so confused re parsing, absolute paths etc 11 years 10 months ago #19506

  • Bryan Gibson
  • Bryan Gibson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Hi Daniel, Petar

I am so confused re parsing & absolute paths and images migration generally.

In the migration settings the instructions are:

We use your base site URL while parsing, to create right source links for your images in your nodes or posts/pages. If you leave this field blank, only images with absolute paths will be parsed!


I have noticed in my fist migration attempt that the WP images do not seem to have been imported but are still resident on the old WP site? Could that be the case? Certainly I cannot see the images in Media Manager.

If so I guess it has to do with not having the correct settings (per above?)

If I can just get the answer to this embedded in my thick skull then I think I can start to make some progress in fixing up the formatting of images and captions correct

Thanks so much. Apologies for my lack of technical knowledge.

Regards

I am so confused re parsing, absolute paths etc 11 years 10 months ago #19509

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Bryan,
No need to apologize! If you can show me a single person on Earth that knows everything - then you need to start apologizing on the moment :D

For starters I want to point out that CMigrator is currently not able to parse galleries. So if your posts contain a lot of galleries it won't migrate any images from there. (Petar has a task to introduce this feature in the next release :))

If your images are just normal images inserted in the article:
<img src="path_to_the_image" />

then cmigrator should be able to migrate them. Now here comes the tricky part. Let us say that your site name is example.com
now in your articles the path to the images is defined like this
<img src="/path_to_my_iamge" />

When you open your wordpress site in the browser you'll see the image, but this is due to the fact, that the browser knows what the url of the site is, so it will try to find the image in example.com/path_to_my_image

Now for CMigrator there is no such option. If you use a relative path -> we won't know what the correct path to the image is and we won't be able to download it. This is where the base site url comes into the game. If you enter it -> then CMigrator will try to search for the images by prepending the site address infront of the path to the image.
out of path_to_my_image we will be able to make example.com/path_to_my_image

CMigrator downloads and puts the images in /images/stories/cmigrator -> so have a look at this folder and let us know if it has the images or not.

If you think that all your settings are correct and cmigrator is still not properly migrating your images, then we will have to have a look at your database to determine if there is a bug in the software or not.

Cheers,
Daniel

I am so confused re parsing, absolute paths etc 11 years 10 months ago #19551

  • Bryan Gibson
  • Bryan Gibson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Hi Daniel,

Thanks so much for your reply - and kindness!

So if my understanding is correct, in the "BASE URL" I should have the URL of the old WORDPRESS site - not the new Joomla site? Which makes sense because C Migrator already knows what the name of the new Joomla site! Although if I did not put in the WORDPRESS site as the base URL, how come C Migrator knows where to find them?

I can also confirm that there are no images appearing in the images folder "C Migration" - it is completely empty.

I feel I am getting close but that I am getting in my own way!!

Hopefully you can give me some more direction on this.

Many thanks,
Bryan

I am so confused re parsing, absolute paths etc 11 years 10 months ago #19557

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Brian,
Yes you need to put the url to the wordpress website.

That is the thing - CMigrator most probably doesn't know where to find the images, that is why it doesn't download them.

There are 2 kinds of URL online - absolute and relative.

Absolute URLs contain the domain name + path to the resource (image, pdf, article)

Relative URL contain just the path to the resource.

Since I'm lazy here is a link with more in depth explanation of the different url types:
www.webdevelopersnotes.com/design/relati...d_absolute_urls.php3

Since your images are most probably not added with absolute urls you'll need to provide the path to the wordpress site.

Regards,
Daniel

I am so confused re parsing, absolute paths etc 11 years 10 months ago #19563

  • Bryan Gibson
  • Bryan Gibson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 0
Hi Daniel, thanks again for your reply. It may well be that the whole thing is starting to penetrate my thick skull!

Best regards, Bryan

I am so confused re parsing, absolute paths etc 11 years 9 months ago #19944

  • Brian Shea
  • Brian Shea's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 1
Different Brian here :)

I think it should be a little more clear that you mean the Base URL for the wordpress site.

"If wordpress is installed in yourwebsite.com/wp/, THAT is your Base URL. If it is installed in the root, then it is just yourwebsite.com/"
Also, do we put the trailing slash or not?

I'm in the middle of my migration reading up on this stuff, and just trying to make it easier for others.
The following user(s) said Thank You: Bryan Gibson
  • Page:
  • 1
Time to create page: 0.107 seconds