Author Topic: [1.7.1] File can not be found ,, image link is IP address  (Read 8681 times)

0 Members and 1 Guest are viewing this topic.

Offline 8o8o8.com

  • Newbie
  • *
  • Posts: 10
    • View Profile
[1.7.1] File can not be found ,, image link is IP address
« 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.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [1.7.1] File can not be found ,, image link is IP address
« Reply #1 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 = "";
  }
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline 8o8o8.com

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [1.7.1] File can not be found ,, image link is IP address
« Reply #2 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
3) I have done what you reply still the same thing.
by the way I am using 4images 1.7.1



Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [1.7.1] File can not be found ,, image link is IP address
« Reply #3 on: June 23, 2006, 12:50:46 AM »
2) No I can not see the images what I can see is only this
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)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline 8o8o8.com

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [1.7.1] File can not be found ,, image link is IP address
« Reply #4 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [1.7.1] File can not be found ,, image link is IP address
« Reply #5 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...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline 8o8o8.com

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [1.7.1] File can not be found ,, image link is IP address
« Reply #6 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