Upgrade to 2003 breaks file upload Upgrade to 2003 breaks file upload
 

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

Upgrade to 2003 breaks file upload

Started by flashgordon, March 21, 2005, 04:56:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

flashgordon

Can someone tell me what is going on here?  We upgraded from Server 2000 to Server 2003 and now the upload file function errors out part way through.

We can actually upload the file, but when we click continue, we get an error.
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

Thanks!!!!

Here is my debug:

USER:
------------------
Array
(
    [ID] => 345dc81fcf14849b9759600629cab383
    [am] => 1
    [liv] => Array
        (
           
  • => 811
                [1] => 685
                [2] => 719
                [3] => 718
                [4] => 674
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_group] => 1
        [user_active] => YES
        [user_name] => admin
        [user_password] => ********
        [user_lastvisit] => 2005-03-20 21:34:17
        [user_regdate] => 2004-04-22 09:31:35
        [user_group_list] =>
        [user_email] =>
        [user_website] =>
        [user_location] =>
        [user_interests] =>
        [user_occupation] =>
        [user_actkey] =>
        [user_favpics] =>
        [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 cpg11d_filetypes;
        [1] => SELECT * FROM cpg11d_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '21232f297a57a5a743894a0e4a801fc3'
        [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 cpg11d_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg11d_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg11d_banned WHERE expiry < 1111377230
        [5] => SELECT * FROM cpg11d_banned WHERE ip_addr='65.103.50.73' OR ip_addr='65.103.50.73' OR user_id=1
        [6] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = ''  ORDER BY pos
        [7] => SELECT aid FROM cpg11d_albums WHERE category = 12
        [8] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 12
        [9] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '12'
        [10] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=12 ORDER BY a.pos LIMIT 0,2
        [11] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (54, 55) AND approved = 'YES' GROUP BY aid
        [12] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='846'
        [13] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='844'
        [14] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '12'  ORDER BY pos
        [15] => SELECT aid FROM cpg11d_albums WHERE category = 10
        [16] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 10
        [17] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '10'
        [18] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=10 ORDER BY a.pos LIMIT 0,7
        [19] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (52, 47, 46, 48, 49, 50, 51) AND approved = 'YES' GROUP BY aid
        [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='530'
        [21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='550'
        [22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='766'
        [23] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1206'
        [24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='658'
        [25] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='726'
        [26] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='593'
        [27] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '10'  ORDER BY pos
        [28] => SELECT aid FROM cpg11d_albums WHERE category = 9
        [29] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 9
        [30] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '9'
        [31] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=9 ORDER BY a.pos LIMIT 0,11
        [32] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (14, 15, 17, 6, 8, 7, 5, 10, 11, 12, 13) AND approved = 'YES' GROUP BY aid
        [33] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='103'
        [34] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='91'
        [35] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='59'
        [36] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='47'
        [37] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='118'
        [38] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='109'
        [39] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='32'
        [40] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='152'
        [41] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='135'
        [42] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='120'
        [43] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='85'
        [44] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '9'  ORDER BY pos
        [45] => SELECT aid FROM cpg11d_albums WHERE category = 6
        [46] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 6
        [47] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '6'
        [48] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,15
        [49] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (18, 19, 21, 4, 30, 22, 23, 24, 25, 75, 26, 27, 28, 53, 29) AND approved = 'YES' GROUP BY aid
        [50] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='389'
        [51] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='455'
        [52] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='240'
        [53] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='17'
        [54] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='496'
        [55] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='460'
        [56] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='452'
        [57] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='434'
        [58] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='276'
        [59] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='245'
        [60] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='379'
        [61] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='345'
        [62] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='332'
        [63] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='318'
        [64] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='292'
        [65] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '6'  ORDER BY pos
        [66] => SELECT aid FROM cpg11d_albums WHERE category = 7
        [67] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 7
        [68] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '7'
        [69] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=7 ORDER BY a.pos LIMIT 0,15
        [70] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (59, 34, 35, 36, 37, 38, 64, 39, 62, 40, 63, 66, 60, 42, 43) AND approved = 'YES' GROUP BY aid
        [71] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='985'
        [72] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='989'
        [73] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1003'
        [74] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1024'
        [75] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1039'
        [76] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1047'
        [77] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1174'
        [78] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1061'
        [79] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1173'
        [80] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1071'
        [81] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1159'
        [82] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1160'
        [83] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1104'
        [84] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1111'
        [85] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1113'
        [86] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '7'  ORDER BY pos
        [87] => SELECT aid FROM cpg11d_albums WHERE category = 8
        [88] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 8
        [89] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '8'
        [90] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_albums as a LEFT JOIN cpg11d_pictures as p ON a.thumb=p.pid WHERE category=8 ORDER BY a.pos LIMIT 0,10
        [91] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg11d_pictures WHERE aid IN (67, 68, 58, 69, 70, 71, 72, 73, 74, 76) AND approved = 'YES' GROUP BY aid
        [92] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1116'
        [93] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1128'
        [94] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='913'
        [95] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1138'
        [96] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1143'
        [97] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1158'
        [98] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1207'
        [99] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1219'
        [100] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg11d_pictures WHERE pid='1210'
        [101] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '8'  ORDER BY pos
        [102] => SELECT aid FROM cpg11d_albums as a WHERE category>=10000
        [103] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category >= 10000
        [104] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '1'  ORDER BY pos
        [105] => SELECT aid FROM cpg11d_albums WHERE category = 13
        [106] => SELECT count(*) FROM cpg11d_pictures as p, cpg11d_albums as a WHERE p.aid = a.aid AND category = 13
        [107] => SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = '13'  ORDER BY pos
        [108] => SELECT aid FROM cpg11d_albums as a WHERE category = '0'
        [109] => SELECT count(*) FROM cpg11d_albums as a WHERE 1
        [110] => SELECT count(*) FROM cpg11d_pictures as p LEFT JOIN cpg11d_albums as a ON a.aid=p.aid WHERE 1
        [111] => SELECT count(*) FROM cpg11d_comments as c LEFT JOIN cpg11d_pictures as p ON c.pid=p.pid LEFT JOIN cpg11d_albums as a ON a.aid=p.aid WHERE 1
        [112] => SELECT count(*) FROM cpg11d_categories WHERE 1
        [113] => SELECT sum(hits) FROM cpg11d_pictures as p LEFT JOIN cpg11d_albums as a ON p.aid=a.aid WHERE 1
        [114] => SELECT count(*) FROM cpg11d_albums as a WHERE category = '0'
        [115] => SELECT COUNT(*) from cpg11d_pictures WHERE approved = 'YES'
        [116] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg11d_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.2.3 - OK
    ------------------
    mySQL version: 4.0.18-nt
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    module doesn't exist
    ==========================
    Module: zlib
    ------------------
    module doesn't exist
    ==========================
    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 | 1 | 1
    include_path | .;c:\php4\pear | .;c:\php4\pear
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | webmaster@cdw3.com | webmaster@cdw3.com
    sendmail_path | no value | no value
    SMTP | mail.cramerdev.com | mail.cramerdev.com |  |
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30 |  |
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.339 seconds - 117 queries in 0.139 seconds - Album set :

Joachim Müller

post a link and non-admin test user account with upload privileges (with debug_mode enabled for everyone and notcies_display disabled in coppermine's config, and "upload method" set to "Single file uploads only" in coppermine's "groups" panel for all relevant groups.

Joachim

flashgordon

Ok, here you go:

http://cramers.cdw3.com
Username: test
Password: test

Have at her.

flashgordon

We upgraded our server from 2000 to 2003 and the upload file function stopped working.  Could this be some problem with the code and an upgrade migration of operating systems?

Can you take a look:

http://cramers.cdw3.com
Username: test
Password: test

kegobeer

No problems with the code.  I ran 1.3.2 and 1.4+ and other PHP apps on Server 2003 without incident.  Definitely a server configuration issue.

Here are some links I found that deal specifically with your CGI error message.  Hopefully one of them will point you in the right direction.

http://www.ubbcentral.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=7;t=001719;p=0
http://support.olnevhost.net/docs/php/faq.installation.html#faq.installation.cgierror
http://us3.php.net/manual/en/install.windows.php

The second link will probably give you the most information, and the third deals with installing PHP on Windows.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

donnoman

default install of IIS on Windows 2003 server has some goofy rights you have to clean up first.

In 2003 there is a DENY right thats set for the IIS user, you have to remove that from the directories where you need the IIS user to write.

DENY trumps all, even if you have specifically granted the IIS user write access, you have to go into the advanced tab, stop inheritance, edit the "special" rights, and remove the DENY.