coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: jeremy@jeremy on January 12, 2004, 05:08:00 AM

Title: Pictures Won't Display
Post by: jeremy@jeremy on January 12, 2004, 05:08:00 AM
I installed thi sprogram on my server (hosted server actually) and everything is working, with the exception of being able to view the pictures. All pictures/thumbnails just have little red X and a link to the the target photo's URL.

Anyh suggestions? Seems like I might just be missing something simple.

Thanks
Title: Pictures Won't Display
Post by: hyperion on January 12, 2004, 06:22:29 AM
Please read the documentation on how to CHMOD your files.  Also check for any old .htaccess files that could be causing this problem.
Title: Pictures Won't Display
Post by: Joachim Müller on January 12, 2004, 10:33:01 AM
might as well be an image library issue: do you have GD or ImageMagick? You need at least one of them (see minimum requirements (http://coppermine.sourceforge.net/faq.php?q=MinimumRequirements#MinimumRequirements)), and the one you have must be configured properly in coppermine config.

GauGau
Title: Pictures Won't Display
Post by: jeremy@jeremy on January 13, 2004, 07:16:28 AM
CHMOD is correct, and I have a current version of GD. No htaccess file is coming into play either.

Any other ideas...this has got me stumped.

Thanks.
Title: Pictures Won't Display
Post by: jeremy@jeremy on January 13, 2004, 07:41:42 AM
None of the gifs for the rating buttons or anything else are showing up either. Let me know if you have any suggestions.

Thanks.
Title: Pictures Won't Display
Post by: Joachim Müller on January 13, 2004, 08:28:39 AM
how 'bout posting a link to your site for a start, so we can take a look?

GauGau
Title: Pictures Won't Display
Post by: jeremy@jeremy on January 13, 2004, 05:18:11 PM
I'm setting up the gallery for a friend of mine to share pics with her family.

I own the domain 321google.com, and set up a sub directory for her called

http://www.charity.321google.com.

I set the subdomain up in the htaccess file.

Could the problem have to do with this being a subdomain?

I'm relatively new to PHP, so I appreciate all the help in this forum.

Thank you.
Title: Pictures Won't Display
Post by: hyperion on January 13, 2004, 06:26:31 PM
Okay, I tried to link directly to one of the photos, and I was given a forbidden error (unless you have redirected 404s to your forbidden page).  This would indicate a permissions problem.

CHMOD all directories in /albums again to their appropriate settings.  You might also show the governing .htaccess file for the install here, as the problem may reside there.

I am inclined to think the problem is with the .htaccess file; CPG usually doesn't allow the upload process to finish when the permissions are incorrect.
Title: Pictures Won't Display
Post by: jeremy@jeremy on January 13, 2004, 06:39:14 PM
Here's the htaccess file that I used for the sub domain:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} charity.321google.com
RewriteCond %{REQUEST_URI} !charity/
RewriteRule ^(.*)$ charity/$1 [L]

Thanks again for the help.

Jeremy
Title: Pictures Won't Display
Post by: hyperion on January 13, 2004, 07:05:15 PM
Nothing really jumps out, so I would try a few things.

First, try adding the NE flag to the conditions in the .htaccess:

[L, NE]
 
Then go the the config panel and remove the slash at the end of the e-card path.  This is from memory, so if you can't find it try searching the board for the double slash in front of displayimage problem. (This isn't causing this problem, but it will cause a 404 later on.)

Finally, playing with your URL shows the permissions problem begins with the /albums directory, so CHMOD it to 777 and try again (I think 755 is the normal setting).
Title: Pictures Won't Display
Post by: jeremy@jeremy on January 13, 2004, 09:34:48 PM
First, try adding the NE flag to the conditions in the .htaccess:

[L, NE]


I haven't done a whole with htaccess files. Would you mind posting an example of how my htaccess file would look with the [L,NE] flag added. I'm not exactly sure where to put it.

Thanks again.
Title: Pictures Won't Display
Post by: hyperion on January 14, 2004, 04:24:39 AM
Like so:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} charity.321google.com
RewriteCond %{REQUEST_URI} !charity/
RewriteRule ^(.*)$ charity/$1 [L, NE]


For more information on mod_rewrite (a wonderful Apache module you should know by heart  :wink: )

http://httpd.apache.org/docs/mod/mod_rewrite.html

The addition of the no escaping tag probably won't make a difference, but it is worth a try.


Did you CHMOD /albums and /albums/userpics to 777 yet? (Be sure to give the IUSR permissions, etc. if you are on Windows.)

Finally, you might consider putting a test install of CPG directly on your domain to see if you get the same behavior problems.
Title: Pictures Won't Display
Post by: jeremy@jeremy on January 14, 2004, 06:44:20 AM
Thanks for the help. Looks like this is working. Thanks again.