Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: "previous file could not be palced"  (Read 10476 times)

0 Members and 1 Guest are viewing this topic.

JDuc

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 20
    • TAMUMC
"previous file could not be palced"
« 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??
Logged

Nibbler

  • Guest
Re: "previous file could not be palced"
« Reply #1 on: November 14, 2005, 09:49:06 pm »

Please configure your gallery as suggested here - http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
Logged

JDuc

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 20
    • TAMUMC
Re: "previous file could not be palced"
« Reply #2 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
Logged

Nibbler

  • Guest
Re: "previous file could not be palced"
« Reply #3 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.
Logged

martihas

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: "previous file could not be placed"
« Reply #4 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
(
   
  • => SELECT extension, mime, content FROM cpg_filetypes;
  • [1] => SELECT * FROM cpg_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'fd9ab41e47a9ef4f6477a8a000bf404f'
        [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg_banned WHERE expiry < '2005-11-17 10:04:24'
        [5] => SELECT * FROM cpg_banned WHERE ip_addr='129.241.17.125' OR ip_addr='129.241.17.125' OR user_id=1
        [6] => SELECT category FROM cpg_albums WHERE aid='7'
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

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

« Last Edit: November 17, 2005, 10:05:42 am by martihas »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: "previous file could not be palced"
« Reply #5 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.
Logged

JDuc

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 20
    • TAMUMC
Re: "previous file could not be palced"
« Reply #6 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 ???
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: "previous file could not be palced"
« Reply #7 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.
Logged

JDuc

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 20
    • TAMUMC
Re: "previous file could not be palced"
« Reply #8 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!
Logged

Nibbler

  • Guest
Logged

JDuc

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 20
    • TAMUMC
Re: "previous file could not be palced"
« Reply #10 on: November 28, 2005, 11:39:32 pm »

great - but where is that file? lol

:)
Logged

JDuc

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 20
    • TAMUMC
Re: "previous file could not be palced"
« Reply #11 on: November 28, 2005, 11:45:35 pm »

didn't fix it

:(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: "previous file could not be palced"
« Reply #12 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.
Logged

JDuc

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 20
    • TAMUMC
Re: "previous file could not be palced"
« Reply #13 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..... :(
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.