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.
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)".
I did and didn't get any error messages,
url: http://www.vladimirantonov.ru/adz14/portfolio/index.php
user: test
password: 123
http uploads work as expected, see http://www.vladimirantonov.ru/adz14/portfolio/displayimage.php?pos=-362
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
?
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
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.
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
A properly implemented hotlink protection won't harm. An improper one will cause what you're experiencing.
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!
does anybody here can help me
??
We can't help you with your hotlink protection. Ask your webhost for support.
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.
Make sure the 'default mode for files' setting in config is correct.
Default mode for directories - 0755
Default mode for files - 0664
i've tried for files '0660' and got the same result.
Set it to match the perms on the files that do work.
У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.
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!
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.
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/
???
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.
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.
Are you sure that 777 is correct on your server setup, or are you just assuming that?
777 is 'drwxrwxrwx' on my host, otherwise gallery says that it can't write into the those directories
damn!, on the other test server everything is fine, http://vladimirantonov.ru.mastertest.ru/index.php
... trying figure it out.