coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: antonov on March 09, 2008, 09:51:08 PM

Title: some thumbnails aren't showing after update
Post by: antonov on March 09, 2008, 09:51:08 PM
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.




Title: Re: some thumbnails aren't showing after update
Post by: Joachim Müller on March 10, 2008, 07:44:12 AM
Do exactly (http://exactly) as sugested in the docs, sections "upload troubleshooting (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble)" and "asking for support on upload issues (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_support)".
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 10, 2008, 10:09:19 AM
I did and didn't get any error messages,

url: http://www.vladimirantonov.ru/adz14/portfolio/index.php
user: test
password: 123
Title: Re: some thumbnails aren't showing after update
Post by: Joachim Müller on March 10, 2008, 03:04:12 PM
http uploads work as expected, see http://www.vladimirantonov.ru/adz14/portfolio/displayimage.php?pos=-362
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 10, 2008, 03:23:54 PM
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
?
Title: Re: some thumbnails aren't showing after update
Post by: Joachim Müller on March 10, 2008, 03:26:32 PM
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
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 10, 2008, 06:49:55 PM
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.
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 11, 2008, 03:02:11 PM
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
Title: Re: some thumbnails aren't showing after update
Post by: Joachim Müller on March 12, 2008, 06:50:14 AM
A properly implemented hotlink protection won't harm. An improper one will cause what you're experiencing.
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 12, 2008, 08:11:21 AM
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!
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 14, 2008, 06:36:36 AM
does anybody here can help me
??
Title: Re: some thumbnails aren't showing after update
Post by: Joachim Müller on March 14, 2008, 07:32:56 AM
We can't help you with your hotlink protection. Ask your webhost for support.
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 14, 2008, 03:35:48 PM
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.
Title: Re: some thumbnails aren't showing after update
Post by: Nibbler on March 14, 2008, 03:39:26 PM
Make sure the 'default mode for files' setting in config is correct.
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 14, 2008, 03:55:24 PM
Default mode for directories - 0755
Default mode for files - 0664

i've tried for files '0660' and got the same result.
Title: Re: some thumbnails aren't showing after update
Post by: Nibbler on March 14, 2008, 04:04:44 PM
Set it to match the perms on the files that do work.
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 14, 2008, 04:10:27 PM
У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.
Title: Re: some thumbnails aren't showing after update
Post by: Joachim Müller on March 14, 2008, 06:17:41 PM
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!
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 14, 2008, 07:05:36 PM
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.
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 15, 2008, 10:25:41 PM
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/

???
Title: Re: some thumbnails aren't showing after update
Post by: Joachim Müller on March 15, 2008, 11:06:38 PM
That's why the docs say that you need to assign permissions before running the installer. Coppermine can't correct improper permissions, so you have to do that.
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 15, 2008, 11:28:36 PM
well, I did assign permissions before running the installer (I gave 777 for /albums, /albums/userpics, and /albums/edit directories).
I've been talking about owner and permissions that appear on generated thumbnails after batch-uploading process.
Title: Re: some thumbnails aren't showing after update
Post by: Joachim Müller on March 15, 2008, 11:30:01 PM
Are you sure that 777 is correct on your server setup, or are you just assuming that?
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 16, 2008, 12:09:29 AM
777 is 'drwxrwxrwx' on my host, otherwise gallery says that it can't write into the those directories
Title: Re: some thumbnails aren't showing after update
Post by: antonov on March 16, 2008, 12:30:11 AM
damn!, on the other test server everything is fine, http://vladimirantonov.ru.mastertest.ru/index.php
... trying figure it out.