No error messages, upload does nothing No error messages, upload does nothing
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

No error messages, upload does nothing

Started by blink, April 06, 2005, 03:18:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blink


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
(
   
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '2b847236f81e85eb2abfb2b4d9ddd009'
        [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg132_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1112749618
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='10.6.1.67' OR ip_addr='10.6.1.67' OR user_id=1
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [URI_array] => Array
            (
               
  • =>
                [1] =>
                [2] =>
            )

        [control] => phase_1
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.0.3 - OK
    ------------------
    mySQL version: 4.1.8-nt-log
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.1.9
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.1.7
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.4
    Linked Version 1.1.4
    ==========================
    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 | .;C:\php5\pear | .;C:\php5\pear
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | no value | no value
    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.214 seconds - 6 queries in 0.007 seconds - Album set :

Random00

#1
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...

OmegaGOD

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.
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.

Random00

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.