forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 upload => Topic started by: paulsparrow on October 26, 2012, 12:35:40 am

Title: Unable to create thumbnail or reduced size image
Post by: paulsparrow on October 26, 2012, 12:35:40 am
First time trying this software.  I have created my Category and Album.  Now trying to load pictures.  My photos have been uploaded to gallery/albums folder.  I can see and select the folder and all the pictures.  When I click "Insert photos" nothing happens.  The small image on the right side appears broken then I get the radar screen image and when I hover over I get the error in the topic.
Title: Re: Unable to create thumbnail or reduced size image
Post by: Jeff Bailey on October 26, 2012, 12:47:36 am
Please try:
http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm#upload_trouble
http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm#upload_trouble_enable_settings

If that doesn't work:
http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm#upload_support
http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm?expand_all=1#upload_support_step-by-step
The small image on the right side appears broken then I get the radar screen image and when I hover over I get the error in the topic.
What's the error?

Uploading docs:
http://documentation.coppermine-gallery.net/en/uploading_batch-add.htm#batch_add_pics
http://documentation.coppermine-gallery.net/en/uploading_http.htm
Title: Re: Unable to create thumbnail or reduced size image
Post by: paulsparrow on October 26, 2012, 01:34:06 am
Well I've gone through a lot of this stuff.  Very complicated but followed what was told to be done and still get the same errors.

I tried a single picture upload as suggested using the "upload file" section and got the following:

Critical error
Unable to create thumbnail or reduced size image.
File: /home2/vmfln3wv/public_html/gallery/db_input.php - Line: 699

My permissions on the all the folders required as per instructions are 777 and I actually clicked those to make sure and saved them.
Title: Re: Re: Unable to create thumbnail or reduced size image
Post by: Jeff Bailey on October 26, 2012, 02:12:51 am
Please provide this information.
If that doesn't work:
http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm#upload_support
http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm?expand_all=1#upload_support_step-by-step

Critical error
Unable to create thumbnail or reduced size image.
File: /home2/vmfln3wv/public_html/gallery/db_input.php - Line: 699
Looks like it's failing in the resize_image function from picmgmt.inc.php.
The error is because $imginfo doesn't have the correct info.
The cpg_getimagesize function from functions.inc.php is suppose to fill that value.
Just need to find what part is causing it to fail.
Title: Re: Unable to create thumbnail or reduced size image
Post by: paulsparrow on October 26, 2012, 11:27:01 pm
Followed directions. Created test account (Login test, password test) and made them part of the "uploaders" group.  Tried uploading pic and same error.

Critical error
Unable to create thumbnail or reduced size image.

File: /home2/vmfln3wv/public_html/gallery/db_input.php - Line: 699


