Batch Add Files Batch Add Files
 

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

Batch Add Files

Started by maj3stic, April 20, 2005, 01:17:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maj3stic

When I go to batch add files. I don't get any icons or pictures on the far right. Anyone know why?

OmegaGOD

Please enable debug mode and post debug message here so we can better troubleshoot your problem.
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.

gln2982

I am having the same problem.  I orginally used CPG-nuke and in there was the option for Netpbm along with GD and Image Magix, and I could use Netpbm with no problem, only GD and Imagix have the issuse.  Sadly I do not see that as on of the otions when I went to the standalone 1.3.  Here is my debug info

USER:
------------------
Array
(
    [ID] => a9cf9de9824ec33819d1751132775b78
    [am] => 1
    [liv] => Array
        (
           
  • => 233
                [1] => 251
                [2] => 265
                [3] => 307
                [4] => 331
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       
  • => 1
        [user_id] => 1
        [1] => George
        [user_name] => George
        [2] => 4
        [mgroup] => 4
        [3] => 4
        [group_id] => 4
        [4] => Admin
        [group_name] => Admin
        [5] => 0
        [group_quota] => 0
        [6] => 0
        [has_admin_access] => 1
        [7] => 0
        [can_rate_pictures] => 0
        [8] => 0
        [can_send_ecards] => 0
        [9] => 0
        [can_post_comments] => 0
        [10] => 0
        [can_upload_pictures] => 0
        [11] => 0
        [can_create_albums] => 0
        [12] => 1
        [pub_upl_need_approval] => 1
        [13] => 1
        [priv_upl_need_approval] => 1
        [14] => 0
        [upload_form_config] => 0
        [15] => 0
        [custom_user_upload] => 0
        [16] => 5
        [num_file_upload] => 5
        [17] => 3
        [num_URI_upload] => 3
        [groups] => Array
            (
               
  • => 4
            )

        [can_see_all_albums] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg134_filetypes;
        [1] => SELECT id as user_id, name as user_name, mgroup FROM `forums`.ibf_members WHERE id='1' AND  member_login_key='535fd911057ac87e0f13d7f2e9b01b9e'
        [2] => SELECT * FROM cpg134_usergroups WHERE group_id = '4'
        [3] => DELETE FROM cpg134_banned WHERE expiry < '2005-09-25 11:23:05'
        [4] => SELECT * FROM cpg134_banned WHERE ip_addr='24.140.109.132' OR ip_addr='24.140.109.132' OR user_id=1
        [5] => SELECT aid, title FROM cpg134_albums WHERE 1
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.6 - OK
    ------------------
    mySQL version: 4.1.11
    ------------------
    Coppermine version: 1.3.4
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.22 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    T1Lib Support enabled
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    JIS-mapped Japanese Font Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.18
    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.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 | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/pear | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/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 | 60 | 60
    upload_max_filesize | 8M | 8M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.304 seconds - 6 queries in 0.006 seconds - Album set :

Joachim Müller


gln2982

here is an error I got uploading


The file 'albums/userpics/10001/IM002274.JPG' can't be inserted in the
album

Error executing ImageMagick - Return value: 188

Joachim Müller

I'm not an expert for ImageMagick, but afaik this error message means that ImageMagick has run out of memory - try using a smaller (in terms of file size and dimensions), known-good image file to test this with.

OmegaGOD

I've actually seen error 188 a few times. Unfortunately, the developers of ImageMagick, do not offer a list of what the error values mean. According to your debug information, you have GD 2.0.22. I would recommend using GD and save on the headache of trying to get ImageMagick to work. Most web-hosts include ImageMagick as a binary on web servers; however, most web-hosts do not have their servers configured properly. To allow ImageMagick to be called by the webserver in a secure manner requires special configuration. Most likely, your webserver did not make the proper configurations.

Hope this helps.
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.

gln2982

I have tried using GD, but that did not work either.  Here is exactly what happens

I go to batch add pictures and select my directory, and when it goes to display the thumbnails on that page they are all broken images.  I then select my album and say to add them, and when it tries I once again get proken images and when I click on them to see the error I get no information, just a white screen

Joachim Müller


Sahasrahla

Quote from: gln2982 on October 04, 2005, 06:59:46 AM
I have tried using GD, but that did not work either.  Here is exactly what happens

I go to batch add pictures and select my directory, and when it goes to display the thumbnails on that page they are all broken images.  I then select my album and say to add them, and when it tries I once again get proken images and when I click on them to see the error I get no information, just a white screen

I'm having the exact same problem and haven't found a solution yet either. The only information I have to add is that if I DON'T select an album, then go to the next page it shows the proper "N/A" icon on the right side. However, like gln2982, if I select an album to add the pictures to, all the status icons are broken images.

If it's of any consequence, I'm using Yahoo webhosting. I did some troubleshooting inside showthumb.php and apparently the function is puking on line 86: "$src_img = imagecreatefromjpeg($src_file);" I know Yahoo hacks their PHP installs and at first I thought maybe they had disabled or jacked with this function, but I use imagecreatefromjpeg() in other scripts and it's fine. Upon further troubleshooting, I found that if I bunk $src_file (that is, change $src_file to an invalid image URL) it will actually output a blank black image (which would be the result "$dst_img = imagecreatetruecolor($destWidth, $destHeight);"). So, I have no earthly idea why, but for some reason feeding a valid $src_img pukes the function.

Joachim Müller

see my posting just above yours.

artistsinhawaii

Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Sahasrahla

Sorry, GauGau, I wasn't meaning to ignore your help, but har's advice at this link did the trick. Everything is working perfectly now... The problem was due to Yahoo's memory_limit setting, and the hack presented in the thread worked precisely as it should. Thanks madeinhawaii for pointing in that direction :)

Quote from: madeinhawaii on October 19, 2005, 06:41:25 AM
Sahasrahla,

Did you read this thread as well?

http://forum.coppermine-gallery.net/index.php?topic=18943.msg87247#msg87247

Dennis

fashionvictim86

You know I'm also having the same exact problem.  I do everything it says here, but nothing helps.  And I'm not on a Yahoo server, so I guess that wouldn't help me.  I'm on my own dedicated server.

I'm a dummy with this, this is all I can tell you I got from the debug mode.

USER:
------------------
Array
(
    [ID] => f0a262873d4e2c933fce04c9e702dd58
    [am] => 1
    [liv] => Array
        (
           
  • => 3042
                [1] => 3049
                [2] => 3169
                [3] => 3170
                [4] => 3177
            )

        [lap] => 2
        [search] => ###gd31
        [sort] => td
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_group] => 1
        [user_active] => YES
        [user_name] => fashionvictim86
        [user_password] => ********
        [user_lastvisit] => 2005-10-16 14:15:06
        [user_regdate] => 2005-06-05 16:03:26
        [user_group_list] =>
        [user_email] =>
        [user_website] =>
        [user_location] =>
        [user_interests] =>
        [user_occupation] =>
        [user_actkey] =>
        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 0
        [ufc_min] => 0
        [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] => 0
        [group_quota] => 0
        [can_see_all_albums] => 1
        [group_id] => 1
        [groups] => Array
            (
                [1] => 1
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg133_filetypes;
        [1] => SELECT * FROM cpg133_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '81bc6c95f4e9eaadc8666523481f0f4e'
        [2] => 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 cpg133_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg133_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg133_banned WHERE expiry < '2005-10-24 01:07:23'
        [5] => SELECT * FROM cpg133_banned WHERE ip_addr='24.229.24.72' OR ip_addr='24.229.24.72' OR user_id=1
        [6] => SELECT aid, title FROM cpg133_albums WHERE 1
        [7] => SELECT filepath, filename FROM cpg133_pictures WHERE filepath LIKE '1024052%'
        [8] => SELECT aid, title FROM cpg133_albums WHERE category = 0 ORDER BY title
        [9] => SELECT DISTINCT a.aid as aid, a.title as title, c.name as cname FROM cpg133_albums as a, cpg133_categories as c WHERE a.category = c.cid AND a.category < '10000' ORDER BY cname,title
        [10] => SELECT aid, CONCAT('(', user_name, ') ', title) AS title FROM cpg133_albums AS a INNER JOIN cpg133_users AS u ON category = (10000 + user_id) ORDER BY title
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [startdir] => 1024052
    )

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.10 - OK
    ------------------
    mySQL version: 3.23.58
    ------------------
    Coppermine version: 1.3.3
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.28 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 3.23.58
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.1.1
    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 | no value | no value
    file_uploads | On | On
    include_path | .:/usr/share/pear | .:/usr/share/pear
    open_basedir | /home/httpd/vhosts/greendayauthority.com/httpdocs:/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 | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.083 seconds - 11 queries in 0.023 seconds - Album set :



    My page is

    http://www.greendayauthority.com/Picture_Vault/

Joachim Müller

1) Don't post debug_output unless a supporter requests it
2) Upgrade asap, you have cpg1.3.3, while the most recent stable is cpg1.3.5
3) Do as suggested already in this thread (in my first reply to this thread): http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
4) Repyling to a thread that is marked as "solved" and deals with another issue (yahoo webhosting) is not a very good idea. For now, stick to this thread and reply to it, but in the future, make sure to only reply to threads that actually deal with the very same issue that you're having troubles with, or start your own thread.

gln2982

I just wanted to point out I found the true issuse.  GauGau was right when he said it was a memory issuse with image magic, and I also found the the GD on my host is apparenly messd up.  Because of the memory issuse, it could not create the thumbnails for the batch add, which is why they were all broken images.