Images not showing up, configuration warnings, oh my!

WebKat
WebKat's picture

Joined: 2002-11-22
Posts: 182
Posted: Sat, 2012-03-17 16:48

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:1.5-RC2
Apache version:2.2.22
PHP version (don't just say PHP 4, please):5.2.17
Graphics Toolkit: NetPBM, ImageMagick
Operating system: Linux
Web browser/version (if applicable): Chrome

Gallery url: http://www.tucsonirishcommunity.com/gallery

This gallery used to work perfectly. It is only updated every year at St. Patrick's Day and this year when we went to add the 2012 albums, we had problems. Images are not showing up and when we try to view them in their own window, we get 500 server errors. My hosting company says it's in the code, because they don't see it on their end. Any ideas on why most of the pictures are broken but some show up? Could it be in my configuration somewhere?

I went through the configuration wizard again and found these warnings:

Warning 1:

Warning!
Apache is not obeying the 'php_value' lines in your .htaccess file. Try entering the following into your web server's httpd.conf file:
<Directory /home5/jugglerd/public_html/tucsonirishcommunity/gallery>
	AllowOverride Options FileInfo
</Directory>
If you are running PHP in CGI mode, this message is unavoidable.

I talked to my host and they said that PHP is running in PHP5 mode. Additionally, there are no "php_value" lines in my .htaccess file. My .htaccess file is this:

#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

Warning 2:

Either mod_rewrite is not installed or your .htaccess file is not enabled (see above). Either way, we'll have to use longer URLs in the Gallery. If you want to turn it on, first make sure that your .htaccess file is being obeyed. If it still doesn't work, you may need to reconfigure and rebuild Apache with this flag:
--enable-module=rewrite

My host says that mod_rewrite is installed. And you can see my .htaccess file above. How do I know if it is "being obeyed"?

--
WebKat, Gallery2 holdover extraordinaire.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2012-03-17 20:12

This is what I get when I try to visit one of the problem images directly

500 Server Error

A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.
URL: http://www.tucsonirishcommunity.com/gallery/albums/album05/IMG_2269.jpg

What do the server logs say? Clear the logs if you can, visit a few problem pages, copy the output, paste to pastebin.com and post a link here.

--
dakanji.com

 
WebKat
WebKat's picture

Joined: 2002-11-22
Posts: 182
Posted: Sun, 2012-03-18 03:46

Nothing in the error logs. It seems that the images in question *don't exist*...as in, when I go to the albums folder they're supposed to be in, either the folder isn't there or it's empty. Now, all of this USED to work fine...so what could have happened? I'm TOTALLY confused. And my mom created three more albums today and uploaded the images and NONE of them are showing up. I went to the album they're supposed to be in and it's got no images in it. What configuration setting do I have wrong?!

--
WebKat, Gallery2 holdover extraordinaire.

 
baysidemk

Joined: 2009-06-28
Posts: 39
Posted: Fri, 2012-05-11 20:33

i had a similar problem. turned out that there were .htaccess files in the var and var/albums and var/resizes directories and they had rewrite rules. i commented out those rules and it began working just fine
-----
M i k e

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2012-05-11 23:42

@baysidemk please comment in the appropriate forums only this is a G1 forum.

-s