forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: JJRuhle on July 13, 2007, 03:09:00 pm

Title: 0 Uploads Completed and no check box with batch add?
Post by: JJRuhle on July 13, 2007, 03:09:00 pm
When I try to upload photos to my site, they do not run through successfully. The upload basically takes forever until it times out, at which point it tells me 0 uploads were successful.

As an alternative, I tried to batch upload them. It recognized the folder they were put into and found the files, but there is no check box next to the files name. You can see a screen shot of this at http://www.madski.com/lifeforceliquid/albums/batch.JPG

The website is www.lifeforceliquid.com

Thanks!
~Jeff~
Title: Re: 0 Uploads Completed and no check box with batch add?
Post by: Joachim Müller on July 13, 2007, 03:53:05 pm
Go through the threads on this sub-board: all postings similar to yours are being answered with the reply
Quote
Do exactly as suggested in the upload troubleshooting section of the docs
This happens for a particular reason: it's the only method that we could possibly help you ::)
Title: Re: 0 Uploads Completed and no check box with batch add?
Post by: JJRuhle on July 15, 2007, 01:57:39 pm
The error message I get is posted below. I created a test account with the username "test" and password "test".

I also did a search on the forum for the line "[15] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)" since it looks like it would be general line that someone else with the same problem would also generate. However, it did not seem to pull up any relevant results.

Sorry I did not post this the first time! I did not see that troubleshooting guide posted there.

~Jeff~


USER:
------------------
Array
(
    [ID] => 9b719c6db55c71775a0c1eeed27044a0
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => jjruhle
    [groups] => Array
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [album] => 8
    [MAX_FILE_SIZE] => 102398976
    [title] => OMG, it's a Lizmoose!
    [caption] =>
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.2 - OK
------------------
mySQL version: 4.1.21-standard
------------------
Coppermine version: 1.4.10(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:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.21
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.2.1
Linked Version 1.2.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.112 seconds - 16 queries in 0.001 seconds - Album set : ; Meta set: ;
Title: Re: 0 Uploads Completed and no check box with batch add?
Post by: Joachim Müller on July 15, 2007, 07:36:09 pm
The error message I get is posted below. I created a test account with the username "test" and password "test".
The test user doesn't have the privilege to have a personal gallery nor does he have the privilege to upload to a public album, so it's useless. I got
Quote
Sorry there is no album where you are allowed to upload files
If you want free support, make sure to provide accurate data and test things before blindly posting an account.

Do exactly as suggested in the upload troubleshooting section of the docs
That's why the word "exactly" is in my posting. Re-read the upload troubleshooting (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble) time extra carefully and do exactly as suggested there. The upload troubleshooting section also clearly says that you mustn't post debug_output unless requested. I didn't ask for it, so why did you post it?
Title: Re: 0 Uploads Completed and no check box with batch add?
Post by: JJRuhle on July 16, 2007, 02:43:30 am
Well, i am not sure how to give the privilege to upload to a public album, so I set up the test account to be able to make a personal album. I guess I just assumed that if it was registered it would be able to upload.

Also, the "Display notices in debug mode" setting under the Maintenence section is set to "no". Is that what you are talking about with the debug_output? I am not sure what setting that relates to... Sorry :-/
Title: Re: 0 Uploads Completed and no check box with batch add?
Post by: Joachim Müller on July 16, 2007, 06:05:36 am
Well, i am not sure how to give the privilege to upload to a public album, so I set up the test account to be able to make a personal album.
Is being explained in the documentation.



Also, the "Display notices in debug mode" setting under the Maintenence section is set to "no".
That's fine, leave it to "no".

Is that what you are talking about with the debug_output? I am not sure what setting that relates to... Sorry :-/
In your second posting on this thread you pasted the debug_ouput into your posting, although the upload troubleshooting section of the docs say not to do that unless a supporter explicitely asks for it. That's what I told you.

I was able to upload using http uploads just fine (see http://lifeforceliquid.com/displayimage.php?pos=-295), so let's try to figure out what goes wrong when batch-adding files. Please post a deep link to one of the files you're trying to batch-add that doesn't work as expected.

Joachim
Title: Re: 0 Uploads Completed and no check box with batch add?
Post by: JJRuhle on July 16, 2007, 06:36:19 am
For some reason the HTTP upload won't work for me for some reason then. The I placed a duplicate of the file that I tried to upload at the following address: http://www.madski.com/lifeforceliquid/albums/NewZealand/Week2/DSCN3808.JPG. The message I get when trying to upload this is:

Quote
No file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...

File: /home/jjruhle/public_html/lifeforceliquid/db_input.php - Line: 311

Is there something wrong with the file? Maybe my camera is making something incompatible?
Title: Re: 0 Uploads Completed and no check box with batch add?
Post by: Joachim Müller on July 16, 2007, 06:42:14 am
The file is 3264 x 2448 pixels with 2.48 MB file size, so you might be running into limitations on your webserver. Not sure what exactly you mean.
Title: Re: 0 Uploads Completed and no check box with batch add?
Post by: JJRuhle on July 16, 2007, 06:57:51 am
Well, I had size issues before, which is why i increased the size to 99,999 KB, so I would not have that problem anymore. And I don't think that the resolution would be a problem either. I am relatively sure it is not a web server issue, but probably should not completely rule out the possibility.

I am on a really slow connection overe here in New Zealand, so one thought is that the upload may be timing out before the file finishes. However, this would not explain the problems with batch uploading. Any ideas?
Title: Re: 0 Uploads Completed and no check box with batch add?
Post by: JJRuhle on July 16, 2007, 07:00:46 am
Another interesting developement.... I opened and re-saved the image in Photoshop, nad it uploaded properly. Any idea what gives?
Title: Re: 0 Uploads Completed and no check box with batch add?
Post by: JJRuhle on July 16, 2007, 08:09:04 am
Hmm.... I think it must be the time-out thing. I can batch add them now without any problems. Is there a time-out option that I can disable?
Title: Re: 0 Uploads Completed and no check box with batch add?
Post by: Joachim Müller on July 16, 2007, 08:16:22 am
Another interesting developement.... I opened and re-saved the image in Photoshop, nad it uploaded properly. Any idea what gives?
Possible file corruption - the image libraries coppermine uses (ImageMagick or GD2) or more picky when it comes to corrupted files, while your desktop app (Photoshop or similar) might be more robust when it comes to corrupted files. Marking thread as "solved".

Hmm.... I think it must be the time-out thing. I can batch add them now without any problems. Is there a time-out option that I can disable?
There are time-outs both in your browser as well as on your server. There's no such option in Coppermine, as it doesn't come into play if the client or the webserver run into time-outs first. You (as admin) should use FTP-uploads plus batch-add anyway.

Well, I had size issues before, which is why i increased the size to 99,999 KB
Don't use nonsense-settings.

And I don't think that the resolution would be a problem either. I am relatively sure it is not a web server issue, but probably should not completely rule out the possibility.
Read the sticky thread "Trouble-shooting the upload process. (http://forum.coppermine-gallery.net/index.php?topic=24088.0)" on this board to find out what limitations may exist on your webserver.