critical error - cannot create thumbnails or resize image critical error - cannot create thumbnails or resize image
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

critical error - cannot create thumbnails or resize image

Started by bushmaster, November 23, 2010, 06:04:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bushmaster

i have checked the permissions on image and include folders and set them to 777.still i cannot upload pictures of any size.my gallery is http://fecamds.org/photo_gallery/

username: test
password: operator

pleasee i need help urgently.thanks

Αndré

Flash uploader returns
QuoteUnable to create thumbnail or reduced size image.

Please enable debug mode.

agatek

I have the same problem. 1.5.8. It happens for both flash and standard uploading. Below the outputs for the standard one. Site information replaced.


Critical error
Unable to create thumbnail or reduced size image.

File: /home/xxxxxx/public_html/xxxxxxxx/db_input.php - Line: 664





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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1Critical error
Unable to create thumbnail or reduced size image.

File: /home/xxxxxx/public_html/xxxxxxxx/db_input.php - Line: 664


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

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => agatek
    [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
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [allowed_albums] => Array
        (
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT name, value FROM cpg_config [include/init.inc.php:181] (0 ms)
    [1] => SELECT * FROM cpg_plugins ORDER BY priority [include/plugin_api.inc.php:54] (0 ms)
    [2] => SELECT user_id, time FROM `amuamu_copp2`.cpg_sessions WHERE session_id = 'ca8caa912789bee143270dd0c4fc0f9b' [bridge/coppermine.inc.php:264] (0 ms)
    [3] => SELECT user_id, user_password FROM `amuamu_copp2`.cpg_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 `amuamu_copp2`.cpg_users AS u LEFT JOIN `amuamu_copp2`.cpg_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 `amuamu_copp2`.cpg_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 cpg_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:321] (0 ms)
    [7] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:325] (0 ms)
    [8] => UPDATE `amuamu_copp2`.cpg_sessions SET time = UNIX_TIMESTAMP() WHERE session_id = 'ca8caa912789bee143270dd0c4fc0f9b' [bridge/coppermine.inc.php:321] (0 ms)
    [9] => UPDATE `amuamu_copp2`.cpg_users SET user_lastvisit = NOW() WHERE user_id = '1' [bridge/coppermine.inc.php:325] (0 ms)
    [10] => SELECT lang_id FROM cpg_languages WHERE enabled='YES' [include/init.inc.php:329] (0 ms)
    [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 [include/init.inc.php:387] (0 ms)
    [12] => DELETE FROM cpg_banned WHERE expiry < '2010-11-25 00:56:02' [include/init.inc.php:443] (0 ms)
    [13] => SELECT null FROM cpg_banned WHERE (user_id=1 OR '220.255.1.33' LIKE ip_addr OR '' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:459] (0 ms)
    [14] => SELECT category FROM cpg_albums WHERE aid = 3 [db_input.php:539] (0 ms)
    [15] => SELECT extension, mime, content, player FROM cpg_filetypes [include/functions.inc.php:5780] (0 ms)
    [16] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' [include/functions.inc.php:2409] (0 ms)
    [17] => SELECT lang_id, abbr FROM cpg_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2315] (0 ms)
    [18] => DELETE FROM cpg_temp_messages WHERE time < 1290664562 [include/functions.inc.php:4911] (0 ms)
)

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

==========================
POST :
------------------
Array
(
    [method] => html_single
    [album] => 3
    [MAX_FILE_SIZE] => 1048576
    [title] =>
    [caption] =>
    [keywords] =>
    [event] => picture
    [form_token] => cac41a6519bd38ec535b93b0d3917333
    [timestamp] => 1290668137
)

==========================
COOKIE :
------------------
Array
(
    [cpg15x_data] => YTo0OntzOjI6IklEIjtzOjMyOiJlZmNkYjZmMjA1MDVkODIxYzg1MmQ2YTZmNzMxNGMzZCI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjEzOiJ1cGxvYWRfbWV0aG9kIjtzOjExOiJodG1sX3NpbmdsZSI7fQ==
    [a8e23e52452192296462b6338f04279e] => f8343f012f38f8b1fb7f1a18977a7f27
    [g3sid] => 65da2d37bb99952d2d97689372629d59e0cb024a~38baa609be78b6e83a60537dff81e007
)

==========================
VERSION INFO :
------------------
PHP version        5.2.9            OK   
MySQL version      5.0.91-community OK   
Coppermine version 1.5.8            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://aaa.ccc.ddd.com/Album/
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      0                                           
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        system, exec, shell_exec, passthru, escapeshellcmd, popen, pcntl_exec
file_uploads             1                                                                   
include_path             .:/usr/lib/php:/usr/local/lib/php                                   
open_basedir                                                                                 
allow_url_fopen          1                                                                   
max_execution_time       30                                                                   
max_input_time           60                                                                   
upload_max_filesize      2M                                                                   
post_max_size            8M                                                                   
memory_limit             64M                                                                 
suhosin.post.max_vars    1000                                                                 
suhosin.request.max_vars 1000                                                                 


