Batch add files impossible Batch add files impossible
 

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 impossible

Started by penelope79, July 12, 2009, 11:44:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

penelope79

I tried the suggestions in the upload troubleshooting section and I searched the forum but I was unable to find the right solution: suddenly, I'm no longer able to Batch Add files via FTP. Link: http://www.kristen-online.net/gallery/
I checked and re-applied all the permissions. Nothing seems to change.
I usually use IM: if I tried to upload files over 1 MB, I get the PB error. Instead, if I try to use GD, i get the error: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 2798 bytes) in /home/kristeno/public_html/gallery/include/picmgmt.inc.php on line 412.
For smaller files, if I use IM I get the error: Error executing ImageMagick - Return value: 1 
Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 60x99 'albums/etc./xxx-xxxx.jpg'
The convert program said:
convert: unable to open image `albums/etc./xxx-xxxx.jpg': Permission denied @ blob.c/OpenBlob/2403.
If this may help, my gallery is modded by STAMM, but I never got problem before.

i also created a test user

Username: test
Password: test

HTTP upload works fine, but I have tons of pictures to upload. :(

This is the debug:

QuoteUSER:
------------------
Array
(
    [ID] => b76cfc9fe3b246aa5e8e18b82a1444c8
    [am] => 1
    [lang] => italian
    [liv] => Array
        (
        )

    [lap] => 1
)

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

        [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] => 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] => 0
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
        [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => delete from `kristeno_copp1`.cpg_sessions where time<1247431301 and remember=0; (0s)
        [3] => delete from `kristeno_copp1`.cpg_sessions where time<1246225301; (0s)
        [4] => select user_id from `kristeno_copp1`.cpg_sessions where session_id = '6b275b006a31418bb7673401e436ec2d' (0s)
        [5] => select user_id as id, user_password as password from `kristeno_copp1`.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.avatar_url AS avatar_url, u.enable_admin_email AS notify, u.auto_subscribe_post AS auto_subscribe_post, u.auto_subscribe_comment AS auto_subscribe_comment, u.user_group+100 AS group_id FROM `kristeno_copp1`.cpg_users AS u INNER JOIN `kristeno_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `kristeno_copp1`.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 `kristeno_copp1`.cpg_sessions set time='1247434901' where session_id = '6b275b006a31418bb7673401e436ec2d' (0s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
        [12] => SELECT count(*) FROM  cpg_pms WHERE owner=1 (0s)
        [13] => SELECT count(*) FROM  cpg_pms WHERE owner=1 AND showed='0' (0s)
        [14] => SELECT count(*) FROM  cpg_buddy WHERE user_id=1 (0s)
        [15] => SELECT count(*) FROM  cpg_buddy_req WHERE buddy_to=1 (0s)
        [16] => DELETE FROM cpg_banned WHERE expiry < '2009-07-12 16:41:41' (0s)
        [17] => SELECT * FROM cpg_banned WHERE (ip_addr='93.43.147.237' OR ip_addr='93.43.147.237' OR user_id=1) AND brute_force=0 (0s)
        [18] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = ''  ORDER BY pos (0.01s)
        [19] => SELECT aid FROM cpg_albums as a WHERE category>=10000 (0.001s)
        [20] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
        [21] => SELECT aid FROM cpg_albums WHERE category = 2 (0s)
        [22] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
        [23] => SELECT aid FROM cpg_albums WHERE category = 7 (0s)
        [24] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 7 (0s)
        [25] => SELECT count(*) FROM cpg_albums as a WHERE category = '7' (0s)
        [26] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=7 ORDER BY a.pos LIMIT 0,10 (0s)
        [27] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (58, 59, 60, 61, 62, 63, 64, 65, 66, 67)GROUP BY a.aid (0.001s)
        [28] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='1613' (0s)
        [29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='1619' (0s)
        [30] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='1622' (0s)
        [31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='1629' (0s)
        [32] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='1636' (0s)
        [33] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='1637' (0s)
        [34] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='1649' (0s)
        [35] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='1656' (0s)
        [36] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='1665' (0s)
        [37] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='1678' (0s)
        [38] => SELECT aid FROM cpg_albums WHERE category = 3 (0s)
        [39] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0s)
        [40] => SELECT aid FROM cpg_albums WHERE category = 4 (0s)
        [41] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0s)
        [42] => SELECT aid FROM cpg_albums WHERE category = 5 (0s)
        [43] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0s)
        [44] => SELECT aid FROM cpg_albums WHERE category = 6 (0s)
        [45] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
        [46] => SELECT aid FROM cpg_albums as a WHERE category = '0' (0s)
        [47] => SELECT count(*) FROM cpg_albums as a WHERE 1 (0s)
        [48] => SELECT count(*) FROM cpg_categories WHERE 1 (0s)
        [49] => SELECT count(*) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.003s)
        [50] => SELECT sum(hits) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON p.aid=a.aid WHERE 1 (0.007s)
        [51] => SELECT count(*) FROM cpg_comments as c LEFT JOIN cpg_pictures as p ON c.pid=p.pid LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 (0.001s)
        [52] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
        [53] => SELECT count(*) FROM cpg_albums as a WHERE category = '0' (0s)
        [54] => SELECT * FROM cpg_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0.06s)
        [55] => SELECT COUNT(*) from cpg_pictures WHERE approved = 'YES'  (0.002s)
        [56] => SELECT * FROM cpg_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8 (0s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.2.9 - OK
    ------------------
    mySQL version: 5.0.81-community
    ------------------
    Coppermine version: 1.4.23(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.34 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
    XPM 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.81
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Stream Wrapper support compress.zlib://
    Stream Filter support zlib.inflate, zlib.deflate
    Compiled Version 1.2.1.2
    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/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    open_basedir | /home/kristeno:/usr/lib/php:/usr/local/lib/php:/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 | 60 | 60
    max_input_time | 60 | 60
    upload_max_filesize | 8M | 8M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.315 seconds - 57 queries in 0.085 seconds - Album set : ; Meta set: ;

Joachim Müller

The test user account doesn't have upload permissions. Do exactly as suggested in http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_support
Additionally, post a deep link to one of the files you're having issues with batch-adding.

penelope79

First of all, thank you for your reply.  :)
I checked the upload permission, now it should work.
I apologize for being so ignorant, but... what is a deep link? Maybe the following one?

Quotehttp://www.kristen-online.net/gallery/addpic.php?aid=144&pic_file=RXZlbnRzLzIwMDcvcG9ydHJhdGlzIGR1cmluZyB0cmliZWNhIGZmL1BvcnRyYWl0c2R1cmluZ1RyaWJlY2FGRi0wMDEzLmpwZw==&reload=4a5ae4b7851c3

I forgot to mention that the bigger files (such as the one I just tried to upload) disappear from my FTP folder when the upload is unsuccessful.

Thanks.

Joachim Müller

When logging in with the test user account and clicking on the upload link I get
QuoteSorry there is no album where you are allowed to upload files 
, which shows that you haven't bothered to test with the test user account. Stop wasting our time. Do your homework, then report back. A deep link to one of the files that you have issues with is not what you posted. Find out what the word "deep link" means by googling for that term.

penelope79

I don't think you need to be harsh, since I'm being nice. You can say the very same things without being harsh.
I tested the test user and it worked for me, the only thing I forgot was to create an album for tester, which I apologize about.
As per the deep link, I should've probably specified that my question was related to the gallery only: I thought the link I posted was the right one since, as I mentioned, the files I have issues with suddenly disappear from the gallery and from my own FTP folder, so that it's hard for me to provide most proper links. I'll try again with the following link which, with the previous one, is unfortunately the only deep link to the file I can provide before the file itself disappears, forcing me to upload it again through FTP.
Quotehttp://kristen-online.net/gallery/albums/Events/2007/portratis%20during%20tribeca%20ff/PortraitsduringTribecaFF-0013.jpg

Joachim Müller

http uploads work as expected, see http://www.kristen-online.net/gallery/displayimage.php?pos=-3816

http://kristen-online.net/gallery/albums/Events/2007/portratis%20during%20tribeca%20ff/PortraitsduringTribecaFF-0013.jpg contains capitalization and special chars / spaces inside the path, which is not a bright idea. Additionally, the file is ridiculously large both in terms of file size (4.3 MB) as well as dimensions (2798 x 4197), so it's small wonder that it can't be batch-added: you'd need 33 MB of RAM to process that single image, which something you probably don't have. Resize on the client before uploading. Use a naming scheme that makes sense on the web. Update to cpg1.4.25 (you have cpg1.4.23).

Quote from: penelope79 on July 13, 2009, 02:49:49 PM
I don't think you need to be harsh, since I'm being nice. You can say the very same things without being harsh.
I could, but I don't want to, since I'm not your speaking puppet nor am I a parrot. You're not in the position to demand anything. You have done quite the opposite of what you're suppossed to when you started your posting, which shows that you're too lazy to read instructions. Why should I bother then and write detailed replies? They're right to the point and straightforward, that's it.

Quote from: penelope79 on July 13, 2009, 02:49:49 PM
the file itself disappears
Coppermine doesn't do that - it doesn't move files around. Must be something your webhost does. Ask them why files disappear; not related to coppermine.

penelope79

Thank you for your reply, I'm going to follow your suggestions and ask my webhost why the files disappear, since it's not coppermine related.
Anyway, I definitively did not stated that you had to reply or that you're my speaking puppet, this is not how I behave at all. I just stated that I asked nicely something and even though I may have done something wrong (not on purpose, since I read the docs, believe it or not) I did not deserve harshness, that's it. I know that you guys read tons of posts and you're probably tired of repeating things on and on, but I'm only saying that since I was nice, I hoped to find the same niceness.
In any case, that doesn't prevent me to thank you anyway.

penelope79

I apologize for the double post, but in the case this may help someone else with similar issues, my problem has been solved with the upgraded version of Coppermine Gallery. Thanks.