coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: blink on April 06, 2005, 03:18:54 AM

Title: No error messages, upload does nothing
Post by: blink on April 06, 2005, 03:18:54 AM

I upload in single upload mode, click Continue to submit, receive no error messages and am redirected to the upload page. I spent 2 hours on this forum looking for answers and a hour or two adding debug statements to the Coppermine code to figure out what's failing all to no avail. I followed the FAQ exactly. Below is my debug mode output after submitting an image for upload. Apologies, I don't have a server connected to the outside for anyone to test.

I'm on a Win2000 Server with WAMP (wampserver.com) as my server (Apache 2.x, PHP 5, mySQL 4, GD 2.0).

Thanks for any tips anyone can give me. I'm at a breaking point here. I'll continue to add debug lines to the code until then.

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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => cpadmin
    [user_password] => ********
    [user_lastvisit] => 2005-04-05 17:29:13
    [user_regdate] => 2005-04-05 16:17:42
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [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] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: No error messages, upload does nothing
Post by: Random00 on April 06, 2005, 03:06:10 PM
I have the same problem.  Do me a favor and check your "Albums\edit\" folder.
Your file should be there with a name like "mHTTP_temp_1d1c011f.jpg"

I'm having the same problem.  After hitting that second "continue", the upload page just comes up "blank"....

EDIT
Okay, I found a stupid workaround of sorts.  It appears to be a file size/timeout issue.   The files I was uploading were 240K.  They would not work not matter what I did.  I resized them down to under 100K, and now the upload function is working...  I'll try uploading more large photos and see if this is the problem.


EDIT #2  100K seems to be the cutoff limit.  Anything over 100K causes the problem, anything under 100K works.
One quick and dirty way to test it is to upload 1 over 100K file as the #1 upload, and then upload a >100K file as the #2. (since it does them in reverse order).  You will get the upload/album screen for the small pic, but then you will get the "blank" screen for the larger pic.

EDIT #3  Another work around is to upload the files to the server, and then give HTTP file paths rather than uploading the files directly via coppermine.  It gets around the timeout issue.

EDIT #4
Uploading files worked for a while, but even then, very large files 750K would cause the timeout.  Now I've got the problem even on uploaded files in excess of 100K....  So there's something going wrong/screwey here...
Title: Re: No error messages, upload does nothing
Post by: OmegaGOD on April 08, 2005, 06:43:26 AM
You should not be having problems resizing images over 100K. If you do, then I would suggest changing web-hosts. I have 300K images that CPG resizes in under a second.
Title: Re: No error messages, upload does nothing
Post by: Random00 on April 10, 2005, 12:05:35 AM
blink-
I think I found a solution.   There are some graphic files that coppermine just doesn't like.  I don't know why or what it is about the files that it doesn't like, but I found a way to 'test'.

If you ftp the files into the ALBUMS directory into a folder name of your choosing, then run "batch add files".  Coppermine will display thumbnails of most graphic files, but some it will dispay as an "red x".  I don't know why, or what's wrong with those files, but coppermine just can't read them/display them.  If you then edit the file and resave it using your graphics editing software, and FTP it up again (overwrite the old file) then go through the batch add process.  If the thumbnail displays durring the batch add process, you know it will work.

What I previously thought was "size" is actually some kind of file format/data format problem.   I've tried ftping the same files up over and over, so it's not data corruption, coppermine always has a problem with the same files untill I edit the file and resave (or use "SAVE AS" and overwrite the old file).

I hope this help you.  So far it's worked on every graphic file I've had a problem with.