Author Topic: No images are displayed at all after new installation  (Read 8894 times)

0 Members and 1 Guest are viewing this topic.

Offline boismenu

  • Newbie
  • *
  • Posts: 14
    • View Profile
No images are displayed at all after new installation
« on: March 22, 2005, 11:23:30 AM »
Hi!
I just installed version 1.7.1 on a new server and all the links to images, template and uploaded, are broken!
I set the permission on the directories as usual (CHMOD 777) and I can create users, categories, etc. The only problem is the link to images.

One note, MySQL is running on the main domain (www.boismenu.com) and I installed 4Images on a subdomain (www.boismenu.net) placed in a subdirectory of my main domain. So www.boismenu.com is the root of the server and www.boismenu.net is on "/net/" directory. 4Images path is "/net/gallery/".

Is the first time I do this, could this be the problem?
If I don't make sense let me know and any help is very much apreciated. Thank you!
Pierre

Offline boismenu

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: No images are displayed at all after new installation
« Reply #1 on: March 22, 2005, 11:26:20 AM »
One more note, I have not made any MOD. I installed one extra template to see if the default was wrong but the result is the same.
If you need code to help me let me know and I post it. :-)
Pierre

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: No images are displayed at all after new installation
« Reply #2 on: March 22, 2005, 02:39:24 PM »
I dont see any gallery on either of the links...
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 boismenu

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: No images are displayed at all after new installation
« Reply #3 on: March 22, 2005, 05:50:29 PM »
Sorry, my mistake. The gallery is on www.boismenu.net/gallery

Thanks!
Pierre

Offline boismenu

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: No images are displayed at all after new installation
« Reply #4 on: March 22, 2005, 06:58:55 PM »
I found the following post on Google's cache:
http://64.233.187.104/search?q=cache:2_TDndQDfRMJ:4homepages.de/forum/viewtopic.php%3Fp%3D9788%26sid%3D750ce255210a3ee1ae98ef9c3a5c44a7+broken+links&hl=en

It seems that 4Images and subdomains or forwarding URLs does not work fine together. I'll try to set SCRIP_URL to http://www.boismenu.net/gallery
If this does not work then I'll move everything to the main domain and try again...

I'll let you know the result.
Thanks, Pierre

Offline boismenu

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: No images are displayed at all after new installation
« Reply #5 on: March 22, 2005, 07:10:44 PM »
Well, changing SCRIP_URL to 'http://www.boismenu.net/gallery' and http://www.boismenu.com/net/gallery' didn't work.
But if I access the site with the following address everything is in place:

     http://www.boismenu.com/net/gallery/index.php

Why?
I guess I can redirect www.boismenu.net to the link above, but it doesn't look nice...
Any suggestion is still welcome!  :D

Pierre

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: No images are displayed at all after new installation
« Reply #6 on: March 23, 2005, 12:14:19 AM »
This is very wierd...if I try open the images directly they are showing just fine, after that they are appier on the page too...but ones I refresh the page, they again get broken...

Its hard to tell what could be wrong, perhaps some specific server configuration or maybe there is something in your .htaccess file?

I'm out of ideas...
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 boismenu

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: No images are displayed at all after new installation
« Reply #7 on: March 23, 2005, 06:00:09 PM »
Thanks for your help V@no!
The problem was indeed in .htaccess I added www.boismenu.net to it and voila! everything is in place.
Here's the code just in case is usefull to anyone:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://boismenu.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://boismenu.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.boismenu.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.boismenu.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://boismenu.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://boismenu.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.boismenu.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.boismenu.net$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ 404.shtml [R,NC]


The lines with boismenu.net and www.boismenu.net where missing.
Thanks again!
Pierre

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: No images are displayed at all after new installation
« Reply #8 on: March 24, 2005, 03:23:53 AM »
please note, that people who has privacy control software or such installed and blocking referrer page, they wont be able see the images at all...
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 boismenu

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: No images are displayed at all after new installation
« Reply #9 on: March 25, 2005, 12:09:25 AM »
Thanks again V@no!
I will either delete the lines on .htaccess or put a note with the link www.boismenu.com/net/gallery for the people that has privacy control software.
In any case, for me is important to understand why it was happening.

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: No images are displayed at all after new installation
« Reply #10 on: March 25, 2005, 12:36:33 AM »
just in case u are insteresting: Pic Security
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)