Pictures Won't Display Pictures Won't Display
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Pictures Won't Display

Started by jeremy@jeremy, January 12, 2004, 05:08:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jeremy@jeremy

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

hyperion

Please read the documentation on how to CHMOD your files.  Also check for any old .htaccess files that could be causing this problem.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Joachim Müller

might as well be an image library issue: do you have GD or ImageMagick? You need at least one of them (see minimum requirements), and the one you have must be configured properly in coppermine config.

GauGau

jeremy@jeremy

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.

jeremy@jeremy

None of the gifs for the rating buttons or anything else are showing up either. Let me know if you have any suggestions.

Thanks.

Joachim Müller

how 'bout posting a link to your site for a start, so we can take a look?

GauGau

jeremy@jeremy

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.

hyperion

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.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

jeremy@jeremy

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

hyperion

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).
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

jeremy@jeremy

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.

hyperion

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.
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

jeremy@jeremy

Thanks for the help. Looks like this is working. Thanks again.