coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: JDuc on November 14, 2005, 09:33:45 PM

Title: "previous file could not be palced"
Post by: JDuc on November 14, 2005, 09:33:45 PM
did a quick search and didn't come up with anything, maybe i'm not seeing something?

http://www.tamumc.org/forum/cpg

user: test
pass: test123

seems others have had the same problems...but I'm not getting any errors when in debug mode??
Title: Re: "previous file could not be palced"
Post by: Nibbler on November 14, 2005, 09:49:06 PM
Please configure your gallery as suggested here - http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
Title: Re: "previous file could not be palced"
Post by: JDuc on November 14, 2005, 09:53:35 PM
done - sorry - I did the first half, but not the single file thing....oops!

The file 'albums/userpics/10006/IMG_5578 - 640~1.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 127

Cmd line :
/usr/local/bin/convert -quality 80 -antialias -geometry 100x66 'albums/userpics/10006/IMG_5578 - 640~1.jpg' 'albums/userpics/10006/thumb_IMG_5578 - 640~1.jpg'


The convert program said:


File: /www/t/tamumcorg/htdocs/forum/cpg/db_input.php - Line: 305


Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in /www/t/tamumcorg/htdocs/forum/cpg/include/picmgmt.inc.php on line 171
Title: Re: "previous file could not be palced"
Post by: Nibbler on November 14, 2005, 11:07:45 PM
That error means you have the path to imagemagick wrong. Discover the correct path or try using GD2.
Title: Re: "previous file could not be placed"
Post by: martihas on November 17, 2005, 09:59:48 AM
Hi, I have a similar problem.
Had some trouble starting the uploading at all, but then things worked until I was to place the pictures in an album.
Then I get the error message: "The previous file could not be placed."
Here is the debug info:

Critical error
The file 'albums/userpics/10001/60seals~0.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 127


Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 100x75 'albums/userpics/10001/60seals~0.jpg' 'albums/userpics/10001/thumb_60seals~0.jpg'



The convert program said:
sh: /usr/bin/convert: No such file or directory



File: /home/martihas/public_html/gallery/db_input.php - Line: 305 

---------------------------

USER:
------------------
Array
(
    [ID] => 56ff5270dd4fb725e7cb646aee6e250c
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => *******
    [user_password] => ********
    [user_lastvisit] => 2005-11-17 09:44:01
    [user_regdate] => 2005-11-11 19:26:31
    [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] => 10
    [num_URI_upload] => 10
    [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: "previous file could not be palced"
Post by: Joachim Müller on November 17, 2005, 12:00:02 PM
The same reply then for you as for the other poster:
Quote from: Nibbler on November 14, 2005, 11:07:45 PM
That error means you have the path to imagemagick wrong. Discover the correct path or try using GD2.
Title: Re: "previous file could not be palced"
Post by: JDuc on November 28, 2005, 09:45:05 PM
the path to Image Magik is correct, as per my host....??

I'm still getting the same error ???
Title: Re: "previous file could not be palced"
Post by: Joachim Müller on November 28, 2005, 11:22:39 PM
Quote from: JDuc on November 28, 2005, 09:45:05 PM
the path to Image Magik is correct, as per my host....??
obviously not. The path probably is /usr/bin, as convert is the name of the executable. Do as suggested and use GD, really - it's easier.
Title: Re: "previous file could not be palced"
Post by: JDuc on November 28, 2005, 11:32:19 PM
ok - well I changed it to /usr/bin and I still get the same error - when I switch to GD version 2.x what else do I need to change?  do I have to install it?  do I need to change anything else?

btw - when I just change it to 2.x I get the following when trying to upload:

The file 'albums/userpics/10006/IMG_1873.JPG' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /www/t/tamumcorg/htdocs/forum/cpg/db_input.php - Line: 305


Warning: imagejpeg(): Unable to access albums/userpics/10006/thumb_IMG_1873.JPG in /www/t/tamumcorg/htdocs/forum/cpg/include/picmgmt.inc.php on line 218

Warning: imagejpeg(): Invalid filename 'albums/userpics/10006/thumb_IMG_1873.JPG' in /www/t/tamumcorg/htdocs/forum/cpg/include/picmgmt.inc.php on line 218

Warning: chmod(): Unable to access albums/userpics/10006/thumb_IMG_1873.JPG in /www/t/tamumcorg/htdocs/forum/cpg/include/picmgmt.inc.php on line 224

Warning: chmod(): No such file or directory in /www/t/tamumcorg/htdocs/forum/cpg/include/picmgmt.inc.php on line 224

Warning: getimagesize(): Unable to access albums/userpics/10006/thumb_IMG_1873.JPG in /www/t/tamumcorg/htdocs/forum/cpg/include/picmgmt.inc.php on line 226

Warning: getimagesize(albums/userpics/10006/thumb_IMG_1873.JPG): failed to open stream: No such file or directory in /www/t/tamumcorg/htdocs/forum/cpg/include/picmgmt.inc.php on line 226


thanks for the info!
Title: Re: "previous file could not be palced"
Post by: Nibbler on November 28, 2005, 11:35:38 PM
http://forum.coppermine-gallery.net/index.php?topic=23342.0
Title: Re: "previous file could not be palced"
Post by: JDuc on November 28, 2005, 11:39:32 PM
great - but where is that file? lol

:)
Title: Re: "previous file could not be palced"
Post by: JDuc on November 28, 2005, 11:45:35 PM
didn't fix it

:(
Title: Re: "previous file could not be palced"
Post by: Joachim Müller on November 29, 2005, 12:17:19 AM
Quote from: JDuc on November 28, 2005, 11:39:32 PM
great - but where is that file? lol

:)
don't double nor cross-post. Respect board rules!

Quote from: JDuc on November 28, 2005, 11:45:35 PM
didn't fix it

:(
not a valid error message that could be helpful for supporters.

QuoteCannot execute using backquotes in Safe Mode in ...
Ask your webhost, they appear to have a crappy setup.
Title: Re: "previous file could not be palced"
Post by: JDuc on November 29, 2005, 12:39:06 AM
sorry about double posting - didn't think it would get me shot

by saying it didn't work I'm saying that it gave me the exact same errors - if I posted them again I would be double posting

I'll contact PowWeb AGAIN and tell them what's going on AGAIN and see if they tell me something different this time..... :(