Unable to create thumbnail or reduced size image. (I need some clarification...) Unable to create thumbnail or reduced size image. (I need some clarification...)
 

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 create thumbnail or reduced size image. (I need some clarification...)

Started by skunkworks, December 12, 2011, 08:33:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

skunkworks

Ok - if I set the the method for resizing images to GD 2.X I can upload small pictures and it creates the thumbnails and such.  Yay!  The issue is that I want to use this to store high resolution picutures >10mb.  I have a shared hosting server on hostdime.  From what I have read and experienced GD does not do large picutures very well as it uses a lot of resources..  (I cannot upload larger pictures and according to my php configuration on cpanel - memory_limit = 40mb.)  So - I want to try imagemagick which can supposedly do larger files without an issue..  (remember GD 2 works for small images - SO I do no think it is a permission issue)

When I switch to using imagemagick I get this...  (uploading the same small file that works with GD 2.X

Unable to create thumbnail or reduced size image.

File: /home/sokolik/public_html/cmgallery/db_input.php - Line: 676

any help or insite would be appreciated.

thanks
sam

skunkworks

USER:
------------------
Array
(
    [ID] => 4dcdd2c5565c49a86a040e03c95b08cf
    [am] => 1
    [lang] => english
    [upload_method] => html_single
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => samco
    [groups] => Array
        (
            [0] => 1
        )

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

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT name, value FROM cpg15x_config [include/init.inc.php:181] (0 ms)
    [1] => SELECT * FROM cpg15x_plugins ORDER BY priority [include/plugin_api.inc.php:53] (0 ms)
    [2] => SELECT user_id, time FROM `sokolik_copp10`.cpg15x_sessions WHERE session_id = '1706f4d5f0ed1c006a024944398787a8' [bridge/coppermine.inc.php:264] (0 ms)
    [3] => SELECT user_id, user_password FROM `sokolik_copp10`.cpg15x_users WHERE user_id = 1 [bridge/coppermine.inc.php:276] (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 `sokolik_copp10`.cpg15x_users AS u LEFT JOIN `sokolik_copp10`.cpg15x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge/udb_base.inc.php:70] (0 ms)
    [5] => SELECT user_group_list FROM `sokolik_copp10`.cpg15x_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge/coppermine.inc.php:202] (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 cpg15x_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:323] (0 ms)
    [7] => SELECT group_name FROM cpg15x_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:327] (0 ms)
    [8] => SELECT COUNT(*) FROM cpg15x_categorymap WHERE group_id in (1) [bridge/udb_base.inc.php:340] (0 ms)
    [9] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:329] (0 ms)
    [10] => SELECT user_favpics FROM cpg15x_favpics WHERE user_id = 1 [include/init.inc.php:387] (0 ms)
    [11] => DELETE FROM cpg15x_banned WHERE expiry < '2011-12-12 14:58:09' [include/init.inc.php:443] (0 ms)
    [12] => SELECT null FROM cpg15x_banned WHERE (user_id=1 OR '68.115.41.210' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:459] (0 ms)
    [13] => SELECT category FROM cpg15x_albums WHERE aid = 1 [db_input.php:549] (0 ms)
    [14] => SELECT extension, mime, content, player FROM cpg15x_filetypes [include/functions.inc.php:5809] (0 ms)
    [15] => SELECT COUNT(*) FROM cpg15x_pictures WHERE approved = 'NO' [include/functions.inc.php:2438] (0 ms)
    [16] => SELECT lang_id, abbr FROM cpg15x_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2316] (0 ms)
    [17] => DELETE FROM cpg15x_temp_messages WHERE time < 1323716289 [include/functions.inc.php:4947] (0 ms)
)

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

==========================
POST :
------------------
Array
(
    [method] => html_single
    [album] => 1
    [MAX_FILE_SIZE] => 1048576
    [title] =>
    [caption] =>
    [keywords] =>
    [event] => picture
    [form_token] => 69edfb04afdc6694ede9e5adcfc270ed
    [timestamp] => 1323719877
)

