User uploaded pictures not showing User uploaded pictures not showing
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

User uploaded pictures not showing

Started by madaxeman, December 19, 2008, 06:18:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

madaxeman

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

madaxeman

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

Fabricio Ferrero

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

Catching up! :)

Deus

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.
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

Fabricio Ferrero

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

Catching up! :)

madaxeman

Quote from: Fabricio Ferrero 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.

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...


madaxeman

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"




madaxeman

Quote from: madaxeman 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

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

Joachim Müller

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.