forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: allanmoller on March 06, 2006, 10:46:46 am

Title: upload fine, but cant place files in any album
Post by: allanmoller on March 06, 2006, 10:46:46 am
hi, hope anyone can help new at php.

i used to be able to upload pictures to http://www.kazam.dk/billeder/index.php my page. but suddenly i get an error. i can upload but it will not place the file.

i have change every back to fack default but i still cant upload.

also i cant mass upload pictures. every pic is under the limited size
Title: Re: upload fine, but cant place files in any album
Post by: Nibbler on March 06, 2006, 01:45:52 pm
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble

Also update your gallery.
Title: Re: upload fine, but cant place files in any album
Post by: allanmoller on March 06, 2006, 02:37:15 pm
still dosnt work.

user: test2
kode: fisse
Title: Re: upload fine, but cant place files in any album
Post by: allanmoller on March 06, 2006, 03:10:20 pm
USER:
------------------
Array
(
    [ID] => 47c9308ce72f1fafd0ec3af8b996c630
    [am] => 1
    [lang] => danish
)

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

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

==========================
Queries:
------------------
Array
(
    [album] => 13
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.24_Debian-10sarge1-log
------------------
Coppermine version: 1.4.4(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
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.0.24
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.2
Linked Version 1.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /surely/you/must/be/joking | /surely/you/must/be/joking
safe_mode_gid | Off | Off
safe_mode_include_dir | /usr/lib/php | /usr/lib/php
safe_mode_exec_dir | /surely/you/must/be/joking | /surely/you/must/be/joking
sql.safe_mode | Off | Off
disable_functions | disk_total_space, diskfreespace | disk_total_space, diskfreespace
file_uploads | On | On
include_path | .:/usr/lib/php | .:/usr/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/b1sendmail -t -i | /usr/sbin/b1sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 12M | 12M
post_max_size | 12M | 12M
==========================
Page generated in 1.08 seconds - 19 queries in 0.001 seconds - Album set : ; Meta set: ;
Title: Re: upload fine, but cant place files in any album
Post by: Joachim Müller on March 06, 2006, 10:43:57 pm
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Quote
4.11.4 Upload troubleshooting

If you are experiencing issues with coppermine's upload process, temporarily change your coppermine settings as suggested below to get more detailed error messages:

    * Go to your coppermine page and log in as admin
    * Go to the config screen
    * Scroll to the bottom of the page
    * Expand the "Maintenance settings" section by clicking on it
    * Enable debug mode for everyone
    * Leave display of notices switched off
    * Save the new settings by clicking on "Save new configuration"
    * Go to the "groups" panel
    * Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")
    * Save your new settings

Then try to upload (using http uploads, even if you experienced troubles using another upload method) - you should get a more detailed error message that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.
When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested.
Do exactly as suggested.
Title: Re: upload fine, but cant place files in any album
Post by: allanmoller on March 07, 2006, 04:39:03 pm
The file 'albums/userpics/10001/00.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 127


Cmd line :
convert -quality 80 -antialias -geometry 100x75 'albums/userpics/10001/00.jpg' 'albums/userpics/10001/thumb_00.jpg'



The convert program said:



File: /customers/kazam.dk/kazam.dk/httpd.www/billeder/db_input.php - Line: 391

this is what it says
Title: Re: upload fine, but cant place files in any album
Post by: Nibbler on March 07, 2006, 04:45:00 pm
127 means you either don't have imagemagick installed or you set the path wrong.
Title: Re: upload fine, but cant place files in any album
Post by: allanmoller on March 07, 2006, 04:59:36 pm
i havnt used imagemagick before, and then it worked fine. the error should be in this line coppermine says

            cpg_die(CRITICAL_ERROR, sprintf($lang_db_input_php['err_insert_pic'], $uploaded_pic) . '<br /><br />' . $ERROR, __FILE__, __LINE__, true);

for me it looks like it cant decrease the pic, but what do i know.  :)
Title: Re: upload fine, but cant place files in any album
Post by: allanmoller on March 07, 2006, 05:04:18 pm
hmmm found the mistake thx to both of you, the error was me i had under config said that i used imagemagick wich i didnt, changed it to gd version 2,x

and then it worked. thx  ;D