coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: anyholt on October 04, 2005, 06:29:53 AM

Title: Batch upload problems- get image magik error code
Post by: anyholt on October 04, 2005, 06:29:53 AM
I've read the documentation to batch upload, and as far as I can tell, have done everything correctly. When I select my new images, and the destination album, and click upload, all of the images return with broken thumbnails. I click on the broken image link, and get the following result:

Error executing ImageMagick - Return value: 1

Does anyone know what is causing this? Thanks.
Title: Re: Batch upload problems- get image magik error code
Post by: artistsinhawaii on October 04, 2005, 06:36:01 AM
Try setting : Method for resizing images  in your Config setup to GD2.


Is there any particular reason why you need to use Image Magick over GD2?

Dennis
Title: Re: Batch upload problems- get image magik error code
Post by: anyholt on October 05, 2005, 06:27:08 AM
Thanks, I will try that. I have not chosen imagemagik intentionally- I guess it was set as the default.
Title: Re: Batch upload problems- get image magik error code
Post by: Joachim Müller on October 05, 2005, 07:01:29 AM
not exactly - it get's set when you fill in an ImageMagick path on the install screen. If you don't have ImageMagick, there's little point in making up that path. Anyway, go for GD2.
Title: Re: Batch upload problems- get image magik error code
Post by: anyholt on October 05, 2005, 03:36:10 PM
OK... I switched to GD2, and now I get these results when I click on the broken links:

Warning: imagejpeg(): Unable to open 'albums/Wedding 1/tn_martin_0010.jpg' for writing in /home/houstonp/public_html/galleries/include/picmgmt.inc.php on line 218

Warning: chmod(): No such file or directory in /home/houstonp/public_html/galleries/include/picmgmt.inc.php on line 224

Warning: getimagesize(albums/Wedding 1/tn_martin_0010.jpg): failed to open stream: No such file or directory in /home/houstonp/public_html/galleries/include/picmgmt.inc.php on line 226
Unable to create thumbnail or reduced size image.

I have heard about "setting permissions", but the batch upload documentation doesn't talk about it at all. Is this the problem? What do you think? Thanks.

Adam
Title: Re: Batch upload problems- get image magik error code
Post by: Nibbler on October 05, 2005, 03:56:42 PM
Don't use spaces in your folder names.
Title: Re: Batch upload problems- get image magik error code
Post by: anyholt on October 06, 2005, 05:52:16 AM
Okay, I changed the file name to wedding_1 and got the same error after trying to process.
Title: Re: Batch upload problems- get image magik error code
Post by: Joachim Müller on October 06, 2005, 08:53:41 AM
http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
Title: Re: Batch upload problems- get image magik error code
Post by: anyholt on October 15, 2005, 06:31:06 PM
OK, after I try uploading, and get the broken links, this is the debug info at the bottom of the page:

USER:
------------------
Array
(
    [ID] => 84e68f2f479a2d4a9f7b107e367de671
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => admin
    [user_password] => ********
    [user_lastvisit] => 2005-10-15 11:27:02
    [user_regdate] => 2005-10-06 15:43:15
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [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] => 5
    [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] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: Batch upload problems- get image magik error code
Post by: Joachim Müller on October 16, 2005, 11:26:12 PM
I didn't ask for the debug output. The page I refered to clearly says what you need to do if you want us to help. Re-read the tutorial, then post the needed information.
Title: Re: Batch upload problems- get image magik error code
Post by: anyholt on October 17, 2005, 12:26:56 AM
OK...i've done the steps. The user name to login with is:

username: tester
pw: password

Thanks.
Title: Re: Batch upload problems- get image magik error code
Post by: Joachim Müller on October 17, 2005, 12:33:38 AM
don't you think you should have posted something else? How about a link to your site? Don't make it so hard to support you ::).
Title: Re: Batch upload problems- get image magik error code
Post by: anyholt on October 17, 2005, 02:37:29 AM
Sorry:

www.thevenuehouston.com/gallery

user: tester
pw: password
Title: Re: Batch upload problems- get image magik error code
Post by: anyholt on October 17, 2005, 03:20:07 AM
I fixed it. Thanks! For some reason, I had permissions set to 777 for the "gallery" directory, but not for the individual folder that I dropped the images in. It works now. thanks for all the help. ;D