Problem with batch upload Problem with batch 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

Problem with batch upload

Started by tofqc, November 30, 2005, 04:45:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tofqc

Hi,

I just installl coppermine and I tried to upload some picture using FTP I did the following :

1) make sure all chmod ok :P
2) create a subfolder "test" in the /albums folder
3) FTP my files in the subfolder
4) go to batch upload menu
5) here start the problem : I am under GD2, I choose the folder I want to upload, and the site show me thumbnails of my pictures until now everything is ok, but when I pick the picture I want to upload in an album and I click ok, the result page says that it can't create thumbnails...

Whatr do I do wrong, I tries Imagemagik and it didn't work either

Anyone can help me ?

Thanks

Joachim Müller


tofqc

Here what I get :


USER:
------------------
Array
(
    [ID] => 7b3d330593c7520f77a62a9065847ef4
    [am] => 1
    [lang] => french
)

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

        [disk_max] => 15000000
        [disk_min] => 15000000
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 0
        [ufc_min] => 0
        [custom_user_upload] => 0
        [num_file_upload] => 1
        [num_URI_upload] => 0
        [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] => 0
        [group_quota] => 15000000
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg140_filetypes; (0s)
        [1] => select * from cpg140_plugins order by priority asc; (0s)
        [2] => delete from `photo`.cpg140_sessions where time<1133346877 and remember=0; (0s)
        [3] => delete from `photo`.cpg140_sessions where time<1132140877; (0s)
        [4] => select user_id from `photo`.cpg140_sessions where session_id=md5("1edd8e0d705acf1e2d026ac39a6eccb8fa890fa4a4f43cc4d24dfe49c49f0ec5"); (0s)
        [5] => select user_id as id, user_password as password from `photo`.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 `photo`.cpg140_users AS u INNER JOIN `photo`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `photo`.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) (0s)
        [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
        [10] => update `photo`.cpg140_sessions set time='1133350477' where session_id=md5('1edd8e0d705acf1e2d026ac39a6eccb8fa890fa4a4f43cc4d24dfe49c49f0ec5'); (0s)
        [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-11-30 11:34:37' (0s)
        [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='24.203.4.54' OR ip_addr='24.203.4.54' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT category FROM cpg140_albums WHERE aid='2' (0s)
        [15] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0.001s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 2
        [MAX_FILE_SIZE] => 1048576
        [title] =>
        [caption] =>
        [keywords] =>
        [event] => picture
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.1 - OK
    ------------------
    mySQL version: 5.0.15-standard-log
    ------------------
    Coppermine version: 1.4.2(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.28 compatible)
    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: 1
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 5.0.15
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/local/include/mysql
    MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.2.2
    Linked Version 1.2.2.2
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | On | On
    safe_mode_exec_dir | no value | no value
    safe_mode_gid | On | On
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | no value | no value
    sql.safe_mode | Off | Off
    disable_functions | passthru | passthru
    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 | me@localhost.com | me@localhost.com
    sendmail_path | /usr/sbin/sendmail -t -i -f customerbounce@servage.net | /usr/sbin/sendmail -t -i -f customerbounce@servage.net
    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 | 10M | 10M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.745 seconds - 16 queries in 0.001 seconds - Album set : ; Meta set: ;

Joachim Müller

I didn't ask for the debug_output. Re-read the section of the docs I refered to and do as suggested there.

tofqc

#4
Sorry  ::)

Here is the error message :
The file 'albums/userpics/Water_lilies.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /mounted-storage/home8/sub002/sc15048-NNTH/www/gallery/db_input.php - Line: 391

The User account is :
Login : test
Password : test

oups and the website is http://www.cluzel.ca/gallery

Joachim Müller

did you CHMOD as suggested in the docs? You haven't done as suggested in the docs I refered to - you haven't set the file upload method to single file uploads only for the group the test user is in, so I wasn't able to do any more testing. I'm not willing to repeat myself over and over again, refering to the very same section in the docs, so I'm out of this thread.

tofqc

Sorry Gaugau, but I did exactly as indicated in the docs, I tried the CHMOD (I check and reapply them) I made the single file upload ....

Tof

Nibbler

I see 5 file upload boxes and 3 URI boxes. How is this supposed to be 'single file uploads only' ?

Check the groups page and the manual.

tofqc

Well I don<t understand I did exactly what iut indicated in the Docs :

No. of boxes   : fixed
File upload boxes : 1
URI upload boxes : 0

tofqc

oups sorry I put thos parameters in the worng user group, It is solved now, sorry

tofqc

hi,

I also try the modification in picmgmt.inc.php as my server has Safe_mode enable but still I get the same error and i am not able to create thumbnails

Please help

Chris