- Posts: 17
- Thank you received: 0
Pdf icon searches for image on the wrong path
-
veritas
Inactive member - Topic Author
- New Member
Less
More
13 years 5 months ago - 13 years 5 months ago #9413
by veritas
Pdf icon searches for image on the wrong path was created by veritas
Hi,
I have one page in which when you click in the pdf icon, it searches for the picture in this path: /usr/www/users/takizy/libraries/tcpdf/images/stories/bla-bla-bla.jpg
instead in the normal path (where the picture actually is): /usr/www/users/takizy/images/stories/
Given this error:
So it doesn’t find it.
And as far as I can see, the page is exactly the same as the other good working ones. Even if a put the same picture (and with the same path) of a good working one page, still it doesn't find it.
Any idea why this is happening?
Thanks.
Veritas
I have one page in which when you click in the pdf icon, it searches for the picture in this path: /usr/www/users/takizy/libraries/tcpdf/images/stories/bla-bla-bla.jpg
instead in the normal path (where the picture actually is): /usr/www/users/takizy/images/stories/
Given this error:
Code:
Warning: getimagesize(/usr/www/users/takizy/libraries/tcpdf/images/stories/bla-bla-bla.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /usr/www/users/takizy/libraries/tcpdf/tcpdf.php on line 3688
So it doesn’t find it.
And as far as I can see, the page is exactly the same as the other good working ones. Even if a put the same picture (and with the same path) of a good working one page, still it doesn't find it.
Any idea why this is happening?
Thanks.
Veritas
Last edit: 13 years 5 months ago by veritas.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 5 months ago #9446
by ivan.milic
Replied by ivan.milic on topic Re: Pdf icon searches for image on the wrong path
Are you sure you need /usr/www/users/takizy/ part in path?
Please Log in to join the conversation.
-
veritas
Inactive member - Topic Author
- New Member
Less
More
- Posts: 17
- Thank you received: 0
13 years 5 months ago #9448
by veritas
Replied by veritas on topic Re: Pdf icon searches for image on the wrong path
Hi Ivan,
I didn't do anything about the path.
That path is shown for the first time in the error.
Actually the picture is in “/images/stories/bla-bla-bla.jpg”
Thanks,
Veritas
I didn't do anything about the path.
That path is shown for the first time in the error.
Actually the picture is in “/images/stories/bla-bla-bla.jpg”
Thanks,
Veritas
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 5 months ago #9455
by ivan.milic
Replied by ivan.milic on topic Re: Pdf icon searches for image on the wrong path
If the image actually there? If yes maybe permissions are blocking something. Try to CHMOD that folder to 777. If you hosting panel don not support CHMOD option you can do it using Joomla!Explorer component you can get for free.
Please Log in to join the conversation.
-
veritas
Inactive member - Topic Author
- New Member
Less
More
- Posts: 17
- Thank you received: 0
13 years 5 months ago #9458
by veritas
Replied by veritas on topic Re: Pdf icon searches for image on the wrong path
Hi Ivan,
Thank you. I did that but it didn’t work.
It must have to do with the page itself, because even if I put the same picture from
another good working page, the error comes.
I don't understand it, because all settings for the (bad) page seem to be the same of the (good) page.
Veritas.
Thank you. I did that but it didn’t work.
It must have to do with the page itself, because even if I put the same picture from
another good working page, the error comes.
I don't understand it, because all settings for the (bad) page seem to be the same of the (good) page.
Veritas.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 5 months ago #9459
by ivan.milic
Replied by ivan.milic on topic Re: Pdf icon searches for image on the wrong path
Ok, try then component configuration:
open libraries/tcpdf/config/tcpdf_config.php:
define ("K_PATH_MAIN", "/Inetpub/wwwroot/_OPENSOURCE/tcpdf/");
define ("K_PATH_URL", "http://localhost/_OPENSOURCE/tcpdf/");
instead of this dummy paths put your real path.
open libraries/tcpdf/config/tcpdf_config.php:
define ("K_PATH_MAIN", "/Inetpub/wwwroot/_OPENSOURCE/tcpdf/");
define ("K_PATH_URL", "http://localhost/_OPENSOURCE/tcpdf/");
instead of this dummy paths put your real path.
Please Log in to join the conversation.
Time to create page: 0.156 seconds