Cannot decipher the uploading problem Cannot decipher the uploading problem
 

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

Cannot decipher the uploading problem

Started by Spicedogs, May 01, 2007, 09:46:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Spicedogs

I upload a picture. It goes through the first phase. I press continue, but when I get to the phase wherein I put the photo in an album, I do not get a thumbprint of the photo on left-hand side. I get a thick horizontal line, which does not allow the photo to be placed in the album. Any suggestions?


Spicedogs

#2
I am still having problems. I never had problems before. I took screencaps to show you what my uploads look like. I use either the browse my hard drive system or the url upload. (I have no FTP capabilities, only Filezila.) I made a screencap using explorer and firefox.

[edit GauGau] Replaced hotlinked images with attachments [/edit]


I have no idea what happened to my board.

http://michaelemerson.net/coppermine/

Joachim Müller

#3
Do exactly as Nibbler suggested! Here's the part of the docs that Nibbler refered to, with the important bit (the stuff you failed to do) highlighted:
Quote4.11.4 Upload troubleshooting

If you are experiencing issues with coppermine's upload process, temporarily change your coppermine settings as suggested below to get more detailed error messages:

    * Go to your coppermine page and log in as admin
    * Go to the config screen
    * Scroll to the bottom of the page
    * Expand the "Maintenance settings" section by clicking on it
    * Enable debug mode for everyone
    * Leave display of notices switched off
    * Save the new settings by clicking on "Save new configuration"
    * Go to the "groups" panel
    * Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")
    * Save your new settings

Then try to upload (using http uploads, even if you experienced troubles using another upload method) - you should get a more detailed error message that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.
When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested.

When people have issues with uploading and decide to post their question on the Coppermine support board, they usually are told to read this upload troubleshooting section. Many of them fail to do so properly, which results in frustration both for users as well as supporters. To make this absolutely clear: the above mentioned steps are absolutely mandatory, no matter what skill level you have, no matter what upload method you have troubles with. Failing to do exactly as suggested will result in your request for help being ignored. Yes, this applies to you. We mean it!

Quote from: Spicedogs on May 03, 2007, 08:04:30 AM
I have no FTP capabilities, only Filezila.
That's nonsense. Filezilla is an FTP app.

Quote from: Spicedogs on May 03, 2007, 08:04:30 AM
I have no idea what happened to my board.
Coppermine is not a bulletin board system, but a web gallery.

Spicedogs

Here's the Debug Info:

