Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How can I get CPG 1.4.1 to batch upload my photos?  (Read 3902 times)

0 Members and 1 Guest are viewing this topic.

Suaviterinmodo

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 21
    • The Concrete Angel: Judith Barsi
How can I get CPG 1.4.1 to batch upload my photos?
« on: September 12, 2005, 03:04:17 am »

Am I reading the user documentation incorrectly? This is the error I get and debug code:

You need at least one album to use this function

File: /home/zjudith/public_html/gallery/searchnew.php - Line: 381


USER:
------------------
Array
(
    [ID] => f20efa159be2429865cad6a22e25fe89
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

    [theme] => water_drop
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Celia
    [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 cpg140_filetypes; (0.001s)
  • [1] => select * from cpg140_plugins order by priority asc; (0s)
        [2] => delete from `zjudith_gallery`.cpg140_sessions where time<1126482955 and remember=0; (0.001s)
        [3] => delete from `zjudith_gallery`.cpg140_sessions where time<1125276955; (0.001s)
        [4] => select user_id from `zjudith_gallery`.cpg140_sessions where session_id=md5("67c323113bde8e91967ca02ce10c9ea6832ece7c2af23cf8b1ac7e7205c202ce"); (0.001s)
        [5] => select user_id as id, user_password as password from `zjudith_gallery`.cpg140_users where user_id=1 (0.001s)
        [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 `zjudith_gallery`.cpg140_users AS u INNER JOIN `zjudith_gallery`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
        [7] => SELECT user_group_list FROM `zjudith_gallery`.cpg140_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 cpg140_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
        [10] => update `zjudith_gallery`.cpg140_sessions set time='1126486555' where session_id=md5('67c323113bde8e91967ca02ce10c9ea6832ece7c2af23cf8b1ac7e7205c202ce'); (0.001s)
        [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-09-11 18:55:55' (0s)
        [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='24.175.189.48' OR ip_addr='24.175.189.48' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid, title FROM cpg140_albums WHERE 1 (0s)
        [15] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.10 - OK
    ------------------
    mySQL version: 4.0.24-standard
    ------------------
    Coppermine version: 1.4.1(beta)
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.49
    MYSQL_MODULE_TYPE builtin
    MYSQL_SOCKET /var/tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    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 | .:/usr/lib/php:/usr/local/lib/php | .:/usr/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 | 30 | 30
    max_input_time | -1 | -1
    upload_max_filesize | 2M | 2M
    post_max_size | 55M | 55M
    ==========================
    Page generated in 0.139 seconds - 16 queries in 0.009 seconds - Album set : ; Meta set: ;

    ------------------------------------------------------------------------------------------------------------------------------

    Will someone please help me out?
« Last Edit: September 12, 2005, 03:08:26 am by kegobeer »
Logged
"Only the gentle are ever really strong."
~James Dean

You can't always get what you want, but if you try, sometimes you just might find you get what you need!
~The Rolling Stones

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: How can I get CPG 1.4.1 to batch upload my photos?
« Reply #1 on: September 12, 2005, 03:08:12 am »

The beta goes unsupported.  If you have a bug report, you must provide more details.  It looks like you just haven't made albums before attempting to batch upload, the same thing you have to do in 1.3.x.

Marking as invalid.
Logged
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

Suaviterinmodo

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 21
    • The Concrete Angel: Judith Barsi
Re: How can I get CPG 1.4.1 to batch upload my photos?
« Reply #2 on: September 12, 2005, 03:57:42 am »

Okay, I created a folder in the "albums" section, called "1001", changed permissions to 777, added categories and albums to my gallery all over the place and I still get an error:


There are no folders inside the "albums" folder yet. Make sure to create at least one custom folder within "albums" folder and ftp-upload your files there. You mustn't upload to the "userpics" nor "edit" folders, they are reserved for http uploads and internal purposes. 


USER:
------------------
Array
(
    [ID] => f20efa159be2429865cad6a22e25fe89
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

    [theme] => water_drop
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Celia
    [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 cpg140_filetypes; (0.001s)
  • [1] => select * from cpg140_plugins order by priority asc; (0.001s)
        [2] => delete from `zjudith_gallery`.cpg140_sessions where time<1126486198 and remember=0; (0.002s)
        [3] => delete from `zjudith_gallery`.cpg140_sessions where time<1125280198; (0.001s)
        [4] => select user_id from `zjudith_gallery`.cpg140_sessions where session_id=md5("67c323113bde8e91967ca02ce10c9ea6832ece7c2af23cf8b1ac7e7205c202ce"); (0s)
        [5] => select user_id as id, user_password as password from `zjudith_gallery`.cpg140_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 `zjudith_gallery`.cpg140_users AS u INNER JOIN `zjudith_gallery`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
        [7] => SELECT user_group_list FROM `zjudith_gallery`.cpg140_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 cpg140_usergroups WHERE group_id in (1) (0.001s)
        [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
        [10] => update `zjudith_gallery`.cpg140_sessions set time='1126489798' where session_id=md5('67c323113bde8e91967ca02ce10c9ea6832ece7c2af23cf8b1ac7e7205c202ce'); (0.001s)
        [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-09-11 19:49:58' (0s)
        [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='24.175.189.48' OR ip_addr='24.175.189.48' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid, title FROM cpg140_albums WHERE 1 (0.001s)
        [15] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.10 - OK
    ------------------
    mySQL version: 4.0.24-standard
    ------------------
    Coppermine version: 1.4.1(beta)
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 1
    Active Links 2
    Client API version 3.23.49
    MYSQL_MODULE_TYPE builtin
    MYSQL_SOCKET /var/tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    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 | .:/usr/lib/php:/usr/local/lib/php | .:/usr/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 | 30 | 30
    max_input_time | -1 | -1
    upload_max_filesize | 2M | 2M
    post_max_size | 55M | 55M
    ==========================
    Page generated in 0.153 seconds - 16 queries in 0.01 seconds - Album set : ; Meta set: ;

    Notices
    /searchnew.php
    Notice line 551: Undefined variable: iframe_startfolder

    -----------------------------------------------------------------------------------------

    What do I do to fix this?
Logged
"Only the gentle are ever really strong."
~James Dean

You can't always get what you want, but if you try, sometimes you just might find you get what you need!
~The Rolling Stones

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: How can I get CPG 1.4.1 to batch upload my photos?
« Reply #3 on: September 12, 2005, 02:03:52 pm »

This is not a 1.4.x bug, you just aren't using Coppermine correctly.  Download 1.3.4, read the documentation, and install that version.  Locking this thread now.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.