coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: T-Error on November 29, 2005, 03:04:20 PM

Title: Batch Upload Thumbnail generation doesn not work!
Post by: T-Error on November 29, 2005, 03:04:20 PM
First of all thank you guys for this great piece of software!

Now, when I batch upload files I get under results "Klicken für Details oder erneut laden" which means "Click for Details or reload" When I click on it I get a message that says:

"Kann Thumbnail nicht erzeugen." which means "Cannot create thumbnail". Under IE it's a broken image.

The path to the files is "albums/our_house/test/"

The folders have been chmoded to 777

I have GD bundled (2.0.28 compatible) enabled.

What am I doing wrong? Where are the thumbnails created?
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: msycho on November 29, 2005, 10:54:35 PM
I have the same problem with the creation of thumbnails batching upload files.

On the server the same gd-version is installed.

Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: kegobeer on November 29, 2005, 11:02:39 PM
Have you changed the default location of the albums in the config page?
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: msycho on November 29, 2005, 11:13:59 PM
the default location of the albums in the config page is albums/.

in the folder albums i have e.g. another folder "folder A" which i wanted to batch. so i type in the destination i want to batch */albums/folder A/ or is this wrong?
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: artistsinhawaii on November 29, 2005, 11:56:59 PM
@msycho

You really shouldn't put spaces in your directory folder names.  User underscores or dashes, instead.

@both

run phpinfo.php and double check the GD versions in your host server.

Dennis
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: msycho on November 30, 2005, 08:15:37 AM
Quote from: madeinhawaii on November 29, 2005, 11:56:59 PM
@msycho

You really shouldn't put spaces in your directory folder names.  User underscores or dashes, instead.


Dennis

Oh, this was just an example here in the forum.

so what is wrong?
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Tranz on November 30, 2005, 08:38:36 AM
IHow can we tell what's wrong if you don't give real info?
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Joachim Müller on November 30, 2005, 08:41:40 AM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: T-Error on November 30, 2005, 10:30:42 AM
Quote from: GauGau on November 30, 2005, 08:41:40 AM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble

When I do this, I get awful ot of info. Which section of the debgu info would be useful for you? Not sure if I can post everything here, might be too long.

Anyway, When I http upload, first screen says that file has been added, I am asked to click "continue" and then it says "The previous file could not be placed."

I mean.. what is a gallery software good for when I cannot add / upload files to it? ;-)

And yes, I do have GD

Coppermine version: 1.4.2(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Joachim Müller on November 30, 2005, 10:50:33 AM
Re-read the section I refered to. I don't need the debug_output, I need error messages, a link and a test user account, as suggested in the section I refered to. If it still says "The previous file could not be placed", you haven't done as suggested - you need to switch all groups to "Single file uploads only".

Quote from: T-Error on November 30, 2005, 10:30:42 AM
I mean.. what is a gallery software good for when I cannot add / upload files to it? ;-)
Pretty smart reply. Let me ask you a question as well: what is a documentation good for if a user doesn't read it? >:(

Joachim
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: T-Error on November 30, 2005, 10:59:41 AM
Hm... Under Groups I *did* set all "File upload boxes" to 1 - is this what you meant?

Anyway, here's a test acount with upload priviliges:

uid: cpgtest
pwd: testtest
url: muellender.com/photos

thanx for your help guys!
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Joachim Müller on November 30, 2005, 11:16:16 AM
set "URI/URL-Upload:" to "0" for all groups, we need single file uploads only!!!
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: T-Error on November 30, 2005, 11:19:18 AM
aaaaaahhhhhhh.....

I thought single = 1  ;D

Well okay , now I have an error message:


The file 'albums/userpics/Bild_002.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /home/hsphere/local/edited/edited/muellender.com/photos/db_input.php - Line: 391
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Joachim Müller on November 30, 2005, 11:27:05 AM
make sure you have set permissions (CHMOD) as suggested in the docs, the script needs write access inside the albums folder and every folder within it.
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: T-Error on November 30, 2005, 11:30:30 AM
I just checked it, every folder under /albums/ including /albums/ was chmodded to 777

and no folder contains spaces or special caracters.
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Joachim Müller on November 30, 2005, 11:34:54 AM
don't check, but re-apply - don't trust the information your ftp app (or whatever you use to set permissions) displays. If 777 doesn't work, try 755. Refer to the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#permissions) to understand how to set permissions. This is something that we can't do for you, you have to figure this out for yourself, maybe together with your webhost.
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: T-Error on November 30, 2005, 11:42:22 AM
Thank you for your quick responses!

I did reapply - no positive result
I did chmod 755 - no positive result.

I still get the error.

I am using FileZilla, right click on folder "File attributes"

You sure this is the source for the problem?

If chmod wouldn't work correctly or if my hostwould have probs with chmod, I wouldn't have been able to install CPG at all.

Slowly I am "out of my latin" (mit dem Latein am Ende) ;-)
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Joachim Müller on November 30, 2005, 11:45:45 AM
ask your webhost for support then.
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: msycho on November 30, 2005, 12:36:14 PM
Quote from: TranzNDance on November 30, 2005, 08:38:36 AM
IHow can we tell what's wrong if you don't give real info?

I get no errormessage like T-Error. I get only the message that thumnails cannot be created after trying to batch files.

what for info you need?

by the way, you'll find my coppermine gallery at www.sghabi2006.de/copgal/index.php
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Joachim Müller on November 30, 2005, 08:07:40 PM
If you must hijack another user's thread, you could at least have read it: we clearly described what information you need to supply if you want us to look into your issues. There's a section in the docs that explains what to do to trouble-shoot the upload process. There's a sticky thread. There's a tutorial. All say the same thing. What else do you need?
This is the last warning: misbehave once more and you'll get banned!

