coppermine-gallery.com/forum

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
        (
           
Title: Re: upload fine, but cant place files in any album
Post by: Joachim Müller on March 06, 2006, 10:43:57 PM
Quote from: Nibbler on March 06, 2006, 01:45:52 PM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Quote4.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