Cannot create thumbnail or resize image Cannot create thumbnail or resize image
 

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

Cannot create thumbnail or resize image

Started by welshjess, May 17, 2008, 03:10:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

welshjess

I've just installed a new gallery at http://totallykt.com/photos

but when I go through the batch add process, I just get this error. My first thought was space, but this isn't a problem since before installing I moved the site to it's own server.

I know it says to create a test account, for help, but how do I do this? I'm happy to PM someone my details since there are no files in the gallery at the moment.

I have no problem with any of my other fansite galleries, all of which use the latest coppermine and stramm.

Any help is appreciated.

just_some_guy

What was the error you received with debug mode switched on?
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

welshjess

USER:
------------------
Array
(
    [ID] => 6c888aba6dc6aba13e02db096b7f6ed6
    [am] => 1
    [lang] => english
)

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

        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [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] => 3
        [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 `totallyk_copp2`.cpg_sessions where time<1211029750 and remember=0; (0s)
        [3] => delete from `totallyk_copp2`.cpg_sessions where time<1209823750; (0s)
        [4] => select user_id from `totallyk_copp2`.cpg_sessions where session_id = 'bc7a633855cf78c74098f7958a79f267' (0s)
        [5] => select user_id as id, user_password as password from `totallyk_copp2`.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 `totallyk_copp2`.cpg_users AS u INNER JOIN `totallyk_copp2`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `totallyk_copp2`.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 `totallyk_copp2`.cpg_sessions set time='1211033350' where session_id = 'bc7a633855cf78c74098f7958a79f267' (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 < '2008-05-17 14:09:10' (0s)
        [17] => SELECT * FROM cpg_banned WHERE (ip_addr='88.111.80.182' OR ip_addr='88.111.80.182' OR user_id=1) AND brute_force=0 (0s)
        [18] => SELECT aid, title FROM cpg_albums WHERE 1 (0s)
        [19] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [insert] => 1
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [d0000] => 5
        [pics] => Array
            (
               
  • => i0000
                [1] => i0001
                [2] => i0002
            )

        [album_lb_id_i0000] => d0000
        [picfile_i0000] => cGhvdG9zaG9vdHMvMjAwNS9zZXQwMDQvMDAxLmpwZw==
        [album_lb_id_i0001] => d0000
        [picfile_i0001] => cGhvdG9zaG9vdHMvMjAwNS9zZXQwMDQvMDAyLmpwZw==
        [album_lb_id_i0002] => d0000
        [picfile_i0002] => cGhvdG9zaG9vdHMvMjAwNS9zZXQwMDQvVGh1bWJzLmRi
        [insert] => Insert selected files
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 5.2.5 - OK
    ------------------
    mySQL version: 5.0.45-community
    ------------------
    Coppermine version: 1.4.18(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.45
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib64 -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.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 | exec, shellexec, passthru, system, escapeshellcmd, escapeshellarg | exec, shellexec, passthru, system, escapeshellcmd, escapeshellarg
    file_uploads | On | On
    include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    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 | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.053 seconds - 20 queries in 0 seconds - Album set : ; Meta set: ;

    Is this what you mean?

just_some_guy

No thats the debug output, is there not an error message below the "Cannot create thumbnail or resize image"?
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

welshjess


ucillian

I'm having the exact same problem.  It goes all the way through the batch add process and then when it usually gives the "OK" image, it says to click for details and then just says, "Unable to create thumbnail or reduced size image."  When I try to upload it manually using the "Upload file" link, it still doesn't let it go through, and says "Error Message: Impossible to move."

Joachim Müller

@welshjess: do exactly as suggested in the docs, sections "upload troubleshooting" and "asking for support on upload issues"

@ucillian: then do exactly as I told welshjess. Do so in your own thread.

@just_some_guy: I appreciate your readiness to help, but please do as all the other supporters do: tell users who don't come with the correct information to read the docs and do as suggested there. Everything else will result in discussions similar to the one that is already taking place here: the thread starter didn't understand your instructions and posted debug_output although he mustn't. This dissussion is leading nowehere: in the next step, you'll have to ask him for a link to his gallery. Then you'll have to ask him for a est user account. Then you'll have to ask him to enable single file uploadfs for the test user account. Finally, you'll have all needed information and will be ready to see the actual error message. That's the point when you will be able to actually help, not before. In the meanwhile, you will have had to type a lot, and the thread starter will get frustrated why this is taking so long. Believe me: I have lead this discussion before countless times already - it is very time-consuming and frustrating. Therefor, please do as I suggested above: tell users to do as suggested in the docs, because there they will find all information they need what they need to do to set up their gallery properly for us to look into their issues. We definitely need a link to their page (as they might be using an outdated version, have an issue in their theme) and of course we need to test uploading for them. We definitely need the non-admin test user account for test uploading, as explaining them how to savely allow guest uploads takes much more effort. We definitely need users to enable single file uploads, as only then we'll be able to see the actual error message and advice what is wrong.
Please don't get me wrong: as I initially said, I really appreciate your readiness to help. I'm just trying to keep you from getting frustrated with the effort it takes to take the full quiz of advice and reply that will take place if you don't tell users what you need in the first place.

Joachim

welshjess

Ok, I'm sorry for my questions. I think I've done everything that is asked, and the test account is:

username: test
password: test

I still don't get a detailed message though, and I'm sorry if I seem inexperienced, but I have several websites, all upgraded, and this is the only one I'm having problems with.

just_some_guy

I attempted to login to test the single file upload but your gallery is offline, nobody can test anything - please put it online.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums


just_some_guy

I can replicate that error  -

QuoteCritical error
The file 'albums/userpics/upload.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /home/totallyk/public_html/photos/db_input.php - Line: 451

Note, you are aware that is an Admin account you posted. I am not as experienced as other supporters, but usually the file gets uploaded to a sub directory of userpics/ such as albums/userpics/10001/. I suggest your review the CHMOD settings for the albums/ , edit/ and userpics/ directories.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

welshjess

I'll try that. I was aware it was an admikn account yes, and since there are no files I thought it was safe.

Joachim Müller

No, it's not safe to post an admin account. Anybody could upload a backdoor to your server and take over the server now (or later). Make the test user account a regular non-admin user account and change all your passwords.
As suggested, make sure to set permissions as suggested in the docs (section "permissions").