Advanced search  

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]

Pages: [1]   Go Down

Author Topic: User uploaded pictures not showing  (Read 4914 times)

0 Members and 1 Guest are viewing this topic.

madaxeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
User uploaded pictures not showing
« on: December 19, 2008, 06:18:49 pm »

Having read the documentation, searched the forum and tried tweaking the Groups, Users, Config and Admin Tools settings I am unable to solve a problem with user-uploads to my 10mm photo gallery.

FTP uploads to my server followed by an admin running of the batch upload tool works perfectly, but when a user uploads a picture the displayimage pages only show a placeholder. Checking on my server the user-uploaded images all exist - intermediates, thumbnails and main images - where the placeholder says they do, and they can also be downloaded and viewed normally via ftp - but if I use a browser to try to link directly to the images I get a code 500 Server Error.

Because of the 500 error I appreciate this may be a problem with my server or site setup, but as it only seems to apply to user-uploaded images it may well be coppermine-configuration related hence this post

I've therefore set debug to show for everyone, limited the image uploads to just one, and created a user login name for testing is "test", password "test1". 

many thanks in advance

tim
Logged

madaxeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: User uploaded pictures not showing
« Reply #1 on: December 20, 2008, 09:21:46 pm »

Sorry - here is a link to a page showing the placeholders instead of images.

http://www.madaxeman.com/gallery/thumbnails.php?album=lastup&cat=2

The placeholders also show when CPM Fetch is used to pull in the last-uploaded image - as in on this page http://www.madaxeman.com/index.php half way down the right column

If anyone can give me an opinion as to whether this is likley to be a Coppermine issue that would be great.

thanks

Tim
Logged

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: User uploaded pictures not showing
« Reply #2 on: December 20, 2008, 09:36:08 pm »

Could you give me a deep link to one of the images that doesn't show please?
Logged
Read Docs and Search the Forum before posting. - Soporte en espaņol
--*--
Fabricio Ferrero's Website

Catching up! :)

Deus

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 153
    • DJ-Daz
Re: User uploaded pictures not showing
« Reply #3 on: December 20, 2008, 10:57:07 pm »

http://www.madaxeman.com/gallery/albums/userpics/10022/normal_Hummel_6.jpg

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@madaxeman.myzen.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Logged
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

Fabricio Ferrero

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: User uploaded pictures not showing
« Reply #4 on: December 21, 2008, 12:00:24 am »

The error itself told you what to do ;)  They should fix the problem everytime a '500' shows up.
Logged
Read Docs and Search the Forum before posting. - Soporte en espaņol
--*--
Fabricio Ferrero's Website

Catching up! :)

madaxeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: User uploaded pictures not showing
« Reply #5 on: December 22, 2008, 11:36:52 am »

The error itself told you what to do ;)  They should fix the problem everytime a '500' shows up.

Hmmm - technically that email address comes to me ??? But its beyond my ability level to fix  :-[

I'll get onto my ISP and ask - maybe the hosting setup I have somehow doesn't like uploads that aren't done via ftp and/or a registered site admin account? Once I know I'll post back...

Logged

madaxeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: User uploaded pictures not showing
« Reply #6 on: December 22, 2008, 04:46:32 pm »

Turns out there was an .htaccess file in the picture upload folder which was blocking it.

The file had the line

php_engine = 0

My ISP suggested it may be a legacy from an older version of coppermineto fix a security flaw?

Anyway, all fixed now, thanks for looking into it for me. I will endeavour to mark this "solved"



Logged

madaxeman

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: User uploaded pictures not showing
« Reply #7 on: December 22, 2008, 04:50:36 pm »

Turns out there was an .htaccess file in the picture upload folder which was blocking it.

The file had the line

php_engine = 0

The .htacess file was in the userpics folder, and I ftp'd this file out, removed the line from the file and ftp'ed it back up to my site
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: User uploaded pictures not showing
« Reply #8 on: December 22, 2008, 07:58:05 pm »

No coppermine version ever came with a .htaccess file in any folder, so it can't be a leftover from a previous version, but must be something that you or your webhost deliberately added.
Anyway, thanks for returning and posting your solution.
Logged
Pages: [1]   Go Up
 

Page created in 0.08 seconds with 20 queries.