Joachim
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: msycho on November 30, 2005, 11:00:51 PM
i am sry that i "hijacked" this thread.

i have done the things to trouble-shoot the upload process. i have read the sticky thread. that is why i said that there is no error message after upload a file per url-single-upload. and thats also why i am confused that the thumbnails could not be created. i checked all folder-attributes (chmod), took the trouble shoot a few times. but now since this evening when i click on the config/admin button there comes following message with a white background:
"Fatal error: Call to undefined function: db_query() in */copgal/include/init.inc.php on line 413"
I have nothing changed in this file. but the thing is that in line 413 there is no code, this is after the ?>. i did not found an answer belonging to this error message with the forum search, and i do not know if there is any connection between the error message and the problem of creating thumbnails but perhaps it is of great importance for you.

i hope that you are satisfied with this answer and hope that i have done all this what is described in here. i am sorry about my misbehavior and please excuse my bad english.
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Joachim Müller on December 01, 2005, 05:43:18 AM
Yeah, I can see you looked very hard: from the docs section I refered to:
QuoteWhen asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well.
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: msycho on December 01, 2005, 08:18:23 AM
Oh, excuse me please, this part i have forgotten.

now i enabled the debug mode, set the upload form for all groups to "0" and i created a new account.

name: test
pw: testacc
url: www.sghabi2006.de/copgal/index.php

i think it is from importance for you: the message error "Fatal error: Call to undefined function: db_query() in */copgal/include/init.inc.php on line 413" now is not any more coming when i click on the config button. i do not know what happened because i didn't change anything in this file.
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Joachim Müller on December 01, 2005, 08:39:57 AM
the message means that you haven't upgraded fully, you need to replace all cpg1.3.x files. Use versioncheck.php to find out what files need replacement.
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Satyr on December 01, 2005, 10:08:13 AM
Quote from: T-Error on November 30, 2005, 11:42:22 AM
Thank you for your quick responses!

I did reapply - no positive result
I did chmod 755 - no positive result.

I still get the error.

I am using FileZilla, right click on folder "File attributes"

You sure this is the source for the problem?

If chmod wouldn't work correctly or if my hostwould have probs with chmod, I wouldn't have been able to install CPG at all.

Slowly I am "out of my latin" (mit dem Latein am Ende) ;-)
Try to set the permissions to 777. ^^
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: T-Error on December 01, 2005, 10:28:55 AM
Quote from: Satyr on December 01, 2005, 10:08:13 AM

Try to set the permissions to 777. ^^

Erm... that's what I did in the first place. Didn't work either...
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Joachim Müller on December 01, 2005, 10:31:01 AM
what did your webhost say when you asked them for support?
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: T-Error on December 01, 2005, 10:42:33 AM
Quote from: GauGau on December 01, 2005, 10:31:01 AM
what did your webhost say when you asked them for support?

Sent them an email. But since they are in CA/USA it can take some time. (Time zone difference...)

but like I said, if folder permissions wouldn't work properly, I wouldn't have been able to install CPG at all since it also writes stuff during the installation.

We'll see what my host says, not sure if he can help.

In the meantime, any clue would be helpful :-)
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: T-Error on December 01, 2005, 04:26:09 PM
btw, does PHP Safe mode need to be off?
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: T-Error on December 01, 2005, 06:14:54 PM
Okay, Host fixed this.

His answer:

"There is currently a bug in PHP 4.4.1 regarding specific functions that WordPress and Coppermine require; we have provided a workaround for this. The bug should be fixed in future updates of PHP."

Seems to be known.

I hope you guys are aware of this and can also provide a fix for this. :-)
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: msycho on December 01, 2005, 06:18:12 PM
Quote from: GauGau on December 01, 2005, 08:39:57 AM
the message means that you haven't upgraded fully, you need to replace all cpg1.3.x files. Use versioncheck.php to find out what files need replacement.

i said that the error message does not come anymore. i do not know why it comes because i did not change things in the file and i do not know why it goes. anyway now there is no error message. i am confused a little bit.

to your answer: i have not upgraded from 1.3.x to 1.4.2, i just installed 1.4.2.
after using versionscheck.php following files were newer on the webserver than my cpg: versioncheck.php, some languages in the folder lang/ and one file seems to be from an older cpg-version: docs/theme/style.css

belonging to t-error's question, the php safe mode is ON on my server. perhaps this is the problem that no thumbnails could be created?!

belonging to the answer of t-error's webhost: on my server php version 4.4.0 is installed. so could it be that there is the same bug and that i have to wait for a fix/update?
Title: Re: Batch Upload Thumbnail generation doesn not work!
Post by: Joachim Müller on December 02, 2005, 08:07:29 AM
Quote from: T-Error on December 01, 2005, 06:14:54 PM
Okay, Host fixed this.
OK, thanks for letting us know. Marking this thread as "solved" then.

Quote from: msycho on December 01, 2005, 06:18:12 PM
i am confused a little bit.
So am I.

Quote from: msycho on December 01, 2005, 06:18:12 PMi have not upgraded from 1.3.x to 1.4.2, i just installed 1.4.2.
Then how should there be any reference to Fatal error: Call to undefined function: db_query() in */copgal/include/init.inc.php on line 413?


Quote from: msycho on December 01, 2005, 06:18:12 PMafter using versionscheck.php following files were newer on the webserver than my cpg:
???


Quote from: msycho on December 01, 2005, 06:18:12 PMbelonging to t-error's question, the php safe mode is ON on my server. perhaps this is the problem that no thumbnails could be created?!
Depends on your server setup. There's a safe_mode section in the docs, RTFM.

It's incredibly hard to track answers on this thread, as you chose to hijack it. This is a pain in the ***
As suggested above: I'm locking this thread now and marking it as solved.

Joachim