upload problems upload problems
 

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

upload problems

Started by herteljp, November 21, 2007, 06:23:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

herteljp

i have a new install of coppermine and cannot upload photos of any size.

http://jeffpattyhertel.x10hosting.com/cmpg/

support test user:  support
support test user password:  support

I have set the files to 1, 0, and fixed as suggested.
I have turned on error logging.

Steps to recreate.
1) login as user support
2) click upload files
3) choose album support testing
4) pick a photo file to upload.  (one of my attempts was only a 28k file
5) fill in file title and description
6) press upload file

at this point here is the debug data:
USER:
------------------
Array
(
    [ID] => 777dc969ace6241218a303cf970b3977
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 5
    [user_name] => support
    [groups] => Array
        (
           
  • => 2
            )

        [disk_max] => 1024
        [disk_min] => 1024
        [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] => 0
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [group_name] => Registered
        [upload_form_config] => 0
        [group_quota] => 1024
        [can_see_all_albums] => 0
        [group_id] => 2
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
        [1] => select * from cpg_plugins order by priority asc; (0.001s)
        [2] => delete from `jphertel_copp1`.cpg_sessions where time<1195661800 and remember=0; (0s)
        [3] => delete from `jphertel_copp1`.cpg_sessions where time<1194455800; (0s)
        [4] => select user_id from `jphertel_copp1`.cpg_sessions where session_id=md5("c133c0d0dc074c7c0b946076b949cc75c8a5bf009762227cc7af55cc5aca8828"); (0s)
        [5] => select user_id as id, user_password as password from `jphertel_copp1`.cpg_users where user_id=5 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `jphertel_copp1`.cpg_users AS u INNER JOIN `jphertel_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='5' (0s)
        [7] => SELECT user_group_list FROM `jphertel_copp1`.cpg_users AS u WHERE user_id='5' and user_group_list <> ''; (0s)
        [8] => 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 cpg_usergroups WHERE group_id in (2) (0s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 2 (0s)
        [10] => update `jphertel_copp1`.cpg_sessions set time='1195665400' where session_id=md5('c133c0d0dc074c7c0b946076b949cc75c8a5bf009762227cc7af55cc5aca8828'); (0s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 5 (0.002s)
        [12] => DELETE FROM cpg_banned WHERE expiry < '2007-11-22 00:16:40' (0.001s)
        [13] => SELECT * FROM cpg_banned WHERE (ip_addr='63.241.190.32' OR ip_addr='63.241.190.32' OR user_id=5) AND brute_force=0 (0.001s)
        [14] => SELECT aid, title FROM cpg_albums WHERE category < 10000 AND uploads='YES' AND (visibility = '0' OR visibility IN (2)) ORDER BY title (0s)
        [15] => SELECT aid, title FROM cpg_albums WHERE category='10005' ORDER BY title (0s)
        [16] => DELETE FROM cpg_temp_data WHERE timestamp < 1195661800 (0s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    Page generated in 0.044 seconds - 17 queries in 0.005 seconds - Album set : ; Meta set: ;



    **********

    7) press upload.  the screen goes blank and the url is .../db_input.php

    nothing else happens and no error messages are generated.

    Any help would be great.  thanks.

    -jeff

Joachim Müller

Make sure that db_input.php is not corrupted. As you're running cpg1.4.12 you should upgrade anyway, which should cure possible file corruption as well. Don't post debug_output unless a supporter explicitely asks for it!

herteljp

sorry about that.  I was playing around and changed the settings from ImageMagick to GD2 and the site started working.  Strange that I did not get any error messages, but if GD2 works, thats OK with me.

thanks,
-jeff     i think this can be closed

herteljp

i will upgrade, thanks

-jeff