forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: adllop on January 03, 2007, 08:30:41 pm

Title: "Previous Image Could Not Be Placed"
Post by: adllop on January 03, 2007, 08:30:41 pm
Hello, on my gallery I cannot upload pictures, or better said, I can upload them, but they can't be placed. I've set the permissions, and I've edited my configuration to allow all types of images. Whenever I go and try to upload an image it says "Image Uploaded Successfully", I  input the picture information, and when I click Next, it gives me a message saying

"Previous image could not be placed"
"You have successfully placed all files"

That's it, no error message, no nothing, just this.
Any ideas on what's causing this?

Thanks
Title: Re: "Previous Image Could Not Be Placed"
Post by: HeatherR on January 03, 2007, 10:12:27 pm
Yes..I really need to know about this too. The gallery was working fine yesterday and then suddenly today we keep getting this message. I can't figure out why though. Any help would be appreciated!
Title: Re: "Previous Image Could Not Be Placed"
Post by: HeatherR on January 03, 2007, 10:37:48 pm
nevermind..I scrolled to the bottom of the page and found a post from someone else who had the same problem and how it try and fix it.
Title: Re: "Previous Image Could Not Be Placed"
Post by: HeatherR on January 03, 2007, 10:58:02 pm
ok..so I did what it said in the other post about re-applying write permissions and it didn't work. This is the debug info i'm getting....

USER:
------------------
Array
(
    [ID] => 6603c38fdd052bac0112823a871baadb
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Heather_R
    [groups] => Array
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [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] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [album] => 1
    [title] => Family Photo
    [caption] =>
    [keywords] =>
    [control] => phase_2
    [unique_ID] => 3322b382
    [debugtext] => USER:
------------------
Array
(
    [ID] => 6603c38fdd052bac0112823a871baadb
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Heather_R
    [groups] => Array
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [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] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [unique_ID] => 3322b382
    [control] => phase_2
    [debugtext] => USER:
------------------
Array
(
    [ID] => 6603c38fdd052bac0112823a871baadb
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Heather_R
    [groups] => Array
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [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] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [URI_array] => Array
        (
            [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.4 - OK
------------------
mySQL version: 4.0.27-standard-log
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.25
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/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 | 50000 | 50000
max_input_time | -1 | -1
upload_max_filesize | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 0.338 seconds - 19 queries in 0.019 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.4 - OK
------------------
mySQL version: 4.0.27-standard-log
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.25
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/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 | 50000 | 50000
max_input_time | -1 | -1
upload_max_filesize | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 0.267 seconds - 20 queries in 0.034 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.4 - OK
------------------
mySQL version: 4.0.27-standard-log
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.25
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/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 | 50000 | 50000
max_input_time | -1 | -1
upload_max_filesize | 20M | 20M
post_max_size | 8M | 8M
==========================
Page generated in 0.271 seconds - 21 queries in 0.036 seconds - Album set : ; Meta set: ;


My board: http://community.club-mom.org/photo/index.php
Login: Test
Pass: test


Any help would be greatly appreciated!
Title: Re: "Previous Image Could Not Be Placed"
Post by: Nibbler on January 03, 2007, 11:14:03 pm
Works fine for me. Try clearing your cache, using a different browser etc.
Title: Re: "Previous Image Could Not Be Placed"
Post by: HeatherR on January 03, 2007, 11:28:57 pm
I changed browsers and that didn't work. I may sound like an idiot but i'm new to all this..how do I clear my cache? I usually have my husband do this stuff but he's at work and I wanted to try and attemp to fix it on my own. Thanx for any more help :)
Title: Re: "Previous Image Could Not Be Placed"
Post by: adllop on January 04, 2007, 12:38:41 am
When I followed the directions in the CPG documentation for Uploading Troubles, I was given this message when I tried to upload a file.


Quote
The file 'albums/userpics/10001/porkchopssiggie.png' can't be inserted in the album

Error executing ImageMagick - Return value: 2

Cmd line :
convert -quality 80 -antialias -geometry 100x30 'albums/userpics/10001/porkchopssiggie.png' 'albums/userpics/10001/thumb_porkchopssiggie.png'


The convert program said:


File: /hosted/subs/ulmb.com/s/g/sgaweb/public_html/m/e107_plugins/coppermine_menu/db_input.php - Line: 305
Title: Re: "Previous Image Could Not Be Placed"
Post by: Nibbler on January 04, 2007, 12:41:26 am
You need to enter the path to imagemagick in config or switch to GD2.
Title: Re: "Previous Image Could Not Be Placed"
Post by: HeatherR on January 04, 2007, 01:00:18 am
not sure..we'll see if it works but we think the reason the pictures weren't uploading was because the files were too large. I uploaded a smaller file and it uploaded just fine.
Title: Re: "Previous Image Could Not Be Placed"
Post by: ballackfanatka on January 17, 2007, 11:11:18 pm
i get exactly the same problem and im dumb at all this so please someone tell me what to do,.... i already checked the Upload troubleshooting documentation did what it sais and i get the message:


The file 'albums/userpics/10001/2020375_b~0.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 127


Cmd line :
convert -quality 80 -antialias -geometry 100x74 'albums/userpics/10001/2020375_b~0.jpg' 'albums/userpics/10001/thumb_2020375_b~0.jpg'



The convert program said:
sh: convert: command not found



File: /vol/home2/sites/site1/web/ballackfanatkaphotos/db_input.php - Line: 402

Title: Re: "Previous Image Could Not Be Placed"
Post by: ballackfanatka on January 17, 2007, 11:16:07 pm
ok people so the thing of changing to the gd 2 works!!!! did it thanks for the help!