1

Hi all,

I get the following error even though the image is available... any idea?

ERROR n°6
File : /home/httpd/vhosts/oasisdelalma.cl/httpdocs/newsletter/lists/admin/plugins/htmltopdf/classes/html2pdf.class.php
Line : 1491

Impossible to load the image http://www.oasisdelalma.cl/newsletter/lists/images/templates/oasisdelalma_header.jpg

P.S: I do not use html2pdf directly but an integrated version into phplist... even though the proble is strange as the image is there...
http://forums.phplist.com/viewtopic.php?f=7&t=24481

2

if the image is on the same server, dont use a complete absolute adresse with http:// but use a local relative adresse

you can also check the value of allow_url_fopen in your php.ini
Ancien pseudo : lolo

3

thank you spipu...
you're right... allow_url_fopen is actually set to off and I won't be able to edit it because it's a webhosting offer...

So I assume I will need to mke the path relative. The question is now: to which file or path?

P.S: In my phplist system I have a conflict, because I can make HTML newsletters, PDF, Text, etc. now for the html the paths need to be absolute for the PDF via html2pdf relative... tricky... I think I will need to rewrite some core-classes...

4

just try, in your php template file, to use something like this :

<img src="<?php echo dirname(__FILE__).'/relative_path_from_this_file_to_the directory_of_your_image/my_image.gif'; ?>" >
Ancien pseudo : lolo