Files could not be place. Files could not be place.
 

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

Files could not be place.

Started by max302, August 06, 2006, 02:58:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

max302

This is getting on my nerves. I`ve installed reinstalled patched, double checked permissions  at least 7904834 times, and this still doesn't work. Image Magick is installed, so is GD, which stubbornly refuses to work(PHP says GD is supported, but CPG says it isn't, but thats another problem.), and of course the latest version of coppermine. This all runs on Apache server Running on linux, distro i don`t know.

When I upload a pic, CPG says that my photo was properly uploaded, which is true, because i see it on FTP. When I am prompted to enter the info on the pic, no preview is available, like in the pic that I included in this post. Then, on the next page, i get this message. "The previous file could not be placed.
You have successfully placed all the files."
Then, the photo isn`t visible on the category that I selected.

Any of you have an idea of whats going on?


max302

I get this.

The file 'albums/userpics/10001/Band_1.jpg' can't be inserted in the album

--------------------------------------------------------------------------------------------------
Error executing ImageMagick - Return value: 1

Cmd line :
/usr/local/bin/convert -quality 80 -antialias -geometry 100x75 'albums/userpics/10001/Band_1.jpg' 'albums/userpics/10001/thumb_Band_1.jpg'


The convert program said:
convert: no decode delegate for this image format `albums/userpics/10001/Band_1.jpg'.
convert: missing an image filename `albums/userpics/10001/thumb_Band_1.jpg'.
---------------------------------------------------------------------------------------------------

The debug output is this:

---------------------------------------------------------------------------------------------------
USER:
------------------
Array
(
    [ID] => 3679fe82f975a9fc59abc97373fecc6d
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => max302
    [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 cpg148_filetypes; (0.002s)
        [1] => select * from cpg148_plugins order by priority asc; (0.002s)
        [2] => delete from `tales_copp1`.cpg148_sessions where time<1154868556 and remember=0; (0.002s)
        [3] => delete from `tales_copp1`.cpg148_sessions where time<1153662556; (0.002s)
        [4] => select user_id from `tales_copp1`.cpg148_sessions where session_id=md5("4dc0ba4e59b7bd44f7e387bd608268bf2ba7ec8e00644fc72b7750e0cbf2f6b3"); (0.003s)
        [5] => select user_id as id, user_password as password from `tales_copp1`.cpg148_users where user_id=1 (0.002s)
        [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 `tales_copp1`.cpg148_users AS u INNER JOIN `tales_copp1`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.002s)
        [7] => SELECT user_group_list FROM `tales_copp1`.cpg148_users AS u WHERE user_id='1' and user_group_list <> ''; (0.001s)
        [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 cpg148_usergroups WHERE group_id in (1) (0.002s)
        [9] => SELECT group_name FROM  cpg148_usergroups WHERE group_id= 1 (0.002s)
        [10] => update `tales_copp1`.cpg148_sessions set time='1154872156' where session_id=md5('4dc0ba4e59b7bd44f7e387bd608268bf2ba7ec8e00644fc72b7750e0cbf2f6b3'); (0.002s)
        [11] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 1 (0.002s)
        [12] => DELETE FROM cpg148_banned WHERE expiry < '2006-08-06 13:49:16' (0.002s)
        [13] => SELECT * FROM cpg148_banned WHERE (ip_addr='24.122.124.9' OR ip_addr='24.122.124.9' OR user_id=1) AND brute_force=0 (0.001s)
        [14] => SELECT category FROM cpg148_albums WHERE aid='1' (0.002s)
        [15] => SELECT COUNT(*) FROM cpg148_pictures WHERE approved = 'NO' (0.001s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 1
        [MAX_FILE_SIZE] => 1048576
        [title] => asdf
        [caption] => asdfsdfs
        [keywords] => sdfsdf
        [event] => picture
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.1.4 - OK
    ------------------
    mySQL version: 5.0.21-standard-log
    ------------------
    Coppermine version: 1.4.8(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: 2.0 or higher
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support:
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support:
    PNG Support: 1
    WBMP Support: 1
    XPM Support:
    XBM Support:
    JIS-mapped Japanese Font Support:

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 5.0.21
    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
    Stream Wrapper support compress.zlib://
    Stream Filter support zlib.inflate, zlib.deflate
    Compiled Version 1.2.3
    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 | .:/www/php_includes | .:/www/php_includes
    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 1.538 seconds - 16 queries in 0.03 seconds - Album set : ; Meta set: ;
    --------------------------------------------------------------------------------------------------

Joachim Müller

The uploading troubleshooting section Nibbler refered to clearly says not to post debug_output, read more carefully next time. The error message should be pretty self-explanatory. Try using GD. GD needs to be compiled with jpeg support, see FAQ.