Images not show after upload Images not show after upload
 

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

Images not show after upload

Started by tommytomato, March 27, 2010, 05:06:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tommytomato

Got a bit of a prob here, hasn't happen to me before

Got a localhost server thats running the gallery, all images and thumbs show OK

I did a backup of the database and site files and uploaded to my live server, both are the same system Ubuntu 9.10 one is desktop ( localhost ) the other is command line only ( live box )

Theme is DaMysterious 2007, the gallery is 1.4.3 (stable)

I'm running the Updating thumbnails and/or resized images right now, hopeing its going to show the missing images

All i get now is some images will show and others just show the file name in its place.

What has happened, is this a FTP upload error ? I'm unsure

does any one know

TT ( karl )

tommytomato

I've done this thumbnails and/or resized images

and it didn't change

any ideas please

TT ( karl )

tommytomato

I just checked to see if those files were in the ablums and they are

going to try a upgrade and see if that fixes it


TT (karl )

tommytomato

Up grade went OK, still have the problem in some images not showing

TT ( karl )

tommytomato

I'm still at a lost here, any one please

I upgraded to 1.5.3 (RC)  OK

Every thing is fine apart from some thumbs/images that are not showing, has file name in it's place, beside that every thing is OK

I've back up the site files/database a few time's now and re/uploaded a few time's, I checked all the images that the file name's say in place of missing thumb/images and they are all there

the site in question is http://gallery.rockinghamgateway.com/  refresh/F5 to see missing images

or straight to a file http://gallery.rockinghamgateway.com/displayimage.php?pid=849#top_display_media

I've searched around the forum for an answer to which I have not found yet

I'm at a lost  :-[

TT ( karl )

Nibbler

Looks like some kind of hotlink protection. I get 403 errors loading the page initially but accessing the images directly works. If I disable referrers everything works fine. Check for an .htaccess file with hotlink protection.

tommytomato

QuoteLooks like some kind of hotlink protection.

I've never heard of this before, can you explain please

I've looked in the root where the site sits for .htaccess file and there is not one
I do have .htaccess files on the system but they are for joomla site and some protected folders

QuoteI get 403 errors loading,
is that loading the main site ?

TT ( karl )

tommytomato

I did find a .htaccess file in one of my folders on the gallery install

I removed the file and all images now show, is this the correct thing to do ?

Here is what it said

RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$

RewriteCond %{HTTP_REFERER} !^http://(www\.)?rockinghamgateway.com [NC]

RewriteRule \.(png|gif|jpe?g)$ - [NC,F]


TT ( karl )




Nibbler

Yeah. That's the hotlink protection code. If you don't want it (or don't know what it is) then deleting the file is correct. If you do want it then you need to correct the url


RewriteCond %{HTTP_REFERER} !^http://gallery.rockinghamgateway.com [NC]

tommytomato

Quote from: Nibbler on March 27, 2010, 01:04:57 PM
Yeah. That's the hotlink protection code. If you don't want it (or don't know what it is) then deleting the file is correct. If you do want it then you need to correct the url


RewriteCond %{HTTP_REFERER} !^http://gallery.rockinghamgateway.com [NC]


Hot linking is to stop others from linking straight to the file to load on their site ?

TT ( karl )

Nibbler

Yes. It was blocking the images because it considered gallery.rockinghamgateway.com to be a different website to the one it was protecting ([www.]rockinghamgateway.com)

tommytomato

Thansk heaps, I changed the file to read full sub domain

may as well mark this solved

TT ( karl )