Error moving files after upload Error moving files after upload
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Error moving files after upload

Started by caseyc, September 16, 2007, 03:40:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

caseyc

I upgraded to Apache 2.2 and PHP 5.2.4 the other day, and now I get the following error when trying to move pictures from one album to another:

QuoteScript called without the required parameter(s). (aid160)

File: /home/xxx/public_html/casey/album/editpics.php - Line: 84

Here is the debug output:

QuoteUSER:
------------------
Array
(
    [ID] => 2089fad2fdefc6133eef104aa07eba48
    [am] => 1
    [liv] => Array
        (
           
  • => 608
                [1] => 616
                [2] => 707
                [3] => 258
                [4] => 941
            )

    )

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

        [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
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM filetypes; (0s)
        [1] => select * from plugins order by priority asc; (0s)
        [2] => delete from `xxxx_album`.sessions where time<1189902478 and remember=0; (0s)
        [3] => delete from `xxxx_album`.sessions where time<1188696478; (0s)
        [4] => select user_id from `xxxx_album`.sessions where session_id=md5("2681949413c83747e8cb459a3c6321adb09d2b083c997590227d5cd2ef6c3ac3"); (0.001s)
        [5] => select user_id as id, user_password as password from `xxxx_album`.users where user_id=1 (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 `xxxx_album`.users AS u INNER JOIN `xxxx_album`.usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `xxxx_album`.users AS u WHERE user_id='1' 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 usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  usergroups WHERE group_id= 1 (0s)
        [10] => update `xxxx_album`.sessions set time='1189906078' where session_id=md5('2681949413c83747e8cb459a3c6321adb09d2b083c997590227d5cd2ef6c3ac3'); (0s)
        [11] => SELECT user_favpics FROM favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM banned WHERE expiry < '2007-09-16 01:27:58' (0s)
        [13] => SELECT * FROM banned WHERE (ip_addr='222.225.156.36' OR ip_addr='222.225.156.36' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT title, category FROM albums WHERE aid = '8' (0s)
        [15] => SELECT DISTINCT aid, title, IF(category = 0, CONCAT('> ', title), CONCAT(name,' < ',title)) AS cat_title FROM albums, categories WHERE category < '10000' AND (category = 0 OR category = cid) ORDER BY cat_title (0s)
        [16] => SELECT aid, title FROM albums WHERE category='10001'  OR category='10001' ORDER BY title (0s)
        [17] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='254' (0s)
        [18] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='254' LIMIT 1 (0s)
        [19] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='253' (0s)
        [20] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='253' LIMIT 1 (0s)
        [21] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='256' (0s)
        [22] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='256' LIMIT 1 (0s)
        [23] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='255' (0s)
        [24] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='255' LIMIT 1 (0s)
        [25] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='257' (0s)
        [26] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='257' LIMIT 1 (0s)
        [27] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='261' (0s)
        [28] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='261' LIMIT 1 (0s)
        [29] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='263' (0s)
        [30] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='263' LIMIT 1 (0s)
        [31] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='264' (0s)
        [32] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='264' LIMIT 1 (0s)
        [33] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='268' (0s)
        [34] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='268' LIMIT 1 (0s)
        [35] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='266' (0s)
        [36] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='266' LIMIT 1 (0s)
        [37] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='436' (0s)
        [38] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='436' LIMIT 1 (0s)
        [39] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='265' (0s)
        [40] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='265' LIMIT 1 (0s)
        [41] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='437' (0s)
        [42] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='437' LIMIT 1 (0s)
        [43] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='406' (0s)
        [44] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='406' LIMIT 1 (0s)
        [45] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='681' (0s)
        [46] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='681' LIMIT 1 (0s)
        [47] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='156' (0s)
        [48] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='156' LIMIT 1 (0s)
        [49] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='248' (0s)
        [50] => UPDATE pictures SET aid = '8', title = 'Clay', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='248' LIMIT 1 (0s)
        [51] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='159' (0s)
        [52] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='159' LIMIT 1 (0s)
        [53] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='680' (0s)
        [54] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='680' LIMIT 1 (0s)
        [55] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='756' (0s)
        [56] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='756' LIMIT 1 (0s)
        [57] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='757' (0s)
        [58] => UPDATE pictures SET aid = '8', title = '', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='757' LIMIT 1 (0s)
        [59] => SELECT category, filepath, filename, owner_id FROM pictures, albums WHERE pictures.aid = albums.aid AND pid='689' (0s)
        [60] => UPDATE pictures SET aid = '8', title = '8th anniversary', caption = '', keywords = '', user1 = '', user2 = '', user3 = '', user4 = '' WHERE pid='689' LIMIT 1 (0s)
        [61] => SELECT COUNT(*) FROM pictures WHERE approved = 'NO' (0s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [album] => 8
        [start] => 0
        [count] => 25
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [count] => 25
        [pid] => Array
            (
               
  • => 254
                [1] => 253
                [2] => 256
                [3] => 255
                [4] => 257
                [5] => 261
                [6] => 263
                [7] => 264
                [8] => 268
                [9] => 266
                [10] => 436
                [11] => 265
                [12] => 437
                [13] => 406
                [14] => 681
                [15] => 156
                [16] => 248
                [17] => 159
                [18] => 680
                [19] => 756
                [20] => 757
                [21] => 689
                [22] => 160
            )

        [aid254] => 8
        [title254] =>
        [caption254] =>
        [keywords254] =>
        [user1254] =>
        [user2254] =>
        [user3254] =>
        [user4254] =>
        [aid253] => 8
        [title253] =>
        [caption253] =>
        [keywords253] =>
        [user1253] =>
        [user2253] =>
        [user3253] =>
        [user4253] =>
        [aid256] => 8
        [title256] =>
        [caption256] =>
        [keywords256] =>
        [user1256] =>
        [user2256] =>
        [user3256] =>
        [user4256] =>
        [aid255] => 8
        [title255] =>
        [caption255] =>
        [keywords255] =>
        [user1255] =>
        [user2255] =>
        [user3255] =>
        [user4255] =>
        [aid257] => 8
        [title257] =>
        [caption257] =>
        [keywords257] =>
        [user1257] =>
        [user2257] =>
        [user3257] =>
        [user4257] =>
        [aid261] => 8
        [title261] =>
        [caption261] =>
        [keywords261] =>
        [user1261] =>
        [user2261] =>
        [user3261] =>
        [user4261] =>
        [aid263] => 8
        [title263] =>
        [caption263] =>
        [keywords263] =>
        [user1263] =>
        [user2263] =>
        [user3263] =>
        [user4263] =>
        [aid264] => 8
        [title264] =>
        [caption264] =>
        [keywords264] =>
        [user1264] =>
        [user2264] =>
        [user3264] =>
        [user4264] =>
        [aid268] => 8
        [title268] =>
        [caption268] =>
        [keywords268] =>
        [user1268] =>
        [user2268] =>
        [user3268] =>
        [user4268] =>
        [aid266] => 8
        [title266] =>
        [caption266] =>
        [keywords266] =>
        [user1266] =>
        [user2266] =>
        [user3266] =>
        [user4266] =>
        [aid436] => 8
        [title436] =>
        [caption436] =>
        [keywords436] =>
        [user1436] =>
        [user2436] =>
        [user3436] =>
        [user4436] =>
        [aid265] => 8
        [title265] =>
        [caption265] =>
        [keywords265] =>
        [user1265] =>
        [user2265] =>
        [user3265] =>
        [user4265] =>
        [aid437] => 8
        [title437] =>
        [caption437] =>
        [keywords437] =>
        [user1437] =>
        [user2437] =>
        [user3437] =>
        [user4437] =>
        [aid406] => 8
        [title406] =>
        [caption406] =>
        [keywords406] =>
        [user1406] =>
        [user2406] =>
        [user3406] =>
        [user4406] =>
        [aid681] => 8
        [title681] =>
        [caption681] =>
        [keywords681] =>
        [user1681] =>
        [user2681] =>
        [user3681] =>
        [user4681] =>
        [aid156] => 8
        [title156] =>
        [caption156] =>
        [keywords156] =>
        [user1156] =>
        [user2156] =>
        [user3156] =>
        [user4156] =>
        [aid248] => 8
        [title248] =>
        [caption248] =>
        [keywords248] =>
        [user1248] =>
        [user2248] =>
        [user3248] =>
        [user4248] =>
        [aid159] => 8
        [title159] =>
        [caption159] =>
        [keywords159] =>
        [user1159] =>
        [user2159] =>
        [user3159] =>
        [user4159] =>
        [aid680] => 8
        [title680] =>
        [caption680] =>
        [keywords680] =>
        [user1680] =>
        [user2680] =>
        [user3680] =>
        [user4680] =>
        [aid756] => 8
        [title756] =>
        [caption756] =>
        [keywords756] =>
        [user1756] =>
        [user2756] =>
        [user3756] =>
        [user4756] =>
        [aid757] => 8
        [title757] =>
        [caption757] =>
        [keywords757] =>
        [user1757] =>
        [user2757] =>
        [user3757] =>
        [user4757] =>
        [aid689] => 8
        [title689] =>
        [caption689] =>
        [keywords689] =>
        [user1689] =>
        [user2689] =>
        [user3689] =>
        [user4689] =>
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.2.4 - OK
    ------------------
    mySQL version: 5.0.27-standard-log
    ------------------
    Coppermine version: 1.4.10(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.34 compatible)
    FreeType Support:
    T1Lib Support:
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XPM Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 5.0.27
    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
    Stream Wrapper support compress.zlib://
    Stream Filter support zlib.inflate, zlib.deflate
    Compiled Version 1.2.1.2
    Linked Version 1.2.1.2
    ==========================
    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 | passthru, system, popen, virtual, show_source, pclose, proc_open | passthru, system, popen, virtual, show_source, pclose, proc_open
    file_uploads | On | On
    include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    open_basedir | /home/xxxx:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | 600 | 600
    max_input_time | -1 | -1
    upload_max_filesize | 30M | 30M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.065 seconds - 62 queries in 0.001 seconds - Album set : ; Meta set: ;

Joachim Müller

Nobody asked for the debug_output. Do exactly as suggested in the upload troubleshooting section of the docs.

Nibbler

Are you using some security patch that limits the number of POST fields that will be accepted by PHP?

caseyc

Quote from: GauGau on September 16, 2007, 07:33:29 AM
Nobody asked for the debug_output. Do exactly as suggested in the upload troubleshooting section of the docs.

Perhaps I put this in the wrong section. I did do exactly what is suggested in the troubleshooting section. I'm not having problems with the upload itself. I'm having problems moving the file afterwards.

caseyc

Quote from: Nibbler on September 16, 2007, 02:59:10 PM
Are you using some security patch that limits the number of POST fields that will be accepted by PHP?

Possibly. I did install suhosin. Could that be the culprit?



caseyc

Just for future reference for others, here's what was in /var/log/messages:

QuoteSep 16 23:35:52 server suhosin[32429]: ALERT - configured POST variable limit exceeded