some thumbnails aren't showing after update some thumbnails aren't showing after update
 

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

some thumbnails aren't showing after update

Started by antonov, March 09, 2008, 09:51:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

antonov

Hello,
I've upgraded Coppermine version from cpg1.3 to cpg1.4. Everything looked fine, but when I had uploaded some new images through "batch add process", thumbnails didn't show. I got the same result when I used "http upload".
I've checked several times CHMOD settings on the /albums, /albums/userpics, and /albums/edit directories, there are all on 777.
I had switched "Default mode for files" in "Files and thumbnails advanced settings" to 0666, and reloaded images through both "batch add process" and "http upload", but got the same result for each method.

But those thumbnails of images that I've uploaded in cpg1.3's version work fine.

Link: http://www.vladimirantonov.ru/adz14/portfolio/thumbnails.php?album=18

Thank you in advance.





Joachim Müller


antonov


Joachim Müller


antonov

Yes, the big images are fine, but I've been taking about thumbnails, they are not showing and yours too.
http://www.vladimirantonov.ru/adz14/portfolio/index.php?cat=1
i don't understand why
?

Joachim Müller

Improper hotlink protection. If you try to open one of the thumbnails in your browser (e.g. http://www.vladimirantonov.ru/adz14/portfolio/albums/userpics/thumb_Beispiel.jpg), this is what you'll get:
QuoteForbidden
You don't have permission to access /adz14/portfolio/albums/userpics/thumb_Beispiel.jpg on this server.

Apache/1.3.33 Server at www.vladimirantonov.ru Port 80
Remove your improper hotlink protection (usually set up by .htaccess means). If you can't figure out on your own, ask your webhost for support - show them my reply here - they should know what to look for.

Joachim

antonov

I've created .htaccess file in the /albums, containing this code


RewriteEngine off

<FilesMatch .jpg>
Order Deny,Allow
Allow From All
</FilesMatch>


which will counter-act the global .htaccess file.
But the problem still exists.

antonov

Also, it doesn't make sense for me - hotlink protection (which is turned on, as you said) sets up in .htaccess file, which influences on all other files on the webhost, why the old thumbnails are still available through direct link?

e.g. http://www.vladimirantonov.ru/adz14/portfolio/albums/userpics/thumb_bugatti22.jpg

Joachim Müller

A properly implemented hotlink protection won't harm. An improper one will cause what you're experiencing.

antonov

I didn't do any hotlink protection at all, I just used cpg1.3 version and everything was fine, after upgrading Coppermine gallery to cpg1.4 that problem suddenly appeared.
I didn't do any manipulations on the .htaccess file (before that error), I just used default webhost settings (except CHMOD).

What should I do to make properly implemented hotlink protection, or to turn it off or what??
I just want your gallery, that suits me quite well, to work fine!

antonov


Joachim Müller

We can't help you with your hotlink protection. Ask your webhost for support.

antonov

I've asked my webhost, and they told me that scripts give wrong permissions to those files, that's why the files cannot be seen through direct link.
By default, files must inherit permissions and owner of the folder in which they have created, they said,
those files had been given wrong permissions and owner (I couldn't change the CHMOD for them, by the way)

By hand they had changed permissions for those files and then thumbnails began working properly.
Ask script's developers for support, they said.

They said nothing about hotlink protection also.

Nibbler

Make sure the 'default mode for files' setting in config is correct.

antonov

Default mode for directories - 0755
Default mode for files - 0664

i've tried for files '0660' and got the same result.

Nibbler

Set it to match the perms on the files that do work.

antonov

Уep! That's what I did first of all - '660' for old files (which I've downloaded in cpg1.3x) is working fine, but got the same result.

Joachim Müller

Quote from: antonov on March 14, 2008, 04:10:27 PMThat's what I did first of all - '660' for old files
660 would be a very exotic setup, as it would mean that the files are not even readable. I strongly doubt that this is correct.

Quote from: antonov on March 14, 2008, 04:10:27 PMwhich I've downloaded in cpg1.3x
Not sure what you refer to, but folder/file permission hasn't changed at all from cpg1.3.x to cpg1.4.x.
Your constant reference to cpg1.3.x is completely invalid. Don't!

antonov

to be honest, I'm not a professional with web administration, I just tell you what I've got.
Have a look, http://www.vladimirantonov.ru/ftp/perms.jpg

That is a thumbnail that works (http://www.vladimirantonov.ru/adz14/portfolio/albums/userpics/thumb_modelphoto.jpg)
and the other three there (with owner - 65534), which don't.

I referred to cpg1.3.x, only because I had used it almost 2 years on the same webhost and even didn't think about perms, and it worked properly.

antonov

Uuufh, I don't understand at all, there is a completely new installed gallery with default configuration, but gives wrong permissions and owner to thumbs that I can't do anything with them
http://www.vladimirantonov.ru/adz14/portfolio/

???