4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: 8o8o8.com on June 20, 2006, 10:00:11 AM

Title: [1.7.1] File can not be found ,, image link is IP address
Post by: 8o8o8.com on June 20, 2006, 10:00:11 AM
Hi

I have a problem in my gallery
when I upload an image with a link started with IP address it gives me " File not found "
for example :
if the images link is
http://127.0.0.1/data/media/2/any.jpg

it gives me file not found

please can you help me fix this problem.
Title: Re: [1.7.1] File can not be found ,, image link is IP address
Post by: V@no on June 20, 2006, 02:28:24 PM
1) "File not found" ? showing it were? on details page?
2) if you open type that address in the address bar, can you see the image?
3 If you are using 4images v1.7 or v1.7.1 that is the cause, because this issue was fixed in v1.7.2
In includes/functions.php find and comment out or remove:
Code: [Select]
  if (!preg_match("/^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+/i", $url)) {
    $url = "";
  }
Title: Re: [1.7.1] File can not be found ,, image link is IP address
Post by: 8o8o8.com on June 22, 2006, 11:08:52 PM
1) yes on details page
2) No I can not see the images what I can see is only this (http://www.8o8o8.com/gm/templates/8o8o82006/icons/404.gif)
3) I have done what you reply still the same thing.
by the way I am using 4images 1.7.1


Title: Re: [1.7.1] File can not be found ,, image link is IP address
Post by: V@no on June 23, 2006, 12:50:46 AM
2) No I can not see the images what I can see is only this (http://www.8o8o8.com/gm/templates/8o8o82006/icons/404.gif)
I think you missunderstood me.
You said you used an external address to the images with IP in it (http://127.0.0.1/data/media/2/any.jpg) now, if you open that address in your browser, can you see the image?
My point is, maybe the address is uncorrect....127.0.0.1 is your computer address and equal to localhost "domain" (I guess it was an example only)
Title: Re: [1.7.1] File can not be found ,, image link is IP address
Post by: 8o8o8.com on June 26, 2006, 10:38:23 AM

the IP I include before is an example

to try it by your self see this link

http://70.85.237.218/data/media/11/111_5.swf
Title: Re: [1.7.1] File can not be found ,, image link is IP address
Post by: V@no on June 26, 2006, 02:40:57 PM
Just tested on a fresh v1.7.1 and after doing the changes I posted above, I was able added your .swf file as a remote media and it showed just fine on details page. Though, after the file was added, I revert the changes to original code and still, details page showed the flash without problem...
Title: Re: [1.7.1] File can not be found ,, image link is IP address
Post by: 8o8o8.com on June 26, 2006, 10:52:38 PM
Really I have done upgrade to the 1.7.2 and the problem is fixed
thanks  :D