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: Images not show after upload  (Read 6373 times)

0 Members and 1 Guest are viewing this topic.

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
Images not show after upload
« on: March 27, 2010, 05:06:46 am »

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 )
Logged

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
Re: Images not show after upload
« Reply #1 on: March 27, 2010, 06:54:36 am »

I've done this thumbnails and/or resized images

and it didn't change

any ideas please

TT ( karl )
Logged

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
Re: Images not show after upload
« Reply #2 on: March 27, 2010, 07:07:03 am »

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 )
Logged

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
Re: Images not show after upload
« Reply #3 on: March 27, 2010, 07:39:26 am »

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

TT ( karl )
Logged

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
Re: Images not show after upload
« Reply #4 on: March 27, 2010, 11:30:47 am »

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 )
Logged

Nibbler

  • Guest
Re: Images not show after upload
« Reply #5 on: March 27, 2010, 12:36:35 pm »

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

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
Re: Images not show after upload
« Reply #6 on: March 27, 2010, 12:45:01 pm »

Quote
Looks 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

Quote
I get 403 errors loading,
is that loading the main site ?

TT ( karl )
Logged

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
Re: Images not show after upload
« Reply #7 on: March 27, 2010, 12:59:49 pm »

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

Code: [Select]
RewriteEngine on

RewriteCond %{HTTP_REFERER} !^$

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

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

TT ( karl )



Logged

Nibbler

  • Guest
Re: Images not show after upload
« Reply #8 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

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

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
Re: Images not show after upload
« Reply #9 on: March 27, 2010, 01:21:46 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

Code: [Select]
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 )
Logged

Nibbler

  • Guest
Re: Images not show after upload
« Reply #10 on: March 27, 2010, 02:16:53 pm »

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)
Logged

tommytomato

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 43
    • http://gallery.rockinghamgateway.com/
Re: Images not show after upload
« Reply #11 on: March 27, 2010, 02:43:24 pm »

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

may as well mark this solved

TT ( karl )
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.