[SOLVED] Sometimes Images Work, Sometimes It Doesn't

sh3kar

Joined: 2005-03-29
Posts: 6
Posted: Tue, 2005-03-29 19:34

I'm going crazy trying to figure out how to fix this problem. Sometimes when I access my Gallery everything works fine, but more often then not a couple of the thumbnails will not show. The thumbnails that don't show are random and don't seem to have any type of pattern. If I click on the thumbnail half the time the image shows up and the other half I get a Forbidden Error. I'm so confused . . . any help would be greatly appreciated.

----

Gallery URL (optional):http://www.sh3kar.com/gallery/
Gallery version: G2 beta
Webserver (with version): Apache 1.3.33
Datatabase (with version): MySQL 4.0.23
PHP version (eg 4.2.1): 4.3.9
phpinfo URL (optional):
Graphics Toolkit(s): ImageMagick
Operating system: XP Pro
Web browser/version: Firefox v1 & IE 6
G1 version (for migration bugs):

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-03-29 19:42

i browsed all your albums and every thumbnail showed up fine.. (moz1.7.5 on win2k)

 
sh3kar

Joined: 2005-03-29
Posts: 6
Posted: Wed, 2005-03-30 07:36

As I said before, sometimes it works . . . sometimes it doesn't. That's what I can't figure out. I took some screenshots from this evening when it started acting weird again:

The Missing Thumbnail:
http://www.sh3kar.com/error/screen1.jpg

Forbidden Error:
http://www.sh3kar.com/error/screen2.jpg

Thanks for the help

[note] also if I refresh the page it fixes the problem half the time . . . and my main.php has been chmodded to 777, so I don't know why it says its forbidden

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Thu, 2005-03-31 03:03

sh3kar, I was wondering if there is any error messages in the server log... BTW, I am also seeing randomly missing thumbnails on your site (FF 1.0.2, W2K).

 
sh3kar

Joined: 2005-03-29
Posts: 6
Posted: Fri, 2005-04-01 05:26

how do I view the server log (sorry for the newbie-ish question)?

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Fri, 2005-04-01 06:08

somebody is hosting your site, right? What software do they use? If it's CPanel - there is an icon and a link "Error log". If it's (for example) 1&1 - then you are hosed...

 
sh3kar

Joined: 2005-03-29
Posts: 6
Posted: Fri, 2005-04-01 09:13

here's what's in the error log:

Quote:
[Fri Apr 1 03:13:45 2005] [error] [client 67.169.216.163] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 03:13:36 2005] [error] [client 67.169.216.163] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 03:13:36 2005] [error] [client 67.169.216.163] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 03:13:36 2005] [error] [client 67.169.216.163] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 03:13:36 2005] [error] [client 67.169.216.163] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 03:13:36 2005] [error] [client 67.169.216.163] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 03:13:32 2005] [error] [client 67.169.216.163] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:11:33 2005] [error] [client 69.108.123.241] client denied by server configuration: /home/sh3kar/public_html/gallery/images/gallery.gif
[Fri Apr 1 00:11:33 2005] [error] [client 69.108.123.241] client denied by server configuration: /home/sh3kar/public_html/gallery/images/xhtml10.png
[Fri Apr 1 00:11:32 2005] [error] [client 69.108.123.241] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:11:32 2005] [error] [client 69.108.123.241] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:08:28 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:08:24 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/images/xhtml10.png
[Fri Apr 1 00:08:24 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:08:15 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/images/xhtml10.png
[Fri Apr 1 00:08:15 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:08:11 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/images/xhtml10.png
[Fri Apr 1 00:08:11 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:08:11 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:08:10 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:59 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/modules/core/data/g2b1-dark_fibre.png
[Fri Apr 1 00:07:59 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/images/gallery.gif
[Fri Apr 1 00:07:59 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/images/xhtml10.png
[Fri Apr 1 00:07:59 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:59 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:59 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:59 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:59 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:59 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:57 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:48 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/modules/core/data/g2b1-dark_fibre.png
[Fri Apr 1 00:07:48 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/images/gallery.gif
[Fri Apr 1 00:07:48 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/images/xhtml10.png
[Fri Apr 1 00:07:48 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:48 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:48 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:48 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:48 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:48 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php
[Fri Apr 1 00:07:33 2005] [error] [client 24.22.189.249] client denied by server configuration: /home/sh3kar/public_html/gallery/main.php

Edited by fryfrog: Removed all the useless favicon, 404.shmtl and 403.shtml not found errors.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Fri, 2005-04-01 09:35

Once you remove all the useless parts, you see that all your errors are "denied by server configuration" but I don't have a clue whats causing it.

Does your web directory happen to be a symlink or something weird like that?

I browsed your site and after visiting one or two images I was easily able to duplicate your problem. A refresh usually cleared it up as well. Additionally, I was able to stay at the same page and constantly refresh and would eventually hit a 403 or 404 error. Do you have any other web apps or pages on your site, so I could see if only gallery does this?

Maybe throw up a page with phpinfo(); in it or point me to something else you host.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Fri, 2005-04-01 09:42

This is almost certainly an apache configuration problem, but I suppose you could post your httpd.conf and someone might spot an issue. In the mean time, poke around in your apache config and see if YOU see anything goofy. If its a host though, i dunno :)

 
sh3kar

Joined: 2005-03-29
Posts: 6
Posted: Fri, 2005-04-01 09:53

here's a page with phpinfo();

http://www.sh3kar.com/phpinfo.php

 
sh3kar

Joined: 2005-03-29
Posts: 6
Posted: Fri, 2005-04-01 09:55

and is there anything I could ask my host to look into/fix to get this working?

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Fri, 2005-04-01 11:28

I hit refresh about 5 times on your <?php phpinfo(); ?> page and I get the same problem. I don't have a clue whats causing it, but at least now you can point your host to that and say "hey, hit refresh 5 or 6 times and wait for an error". Its definatly not gallery.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-04-01 11:37

well, i had to refresh 30-50 times until i got the error

 
SHaRKTooTH

Joined: 2005-08-01
Posts: 3
Posted: Mon, 2005-08-01 03:54

I am having the same issue with my gallery. Any update as to what is the root cause for this behavior?

 
SHaRKTooTH

Joined: 2005-08-01
Posts: 3
Posted: Mon, 2005-08-01 04:52

I just answered my own question.

The problem I was having is with mod_dosevasive and changing the settings on the module fixed the random 403 forbidden errors.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-08-01 07:10

SHaRKTooTH, thanks for letting us know!

 
newbie1

Joined: 2005-08-29
Posts: 1
Posted: Mon, 2005-08-29 08:05
SHaRKTooTH wrote:
I just answered my own question.

The problem I was having is with mod_dosevasive and changing the settings on the module fixed the random 403 forbidden errors.

May I know ho do you fix and seting the mod_dosevasive? This is because I am also facing this issue in this moning.

 
montego

Joined: 2005-06-22
Posts: 1
Posted: Sun, 2006-01-29 14:13

I too am having this issue, could someone please post what they did with the mod_doevasive module to get it working again. Don't need to be specific with any server info, but just enough info that I could pass along to my host.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-01-31 10:43