Batch upload problem Batch upload problem
 

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 upload problem

Started by Valiant, October 22, 2004, 05:52:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Valiant

I've just deleted a friends cpg 1.2 and reinstalled the lastest version and bridged it with phpbb 2.06, I re-uploaded all the files into their own folders; each 777ed to the albums folder (777) . Each image is around a 2mb jpg and there are around 30 in each folder. When I go to batch upload I get the following notice:

Notice: Undefined variable: fullimagesize in /var/html/mart/nonstoplove.co.uk/_html/gallery/searchnew.php on line 136 etc

I don't understand, I've read through the entire forum and basically if the exact same files were batched by cpg 1.2 without probs then why does 1.3 have problems? Nothing with the physical server or database has changed. I cleared the db before reinstalling, even gotton rid of the spaces in the file names etc. The config file seems to set up correstly with max file size etc all allowing for much bigger files than the actual images.

URL: http://nonstoplove.co.uk/gallery/
Php4, mysql 3.23.49, debian linux, Image Magick

The debug info is:

USER:
------------------
Array
(
    [ID] => ba43795167aff471ac69fb7c46ddf241
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
   
  • => 7
        [user_id] => 7
        [1] => Valiant
        [user_name] => Valiant
        [2] => 1
        [user_level] => 1
        [groups] => Array
            (
               
  • => 1
                [1] => 2
            )

        [group_quota] => 10000000
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 1
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [upload_form_config] => 3
        [num_file_upload] => 5
        [num_URI_upload] => 3
        [custom_user_upload] => 0
        [disk_max] => 10000000
        [disk_min] => 1024
        [ufc_max] => 3
        [ufc_min] => 3
        [has_admin_access] => 1
        [group_name] => Admin
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM gallery_filetypes;
        [1] => SELECT user_id, username as user_name, user_level FROM `gecko`.gecko_users WHERE user_id='7' AND user_password='3bfd0cce8e9cda754a5b78d85be622ed' AND user_active='1'
        [2] => SELECT (ug.group_id + 5) as group_id FROM `gecko`.gecko_user_group as ug LEFT JOIN `gecko`.gecko_groups as g ON ug.group_id = g.group_id WHERE user_id = 7 AND user_pending = 0 AND group_single_user = 0
        [3] => 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 gallery_usergroups WHERE group_id in (1,2)
        [4] => SELECT group_name FROM  gallery_usergroups WHERE group_id= 1
        [5] => DELETE FROM gallery_banned WHERE expiry < 1098415915
        [6] => SELECT * FROM gallery_banned WHERE ip_addr='195.137.127.186' OR ip_addr='195.137.127.186' OR user_id=7
        [7] => SELECT filepath, filename FROM gallery_pictures WHERE filepath LIKE 'The Ben 2004%'
        [8] => SELECT aid, title FROM gallery_albums WHERE category = 0 ORDER BY title
        [9] => SELECT DISTINCT a.aid as aid, a.title as title, c.name as cname FROM gallery_albums as a, gallery_categories as c WHERE a.category = c.cid AND a.category < '10000' ORDER BY cname,title
        [10] => SELECT aid, CONCAT('(', username, ') ', title) AS title FROM gallery_albums AS a INNER JOIN `gecko`.gecko_users AS u ON category = (10000 + user_id) ORDER BY title
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [startdir] => The Ben 2004
    )

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.9 - OK
    ------------------
    mySQL version: 3.23.49-log
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version 1.6.2 or higher
    FreeType Support enabled
    FreeType Linkage with freetype
    T1Lib Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.49
    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.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/share/pear | .:/usr/share/pear
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    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 | 8M | 8M
    ==========================
    Page generated in 0.062 seconds - 11 queries in 0.004 seconds - Album set :

    any ideas?

Valiant

We have other sites running CPG with Image Magick on the same server and all works fine except for this.


I just changed it to use GD instead of Image Magick and it works!
Maybe IM isn't as good at handling really big photos?

Joachim Müller

you shouldn't add too many pics at once when using ImageMagick, as every pic is being resized in a separate process at once.
To prevent the notce from displaying, disable notices in coppermine config (underneath the debug mode settings). Notices are only meant for experienced users who know what the output actually means.
You wouldn't have had to delete cpg1.2 and re-install cpg1.3.x, as there's an update instruction that will keep you from rebuilding your gallery, I suggest you read the documentation first next time you upgrade.

Joachim

Valiant

I did read the documentation and after I upgraded the it completely messed up and we couldn't find a solution, so the guy who owns the gallery just said to do a clean install cos he could order the galleries and albums better from scratch.

For some reason Image Magick isn't working at all with any files over 1mb. Even if it is just the one.