==========================
COOKIE :
------------------
Array
(
    [cpg15x_data] => YTo1OntzOjI6IklEIjtzOjMyOiI0ZGNkZDJjNTU2NWM0OWE4NmEwNDBlMDNjOTViMDhjZiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjEzOiJ1cGxvYWRfbWV0aG9kIjtzOjExOiJodG1sX3NpbmdsZSI7czozOiJsaXYiO2E6MDp7fX0=
    [a2620cdd94be6b9453034abd5fde09f1] => 731b72e7ea92e175cc147a86f2ee7164
    [PHPSESSID] => 96f3346c193c71a2d57cfe53f970fc55
    [0e8bc8538d4b68dbbe04af6de284f908] => 85ac859934ce727f558ba4be90ac6bdb
)

==========================
SESSION :
------------------
Array
(
    [php_captcha] => 22731ed52280ce868494274cf440c1af
)

==========================
VERSION INFO :
------------------
PHP version        5.2.9            OK   
MySQL version      5.0.92-community OK   
Coppermine version 1.5.16           stable

==========================
Module: GD
------------------
Exact version                    2.0.34                     
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                           

==========================
Key config settings
------------------
site_url             http://sokolik.com/cmgallery/               
charset              utf-8                                       
allow_private_albums 1                                           
cookie_name          cpg15x                                     
cookie_path          /                                           
impath                /usr/bin/                                 
lang                 english                                     
main_page_layout     breadcrumb/catlist/alblist/random,2/lastup,2
silly_safe_mode      1                                           
smtp_host                                                       
theme                curve                                       
thumb_method         im                                         

==========================
Plugins
------------------

==========================
Server restrictions
------------------
safe_mode                                                                                                 
safe_mode_exec_dir                                                                                         
safe_mode_gid                                                                                             
safe_mode_include_dir                                                                                     
sql.safe_mode                                                                                             
disable_functions        exec, shellexec, passthru, system, escapeshellcmd, escapeshellarg, allow_url_fopen
file_uploads             1                                                                                 
include_path             .:/usr/lib/php:/usr/local/lib/php                                                 
open_basedir                                                                                               
allow_url_fopen                                                                                           
max_execution_time       30                                                                               
max_input_time           60                                                                               
upload_max_filesize      100M                                                                             
post_max_size            8M                                                                               
memory_limit             40M                                                                               
suhosin.post.max_vars                                                                                     
suhosin.request.max_vars                                                                                   


==========================
Page (performance)
------------------
Parameter        Current    Peak     
Memory usage     831.47 KiB 882.09 KiB
Page generation  54 ms      54 ms     
Page query time  0 ms       0 ms     
Page query count 18         18       


==========================
               

skunkworks

Don't know if this helps...

