Batch Add Files not adding to Album Batch Add Files not adding to Album
 

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

Batch Add Files not adding to Album

Started by DadGum, March 16, 2006, 07:44:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DadGum

I uploaded about 40 pics to my server, and then ran the batch add files process. The first time through, I inadvertanly added these images to the wrong Album. So I simply deleted it. However now when I try to run through the process again everything seems to work until the point I get to selecting an Album, and then inserting the files. When I click on Insert selected Files, It flys through the process and all I get are broken images saying the file may be corrupt. However it worked the first time for all files...I can still view these files from the server it just won't add them to the any album.

Any ideas?

DadGum

Does anyone have any ideas on how to get my pictures added to a photo album? Or should I just remove this and use another program?

DadGum

Here is the debug.

USER:
------------------
Array
(
    [ID] => 0f90d870ca8942875af5e556e62226c0
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => dadgum
    [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 cpg_filetypes; (0.001s)
        [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => delete from `db157794782`.cpg_sessions where time<1142531463 and remember=0; (0s)
        [3] => delete from `db157794782`.cpg_sessions where time<1141325463; (0s)
        [4] => select user_id from `db157794782`.cpg_sessions where session_id=md5("8f87bde14fd0dfebbced86cb827b12d38a78599f3e90dd773840421431b674f8"); (0.001s)
        [5] => select user_id as id, user_password as password from `db157794782`.cpg_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 `db157794782`.cpg_users AS u INNER JOIN `db157794782`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `db157794782`.cpg_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 cpg_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
        [10] => update `db157794782`.cpg_sessions set time='1142535063' where session_id=md5('8f87bde14fd0dfebbced86cb827b12d38a78599f3e90dd773840421431b674f8'); (0s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg_banned WHERE expiry < '2006-03-16 18:51:03' (0s)
        [13] => SELECT * FROM cpg_banned WHERE (ip_addr='69.150.239.200' OR ip_addr='69.150.239.200' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid, title FROM cpg_albums WHERE 1 (0s)
        [15] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [insert] => 1
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [d0000] => 13
        [pics] => Array
            (
               
  • => i0000
                [1] => i0001
                [2] => i0002
                [3] => i0003
                [4] => i0004
                [5] => i0005
                [6] => i0006
                [7] => i0007
                [8] => i0008
                [9] => i0009
                [10] => i0010
                [11] => i0011
                [12] => i0012
                [13] => i0013
                [14] => i0014
                [15] => i0015
                [16] => i0016
                [17] => i0017
                [18] => i0018
                [19] => i0019
                [20] => i0020
                [21] => i0021
                [22] => i0022
                [23] => i0023
                [24] => i0024
                [25] => i0025
                [26] => i0026
                [27] => i0027
                [28] => i0028
                [29] => i0029
                [30] => i0030
                [31] => i0031
                [32] => i0032
                [33] => i0033
                [34] => i0034
                [35] => i0035
                [36] => i0036
            )

        [album_lb_id_i0000] => d0000
        [picfile_i0000] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMS5KUEc=
        [album_lb_id_i0001] => d0000
        [picfile_i0001] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMy5KUEc=
        [album_lb_id_i0002] => d0000
        [picfile_i0002] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvNC5KUEc=
        [album_lb_id_i0003] => d0000
        [picfile_i0003] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvNS5KUEc=
        [album_lb_id_i0004] => d0000
        [picfile_i0004] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvNy5KUEc=
        [album_lb_id_i0005] => d0000
        [picfile_i0005] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvOC5KUEc=
        [album_lb_id_i0006] => d0000
        [picfile_i0006] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvOS5KUEc=
        [album_lb_id_i0007] => d0000
        [picfile_i0007] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMTAuSlBH
        [album_lb_id_i0008] => d0000
        [picfile_i0008] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMTEuSlBH
        [album_lb_id_i0009] => d0000
        [picfile_i0009] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMTIuSlBH
        [album_lb_id_i0010] => d0000
        [picfile_i0010] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMTMuSlBH
        [album_lb_id_i0011] => d0000
        [picfile_i0011] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMTQuSlBH
        [album_lb_id_i0012] => d0000
        [picfile_i0012] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMTUuSlBH
        [album_lb_id_i0013] => d0000
        [picfile_i0013] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMTYuSlBH
        [album_lb_id_i0014] => d0000
        [picfile_i0014] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMTcuSlBH
        [album_lb_id_i0015] => d0000
        [picfile_i0015] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMTguSlBH
        [album_lb_id_i0016] => d0000
        [picfile_i0016] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMTkuSlBH
        [album_lb_id_i0017] => d0000
        [picfile_i0017] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMjEuSlBH
        [album_lb_id_i0018] => d0000
        [picfile_i0018] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMjIuSlBH
        [album_lb_id_i0019] => d0000
        [picfile_i0019] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMjMuSlBH
        [album_lb_id_i0020] => d0000
        [picfile_i0020] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMjQuSlBH
        [album_lb_id_i0021] => d0000
        [picfile_i0021] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMjUuSlBH
        [album_lb_id_i0022] => d0000
        [picfile_i0022] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMjYuSlBH
        [album_lb_id_i0023] => d0000
        [picfile_i0023] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMjcuSlBH
        [album_lb_id_i0024] => d0000
        [picfile_i0024] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMjkuSlBH
        [album_lb_id_i0025] => d0000
        [picfile_i0025] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMzAuSlBH
        [album_lb_id_i0026] => d0000
        [picfile_i0026] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMzUuSlBH
        [album_lb_id_i0027] => d0000
        [picfile_i0027] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMzYuSlBH
        [album_lb_id_i0028] => d0000
        [picfile_i0028] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvMzkuSlBH
        [album_lb_id_i0029] => d0000
        [picfile_i0029] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvNDAuSlBH
        [album_lb_id_i0030] => d0000
        [picfile_i0030] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvNDEuSlBH
        [album_lb_id_i0031] => d0000
        [picfile_i0031] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvNDIuSlBH
        [album_lb_id_i0032] => d0000
        [picfile_i0032] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvNDMuSlBH
        [album_lb_id_i0033] => d0000
        [picfile_i0033] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvNDQuSlBH
        [album_lb_id_i0034] => d0000
        [picfile_i0034] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvNDUuSlBH
        [album_lb_id_i0035] => d0000
        [picfile_i0035] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvNDYuSlBH
        [album_lb_id_i0036] => d0000
        [picfile_i0036] => SGlraW5nIFRyaXBzL0JsYWNrX0hhd2sgVHJhaWwvNDcuSlBH
        [insert] => Insert selected files
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.2 - OK
    ------------------
    mySQL version: 4.0.25-standard-log
    ------------------
    Coppermine version: 1.4.4(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: 2.0 or higher
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support:
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XBM Support:
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.25
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/run/mysqld/mysqld.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.1
    Linked Version 1.2.1
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | .:/usr/local/lib/php | .:/usr/local/lib/php
    open_basedir | no value | 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 | 50000 | 50000
    max_input_time | -1 | -1
    upload_max_filesize | 20M | 20M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 1.577 seconds - 16 queries in 0.002 seconds - Album set : ; Meta set: ;


DadGum

Yes, I have read through that. Sorry for posting the debug too early.

testuser
test

http://www.mychronicles.org/cpg144/

Nibbler

Please configure your groups page upload options as requested in the guide.

DadGum

I thought i did. I can login as testuser and upload a file to one of my Albums. Everything is set up the way it requests except "Set the upload form configuration for all groups to "Single file uploads only" which I cannot find...

Nibbler

Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")

This is important, as it provides extra detail on what the problem is.

DadGum

Yes, that should be done already. I just checked and all groups except Banned are set that way.

DadGum

Should I just remove and reinstall it? If so, is there anything I need to do to make sure the removal is complete? I am on a host provider, I am not running my own websever.

Joachim Müller

can't see a point in a fresh install. HTTP uploading works fine though (see http://www.mychronicles.org/cpg144/displayimage.php?pos=-11). I suggest re-uploading the pics mentioned in your initial posting to another sub-folder of the albums folder and trying again.

DadGum

Thanks I will try, but as I said previously I have uploaded new pictures to nwe folders and I have the same problem. I was previously not able to upload single files either then when I set all groups to allow uploads it work but the Batch Add process still only shows broken links.

Joachim Müller

do a "right-click", "properties" on the broken thumbnails and paste the result into your reply please.