==========================
Page (performance)
------------------
Parameter        Current  Peak   
Memory usage     5.52 MiB 6.35 MiB
Page generation  67 ms    67 ms   
Page query time  0 ms     0 ms   
Page query count 19       19     


==========================
               
    [user_name] => agatek
    [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
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [allowed_albums] => Array
        (
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT name, value FROM cpg_config [include/init.inc.php:181] (0 ms)
    [1] => SELECT * FROM cpg_plugins ORDER BY priority [include/plugin_api.inc.php:54] (0 ms)
    [2] => SELECT user_id, time FROM `amuamu_copp2`.cpg_sessions WHERE session_id = 'ca8caa912789bee143270dd0c4fc0f9b' [bridge/coppermine.inc.php:264] (0 ms)
    [3] => SELECT user_id, user_password FROM `amuamu_copp2`.cpg_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 `amuamu_copp2`.cpg_users AS u LEFT JOIN `amuamu_copp2`.cpg_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 `amuamu_copp2`.cpg_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 cpg_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:321] (0 ms)
    [7] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:325] (0 ms)
    [8] => UPDATE `amuamu_copp2`.cpg_sessions SET time = UNIX_TIMESTAMP() WHERE session_id = 'ca8caa912789bee143270dd0c4fc0f9b' [bridge/coppermine.inc.php:321] (0 ms)
    [9] => UPDATE `amuamu_copp2`.cpg_users SET user_lastvisit = NOW() WHERE user_id = '1' [bridge/coppermine.inc.php:325] (0 ms)
    [10] => SELECT lang_id FROM cpg_languages WHERE enabled='YES' [include/init.inc.php:329] (0 ms)
    [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 [include/init.inc.php:387] (0 ms)
    [12] => DELETE FROM cpg_banned WHERE expiry < '2010-11-25 00:56:02' [include/init.inc.php:443] (0 ms)
    [13] => SELECT null FROM cpg_banned WHERE (user_id=1 OR '220.255.1.33' LIKE ip_addr OR '' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:459] (0 ms)
    [14] => SELECT category FROM cpg_albums WHERE aid = 3 [db_input.php:539] (0 ms)
    [15] => SELECT extension, mime, content, player FROM cpg_filetypes [include/functions.inc.php:5780] (0 ms)
    [16] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' [include/functions.inc.php:2409] (0 ms)
    [17] => SELECT lang_id, abbr FROM cpg_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2315] (0 ms)
    [18] => DELETE FROM cpg_temp_messages WHERE time < 1290664562 [include/functions.inc.php:4911] (0 ms)
)

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

==========================
POST :
------------------
Array
(
    [method] => html_single
    [album] => 3
    [MAX_FILE_SIZE] => 1048576
    [title] =>
    [caption] =>
    [keywords] =>
    [event] => picture
    [form_token] => cac41a6519bd38ec535b93b0d3917333
    [timestamp] => 1290668137
)

==========================
COOKIE :
------------------
Array
(
    [cpg15x_data] => YTo0OntzOjI6IklEIjtzOjMyOiJlZmNkYjZmMjA1MDVkODIxYzg1MmQ2YTZmNzMxNGMzZCI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjEzOiJ1cGxvYWRfbWV0aG9kIjtzOjExOiJodG1sX3NpbmdsZSI7fQ==
    [a8e23e52452192296462b6338f04279e] => f8343f012f38f8b1fb7f1a18977a7f27
    [g3sid] => 65da2d37bb99952d2d97689372629d59e0cb024a~38baa609be78b6e83a60537dff81e007
)

==========================
VERSION INFO :
------------------
PHP version        5.2.9            OK   
MySQL version      5.0.91-community OK   
Coppermine version 1.5.8            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://aaa.ccc.ddd.com/Album/
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      0                                           
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        system, exec, shell_exec, passthru, escapeshellcmd, popen, pcntl_exec
file_uploads             1                                                                   
include_path             .:/usr/lib/php:/usr/local/lib/php                                   
open_basedir                                                                                 
allow_url_fopen          1                                                                   
max_execution_time       30                                                                   
max_input_time           60                                                                   
upload_max_filesize      2M                                                                   
post_max_size            8M                                                                   
memory_limit             64M                                                                 
suhosin.post.max_vars    1000                                                                 
suhosin.request.max_vars 1000                                                                 


==========================
Page (performance)
------------------
Parameter        Current  Peak   
Memory usage     5.52 MiB 6.35 MiB
Page generation  67 ms    67 ms   
Page query time  0 ms     0 ms   
Page query count 19       19     


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

Nibbler

You can't use ImageMagick with exec disabled. Switch to GD2.


bonvilston

I have never used Coppermine before. I have just installed v1.5.10 and also got the critical error message about not being able to create thumbnails. When I made the changed suggested in the faqs on this I got an error message saying problem in db_input.php line 666. Do I need to give more details ?

Αndré

bonvilston, please upgrade to cpg1.5.12, have a look at the upload troubleshooting docs and start a new thread after reading the board rules if you still have problems.