---SWFUpload Instance Info--- Version: 2.2.0 2009-03-25 Movie Name: SWFUpload_0 Settings: upload_url: /cmgallery/upload.php flash_url: js/swfupload/swfupload.swf?preventswfcaching=1323717133734 use_query_string: false requeue_on_error: false http_success: assume_success_timeout: 0 file_post_name: Filedata post_params: [object Object] file_types: *.* file_types_description: All Files file_size_limit: 1024 KB file_upload_limit: 0 file_queue_limit: 0 debug: true prevent_swf_caching: true button_placeholder_id: browse_button_place_holder button_placeholder: Not Set button_image_url: /cmgallery/images/browse_swf.png button_width: 130 button_height: 20 button_text: Browse... button_text_style: .browse { font-family: Arial,Helvetica,sans-serif; color: #D0CFD0;} button_text_top_padding: 0 button_text_left_padding: 30 button_action: -110 button_disabled: true custom_settings: [object Object] Event Handlers: swfupload_loaded_handler assigned: true file_dialog_start_handler assigned: false file_queued_handler assigned: true file_queue_error_handler assigned: true upload_start_handler assigned: true upload_progress_handler assigned: true upload_error_handler assigned: true upload_success_handler assigned: true upload_complete_handler assigned: true debug_handler assigned: true SWFUpload.SWFObject Plugin settings: minimum_flash_version: 9.0.28 swfupload_load_failed_handler assigned: true SWF DEBUG: SWFUpload Init Complete SWF DEBUG: SWF DEBUG: ----- SWF DEBUG OUTPUT ---- SWF DEBUG: Build Number: SWFUPLOAD 2.2.0 SWF DEBUG: movieName: SWFUpload_0 SWF DEBUG: Upload URL: /cmgallery/upload.php SWF DEBUG: File Types String: *.* SWF DEBUG: Parsed File Types: SWF DEBUG: HTTP Success: 0 SWF DEBUG: File Types Description: All Files (*.*) SWF DEBUG: File Size Limit: 1048576 bytes SWF DEBUG: File Upload Limit: 0 SWF DEBUG: File Queue Limit: 0 SWF DEBUG: Post Params: SWF DEBUG: process=1 SWF DEBUG: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjE2MzI4OTc2Y2RhYjg1MTVjY2Q3ZmJhOGEyMjE5MzIyIjt9 SWF DEBUG: ----- END SWF DEBUG OUTPUT ---- SWF DEBUG: Removing Flash functions hooks (this should only run in IE and should prevent memory leaks) SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.* SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list... SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0 SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1 SWF DEBUG: StartUpload: First file in queue SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0 SWF DEBUG: Global Post Item: album=1 SWF DEBUG: Global Post Item: process=1 SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjE2MzI4OTc2Y2RhYjg1MTVjY2Q3ZmJhOGEyMjE5MzIyIjt9 SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to /cmgallery/upload.php for File ID: SWFUpload_0_0 SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0 SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 418091. Total: 418091 SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data: error|Unable to create thumbnail or reduced size image.|0 SWF DEBUG: Event: uploadComplete : Upload cycle complete. SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.* SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list... SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_1 SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1 SWF DEBUG: StartUpload: First file in queue SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_1 SWF DEBUG: Global Post Item: album=1 SWF DEBUG: Global Post Item: process=1 SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjE2MzI4OTc2Y2RhYjg1MTVjY2Q3ZmJhOGEyMjE5MzIyIjt9 SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to /cmgallery/upload.php for File ID: SWFUpload_0_1 SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_1 SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 418091. Total: 418091 SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_1 Response Received: true Data: error|Unable to create thumbnail or reduced size image.|0 SWF DEBUG: Event: uploadComplete : Upload cycle complete. SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.* SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list... SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_2 SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1 SWF DEBUG: StartUpload: First file in queue SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_2 SWF DEBUG: Global Post Item: album=1 SWF DEBUG: Global Post Item: process=1 SWF DEBUG: Global Post Item: user=YToyOntzOjc6InVzZXJfaWQiO3M6MToiMSI7czo5OiJwYXNzX2hhc2giO3M6MzI6IjE2MzI4OTc2Y2RhYjg1MTVjY2Q3ZmJhOGEyMjE5MzIyIjt9 SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to /cmgallery/upload.php for File ID: SWFUpload_0_2 SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_2 SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_2. Bytes: 418091. Total: 418091 SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_2 Response Received: true Data: error|Unable to create thumbnail or reduced size image.|0 SWF DEBUG: Event: uploadComplete : Upload cycle complete.


skunkworks

Ok - I think I did everything

site
http://sokolik.com/cmgallery/

user tester
password tester

You can see there are some images in that gallary - but I switched it to imagemagic - so uploads will fail now.

thanks
sam


skunkworks

I am at a loss.  this is what hostdime says...


Thank you for your patience.

Please note that the paths would not exist if Imagemagick did not so accessing the lines below in fact do state that Imagemagick does exist on the server:

[root@dime144.dizinc.com ~]$ which convert
/usr/bin/convert
[root@dime144.dizinc.com ~]$ which mogrify
/usr/bin/mogrify

Αndré

http://documentation.coppermine-gallery.net/en/configuration.htm#admin_picture_thumb_advanced_im_path_lunix

So
/usr/bin/
is the correct config value. From the debug output it's already set to that path, so maybe the permissions are set wrongly. That's usually nothing you can fix yourself, but your host.