forum.coppermine-gallery.net

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!

Code: [Select]
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
(
    [album] => 7
    [MAX_FILE_SIZE] => 1024000000
    [title] => Mark V SOC
    [caption] =>
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.25-standard
------------------
Coppermine version: 1.3.4
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.25
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -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/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
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 | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.132 seconds - 7 queries in 0.001 seconds - Album set :

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

You can access the gallery using the user:
Username: "Test"
Password: "Test"

Any help would be appreciated.

M

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:
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
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:

Code: [Select]
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
great - but where is that file? lol

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

didn't fix it

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

Quote
Cannot 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..... :(