Log file:
Code: [Select]
USER:
------------------
Array
(
    [ID] => ac1563b7a94c918f5234a34626d8e419
    [lang] => english
    [am] => 1
)

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

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [can_post_comments] => 0
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 0
    [access_level] => 3
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Guests
    [can_create_public_albums] => 0
    [group_quota] => 0
    [can_see_all_albums] => 0
    [group_id] => 3
    [allowed_albums] => Array
        (
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT name, value FROM pic_config [include/init.inc.php:179] (1 ms)
    [1] => SELECT * FROM pic_plugins ORDER BY priority [include/plugin_api.inc.php:52] (1 ms)
    [2] => SELECT user_id, time FROM `vmfln3wv_pictures`.pic_sessions WHERE session_id = 'c2b35d5feb7ffcee63fc52a6473ee347' [bridge/coppermine.inc.php:263] (1 ms)
    [3] => SELECT user_id, user_password FROM `vmfln3wv_pictures`.pic_users WHERE user_id = 2 [bridge/coppermine.inc.php:275] (0 ms)
    [4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `vmfln3wv_pictures`.pic_users AS u LEFT JOIN `vmfln3wv_pictures`.pic_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' [bridge/udb_base.inc.php:70] (1 ms)
    [5] => SELECT user_group_list FROM `vmfln3wv_pictures`.pic_users AS u WHERE user_id='2' AND user_group_list <> '' [bridge/coppermine.inc.php:201] (0 ms)
    [6] => 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(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, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM pic_usergroups WHERE group_id in (3,4) [bridge/udb_base.inc.php:323] (0 ms)
    [7] => SELECT group_name FROM pic_usergroups WHERE group_id= 3 [bridge/udb_base.inc.php:327] (0 ms)
    [8] => SELECT COUNT(*) FROM pic_categorymap WHERE group_id in (3,4) [bridge/udb_base.inc.php:340] (0 ms)
    [9] => SELECT aid FROM pic_albums WHERE moderator_group IN (3,4) [include/init.inc.php:269] (1 ms)
    [10] => SELECT lang_id FROM pic_languages WHERE enabled='YES' [include/init.inc.php:327] (1 ms)
    [11] => SELECT user_favpics FROM pic_favpics WHERE user_id = 2 [include/init.inc.php:385] (0 ms)
    [12] => DELETE FROM pic_banned WHERE expiry < '2012-10-26 17:23:42' [include/init.inc.php:441] (1 ms)
    [13] => SELECT null FROM pic_banned WHERE (user_id=2 OR '108.180.77.220' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:457] (0 ms)
    [14] => SELECT aid FROM pic_albums WHERE (1  AND visibility != 0 AND visibility != 10002 AND visibility NOT IN (3,4)) [include/functions.inc.php:976] (0 ms)
    [15] => SELECT DISTINCT category FROM pic_albums WHERE owner = '2' AND aid='0' [include/functions.inc.php:5248] (0 ms)
    [16] => SELECT DISTINCT aid FROM pic_albums AS alb INNER JOIN pic_categorymap AS catm ON alb.category=catm.cid WHERE alb.owner = '2' AND alb.aid='0' AND catm.group_id='3' [include/functions.inc.php:5279] (0 ms)
    [17] => SELECT category FROM pic_albums WHERE aid = 3 AND (uploads = 'YES' OR owner = 2 OR category = 10002) [db_input.php:536] (0 ms)
    [18] => SELECT extension, mime, content, player FROM pic_filetypes [include/functions.inc.php:5810] (1 ms)
    [19] => SELECT null FROM pic_albums WHERE category='10002' AND aid = '3' [themes/curve/theme.php:424] (0 ms)
    [20] => SELECT null FROM pic_albums WHERE category < 10000 AND uploads='YES' AND (visibility = '0' OR visibility IN (3,4)) AND aid = '3' [themes/curve/theme.php:434] (0 ms)
    [21] => SELECT null FROM pic_albums WHERE category='10002' AND aid = '3' [themes/curve/theme.php:424] (0 ms)
    [22] => SELECT null FROM pic_albums WHERE category < 10000 AND uploads='YES' AND (visibility = '0' OR visibility IN (3,4)) AND aid = '3' [themes/curve/theme.php:434] (0 ms)
)

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

==========================
POST :
------------------
Array
(
    [method] => html_single
    [album] => 3
    [title] => test1
    [caption] => test1
    [keywords] =>
    [event] => picture
    [form_token] => 5ab446266d9003f244ccdc574f62b798
    [timestamp] => 1351286601
)

==========================
COOKIE :
------------------
Array
(
    [cpsession] => vmfln3wv:VwOaivj2L5DZubf2Un87qzIO3Qs_NCuUMV6NYlYsgCCA8JYqSBLr95fA8Q090YTG
    [langedit] =>
    [lang] =>
    [cprelogin] => no
    [405efa8566581641a967cd555958e84e] => 65e9e65ba2e40ad1c7509ffaac0df4ad
    [cpg15x_data] => YTozOntzOjI6IklEIjtzOjMyOiJhYzE1NjNiN2E5NGM5MThmNTIzNGEzNDYyNmQ4ZTQxOSI7czo0OiJsYW5nIjtzOjc6ImVuZ2xpc2giO3M6MjoiYW0iO2k6MTt9
)
Title: Re: Unable to create thumbnail or reduced size image
Post by: Jeff Bailey on October 26, 2012, 11:32:51 pm
I still need a link to your gallery to test.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Title: Re: Unable to create thumbnail or reduced size image
Post by: paulsparrow on October 26, 2012, 11:38:34 pm
vmfl.ca/gallery

Login: test
Pwd: test
Title: Re: Unable to create thumbnail or reduced size image
Post by: Jeff Bailey on October 26, 2012, 11:47:26 pm
PM sent
Title: Re: Unable to create thumbnail or reduced size image
Post by: Jeff Bailey on October 27, 2012, 12:28:24 am
Config was set to use ImageMagick, changed to GD 2 and it works. Should have thought of this earlier :-[
Title: Re: Unable to create thumbnail or reduced size image
Post by: GinoV on February 16, 2013, 08:14:12 am
Thanks, Jeff Bailey.

You actually answered and fixed my situation that was exactly like this guy.
I went ahead and fixed with your directions.
http://www.photosdiary.com/album/ (http://www.photosdiary.com/album/)  Photos Diary Albums.
Now I can publish my site with the album, after uploading great pictures for sure.