forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: KryptonSite on July 04, 2008, 11:15:00 pm

Title: [Solved]: Uploading error
Post by: KryptonSite on July 04, 2008, 11:15:00 pm
I'm getting an error that I'm seeing mentioned on many forums but am still unable to find a valid fix. To my knowledge I have followed the instructions in the Coppermine documentation on how to fix this.

This is the error message I get:

"Critical error
The file 'albums/userpics/10001/ad-heroes.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /chroot/home/herosite/herosite.net/html/gallery/db_input.php - Line: 402"

The debug file I get has this:

USER:
------------------
Array
(
    [ID] => 552cac8c8451caa9b6585e2388e000f6
    [am] => 1
    [lang] => english
)

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

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [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] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [album] => 62
    [MAX_FILE_SIZE] => 1048576
    [title] =>
    [caption] =>
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.8 - OK
------------------
mySQL version: 4.1.22
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 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
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
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 | no value | no value
file_uploads | On | On
include_path | .:/usr/share/pear | .:/usr/share/pear
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 | 300 | 300
max_input_time | 60 | 60
upload_max_filesize | 24M | 24M
post_max_size | 8M | 8M
==========================
Page generated in 0.031 seconds - 16 queries in 0.002 seconds - Album set : ; Meta set: ;

----

The gallery is at http://www.herosite.net/gallery

I have created a test account as requested in the documentation; I don't know if or where I am supposed to post the login/password, so if someone can take a look I guess the thing to do would be to PM me.

Any help would be GREATLY appreciated. I believe I am using 1.4.10.
Title: Re: Uploading error
Post by: KryptonSite on July 04, 2008, 11:16:17 pm
I should also add, I checked chmod permissions and it's 777 in all of the relevant directories.
Title: Re: Uploading error
Post by: Nibbler on July 04, 2008, 11:46:18 pm
You had your setting for 'Max width or height of an intermediate picture/video' at 1 pixel. I set it to 400 and it works now. Update your gallery so this does not happen again.
Title: Re: Uploading error
Post by: KryptonSite on July 04, 2008, 11:48:22 pm
This issue had been bugging me for months and you were able to answer so quickly. Thank you very much!
Title: Re: [Solved]: Uploading error
Post by: Joachim Müller on July 05, 2008, 08:36:42 am
http://forum.coppermine-gallery.net/index.php/topic,51927.0.html