image does not exist problem

52 views
Skip to first unread message

timothy.e...@gmail.com

unread,
Oct 31, 2016, 5:00:17 AM10/31/16
to Smart Lencioni Image Resizer
i have just installed SLIR into my web space. I ran install which said everything was OK.

I then tried to use it as per the instructions -  <img src="slir/w100-h100/2016/images-01/image1.jpg"/>
Unfortunately I just get the message "file does not exist:" followed by the image file path.
/var/www/html/2016/image-01/image1.jpg

It seems to see the part of the path from my home folder to the image OK - i.e. '2016/image-01/image1.jpg'. The problem is that the other part of the path appears to be completely wrong. I am on a shared host , so the only part of the path to the folder where these files are, that is visible to me is '/public_html/wenphotos/'. This is however completely different to that in the file does not exist message '/var/www/html/'.

I did try putting an entry in the defaults file under '$documentRoot of '/public_html/wenphotos'.. The file does not exist message now changed to '/public_html/wenphotos/2016/image-01/image1.jpg'

Anyone any idea of how I can overcome my problem.?

P.S. I did confirm that my image was in the correct file location by also using <img src="2016/images-01/image1.jpg"/> which worked correctly

Thanks,
Timothy

timothy.e...@gmail.com

unread,
Oct 31, 2016, 7:09:34 AM10/31/16
to Smart Lencioni Image Resizer
I noticed that in the slir error log it mentioned the full path for the slir messages. I put this into my defaults file under '$documentRoot and it now works OK.

Timothy
Reply all
Reply to author
Forward
0 new messages