USER:
------------------
Array
(
    [ID] => 20175e198e1cee85b3e7914249e366cd
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
  • => 1543
                [1] => 1534
                [2] => 1535
                [3] => 1536
                [4] => 1537
            )

        [search] => Array
            (
                [search] => phistolemon
                [params] => Array
                    (
                        [filename] => 1
                        [keywords] => 1
                        [caption] => 1
                        [title] => 1
                    )

            )

        [lap] => 2
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 2
        [user_name] => esbaker
        [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 cpg1410_filetypes; (0s)
        [1] => select * from cpg1410_plugins order by priority asc; (0s)
        [2] => delete from `coppermine`.cpg1410_sessions where time<1178169137 and remember=0; (0.001s)
        [3] => delete from `coppermine`.cpg1410_sessions where time<1176963137; (0s)
        [4] => select user_id from `coppermine`.cpg1410_sessions where session_id=md5("16add921deefd9253e988bfb12a69adea2e3dcf9a2149192bedafe5e7ddfd1f9"); (0s)
        [5] => select user_id as id, user_password as password from `coppermine`.cpg1410_users where user_id=2 (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 `coppermine`.cpg1410_users AS u INNER JOIN `coppermine`.cpg1410_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' (0s)
        [7] => SELECT user_group_list FROM `coppermine`.cpg1410_users AS u WHERE user_id='2' 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 cpg1410_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 1 (0s)
        [10] => update `coppermine`.cpg1410_sessions set time='1178172737' where session_id=md5('16add921deefd9253e988bfb12a69adea2e3dcf9a2149192bedafe5e7ddfd1f9'); (0s)
        [11] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 2 (0s)
        [12] => DELETE FROM cpg1410_banned WHERE expiry < '2007-05-03 01:12:17' (0s)
        [13] => SELECT * FROM cpg1410_banned WHERE (ip_addr='172.20.10.100' OR ip_addr='172.20.10.100' OR user_id=2) AND brute_force=0 (0s)
        [14] => SELECT category FROM cpg1410_albums WHERE aid='79' (0s)
        [15] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0.002s)
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.2.0 - OK
    ------------------
    mySQL version: 5.0.27
    ------------------
    Coppermine version: 1.4.10(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.28 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support: 1
    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.27
    MYSQL_MODULE_TYPE no value
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE no value
    MYSQL_LIBS no value
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Stream Wrapper support compress.zlib://
    Stream Filter support zlib.inflate, zlib.deflate
    Compiled Version 1.2.2
    Linked Version 1.2.3
    ==========================
    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 | .: | .:
    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 | 60 | 60
    upload_max_filesize | 32M | 32M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.103 seconds - 16 queries in 0.003 seconds - Album set : ; Meta set: ;



    and here's the error:

    The file 'albums/userpics/10002/TheBrig_000.jpg' can't be inserted in the album

    Error executing ImageMagick - Return value: 127

    Cmd line :
    convert -quality 80 -antialias -geometry 100x56 'albums/userpics/10002/TheBrig_000.jpg' 'albums/userpics/10002/thumb_TheBrig_000.jpg'


    The convert program said:


    File: /usr/local/www/coppermine/db_input.php - Line: 402


    I hope that I am posting to the correct place.

    What now?

Joachim Müller

Are you deliberately playing stupid?
Quote from: GauGau on May 03, 2007, 08:07:55 AMWhen asking for support on the coppermine forum, post [...] a test user account
Quote from: GauGau on May 03, 2007, 08:07:55 AMDo not post debug_output unless requested.




Anyway, the error message is quite clear:
Quote from: Spicedogs on May 03, 2007, 08:15:32 AM
and here's the error:

The file 'albums/userpics/10002/TheBrig_000.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 127

Cmd line :
convert -quality 80 -antialias -geometry 100x56 'albums/userpics/10002/TheBrig_000.jpg' 'albums/userpics/10002/thumb_TheBrig_000.jpg'


The convert program said:


File: /usr/local/www/coppermine/db_input.php - Line: 402



The error message you got is very common, doing as suggested in the docs
Quote from: GauGau on May 03, 2007, 08:07:55 AMIf the error message doesn't mean anything to you, search the support board for the error message you get.
would have told you that you either don't have ImageMagick or that you have specified the wrong path to ImageMagick in the first place. As suggested in the docs (again):
QuoteImageMagick
Coppermine can use the ImageMagick 'convert' program to create thumbnails. Quality of images produced by ImageMagick is superior to GD1 but equivalent to GD2.
If ImageMagick is installed on your system and you want to use it, you need to input the full path to the 'convert' program below. On Windows the path should look like 'c:/ImageMagick/' (use / not \ in the path) and should not contain any space, on Unix is it something like '/usr/bin/X11/'.
You can not fake an ImageMagick path, you have to know it. If you're not sure, leave this field empty - Coppermine will then try to use GD by default. You can edit the path later as well in the config screen. You can only install ImageMagick or GD if the server is yours to administer - if you're webhosted, you probably can't. The user of the webserver, who wishes to use ImageMagick, will need read/write/execute permissions in the folder where ImageMagick's convert executable resides in.
Bottom line: go to Coppermine's config, change "Method for resizing images" from "ImageMagick" to "GD2", save your changes, then try uploading once more.

In the future, make sure to have read the documentation before posting questions. Pay attention to supporter's suggestions!