Closed (fixed)
Project:
Printer, email and PDF versions
Version:
5.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2007 at 10:46 UTC
Updated:
1 Oct 2007 at 11:20 UTC
First, thanks a lot for the module. But the images cannot appear in printer-friendly page.
It turns out that the URL of my image in the printer-friendly page is incorrect.
It becomes
http://localhost/myproject/?q=myproject/files/images/image.jpg
instead of
http://localhost/myproject/files/images/image.jpg <--the correct one
So the image won't show.
THanks.
Comments
Comment #1
jcnventuraHi,
I have tried to handle your case in the latest dev release (should have a date of September 13).. Can you please try it?
Thanks,
João
Comment #2
tantotea commentedHi, thanks for your prompt response.
I just tested, but it is still incorrect. Now it becomes
http://localhost/myproject/myproject/files/images/image.jpg
instead of the expected
http://localhost/myproject/files/images/image.jpg
Thanks again
Comment #3
jcnventuraHello again,
This time I took some more time (personal life, sometimes you have to spend some time for it :) ).
The latest dev release tries to be smarter about this, and should not be causing your problem. Can you please try it?
Thanks,
Joao Ventura
Comment #4
tantotea commentedHi Joao, thanks for taking care of this.
I tried the latest one 24 Sep, but it still gives the same result as that in my previous post (#2).
However, when I remove "myproject" as a subdirectory so Drupal is installed in htdocs (main dir of Apache) so my images are in http://localhost/files/images/image.jpg, the image can show, but.... not for all nodes.
I observed that when the image's name consists of two words, e.g. "my picture.jpg" then the problem may occur. The image whose name becomes "my%20picture.jpg" shows, while that whose name becomes "my%2520picture.jpg" doesn't show.
Thanks again.
Comment #5
jcnventuraOK.. .I give up, thanks to another user report, I came to the conclusion that I shouldn't be touching the IMG links anyway, since the only thing that needs to be converted are the A HREF links as these may show up in the list of URLs at the bottom.
So, the latest dev removes the code to process IMG URLs, which should restore your images perfectly (I hope).. Relative images will now be based on the base URL of the original page (rule of thumb: if it showed in the original page, it should show in the PF page).
This should fix your space-in-name image problems, as I no longer modify them.
Please try it...
Joao Ventura
Comment #6
tantotea commentedHi Joao,
I've just tried it, seems working now. Thanks a million. You are the star!
Regards,
Comment #7
jcnventuraAt last... I will make a 2.2 version soon, to get these fixes into the stable release branch..