Unable to upload and place file Unable to upload and place file
 

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

Unable to upload and place file

Started by flyingspatulas, April 24, 2008, 05:23:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

flyingspatulas

Ever since I upgraded to 1.4.18 I've had nothing but trouble with CPG. The latest problem is that I can't place files in albums after I upload them (via both HTTP and FTP).

Error Message: "Unable to create thumbnail or reduced size image."

Versions: CPG 1.4.18 / GD 2.x

Steps Taken:
1. Changed config settings according to the documentation.
2. CHMOD set to 777 on albums/ and all subdirectories.
3. Changed file and thumbnail settings.
4. Read every related help thread I could find.

Link: http://www.shialabeouf.us/gallery/
user: test
pass: test123

Please help! I'm really frustrated with this. :(

Joachim Müller

Are you sure that 777 is the proper CHMOD setting on your webserver? If you're not sure, ask your webhost. Some webservers require another CHMOD setting than 777, e.g. 755.

flyingspatulas

I've been on the same host for 2 years and it's always been 777.

Hein Traag

Great, but did you check just to be sure it is stil 777 ? Hosts are also just people (who can also make mistakes).

A quick search gives a lot of threads dealing with the same problem. Also with people who do, like you, have it all set to 777 and stil have the problem. Check this thread and see if it helps: http://forum.coppermine-gallery.net/index.php/topic,51833.0.html

flyingspatulas

As I said in my original post, I read every related help post that I could find and I changed the file and thumbnail settings just like that thread suggested.

I asked my host and it is still 777.


Hein Traag

I tried logging in to see if i could upload a picture. But apparently there is no album set to recieve uploaded images.

flyingspatulas

Quote from: Hein Traag on April 24, 2008, 11:41:48 AM
I tried logging in to see if i could upload a picture. But apparently there is no album set to recieve uploaded images.
I don't know what you mean. I have hundreds of albums and all have the correct permissions.

Hein Traag


flyingspatulas

I fixed the album problem and now there is a test album. I logged into the test account and tried to upload a file into the test album. This is the error message:

The file 'albums/userpics/11481/shialabeouf-patrickfraser005.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /home/shia/public_html/gallery/db_input.php - Line: 402


Debug Info (in case you want it):

USER:
------------------
Array
(
    [ID] => a24f55c572134123c62ba6a674cbbe12
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 15036
            [1] => 18917
            [2] => 19209
            [3] => 18907
            [4] => 18877
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1481
    [user_name] => test
    [groups] => Array
        (
            [0] => 2
            [1] => 5
        )

    [disk_max] => 1024
    [disk_min] => 1024
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [can_post_comments] => 0
    [can_upload_pictures] => 1
    [can_create_albums] => 0
    [has_admin_access] => 0
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Registered
    [upload_form_config] => 0
    [group_quota] => 1024
    [can_see_all_albums] => 0
    [group_id] => 2
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg148_filetypes; (0s)
    [1] => select * from cpg148_plugins order by priority asc; (0s)
    [2] => delete from `shia_gallery`.cpg148_sessions where time<1209034058 and remember=0; (0s)
    [3] => delete from `shia_gallery`.cpg148_sessions where time<1207828058; (0s)
    [4] => select user_id from `shia_gallery`.cpg148_sessions where session_id = '6cb46cf9ce2bf26eccb7bb947899a0e9' (0s)
    [5] => select user_id as id, user_password as password from `shia_gallery`.cpg148_users where user_id=1481 (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 `shia_gallery`.cpg148_users AS u INNER JOIN `shia_gallery`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1481' (0s)
    [7] => SELECT user_group_list FROM `shia_gallery`.cpg148_users AS u WHERE user_id='1481' 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 cpg148_usergroups WHERE group_id in (2,5) (0s)
    [9] => SELECT group_name FROM  cpg148_usergroups WHERE group_id= 2 (0s)
    [10] => update `shia_gallery`.cpg148_sessions set time='1209037658' where session_id = '6cb46cf9ce2bf26eccb7bb947899a0e9' (0s)
    [11] => SELECT description from cpg148_albums WHERE aid='' (0s)
    [12] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 1481 (0s)
    [13] => DELETE FROM cpg148_banned WHERE expiry < '2008-04-24 05:47:38' (0s)
    [14] => SELECT * FROM cpg148_banned WHERE (ip_addr='124.120.92.185' OR ip_addr='124.120.92.185' OR user_id=1481) AND brute_force=0 (0s)
    [15] => SELECT category FROM cpg148_albums WHERE aid='381' and (uploads = 'YES' OR category = '11481') (0s)
)

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

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

==========================
Page generated in 0.097 seconds - 16 queries in 0 seconds - Album set : ; Meta set: ;

Hein Traag

If the albums folder and the folder named 11481 are both set to 777 then it should be ok.
You might want to check with your hoster, see if it helps if they change it to 755 and back to 777 again.
Also check if you cpg is set to use GD2 or IM and which of those is installed by your hoster.