THe previous file could not be placed THe previous file could not be placed
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

THe previous file could not be placed

Started by starbuckk, March 19, 2007, 02:08:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

starbuckk

Problem I am having is files are uploading, I am finding them in the folder on the server, but am getting this message:

The previous file could not be placed.

You have successfully placed all the files.


The files do not appear in the gallery.
http://www.starlandgroup.net (Gallery)

USER:
------------------
Array
(
    [ID] => 86eb634a6ab8ea59e8f2dbf4fcc3da46
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 62
    [user_name] => starbuck
    [groups] => Array
        (
            [0] => 1
        )

    [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] => 1
    [num_URI_upload] => 1
    [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
(
    [0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
    [1] => select * from cpg_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg_bridge (0s)
    [3] => 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) (0s)
    [4] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
    [5] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 62 (0s)
    [6] => DELETE FROM cpg_banned WHERE expiry < '2007-03-19 00:46:40' (0s)
    [7] => SELECT * FROM cpg_banned WHERE (ip_addr='75.10.111.163' OR ip_addr='75.10.111.163' OR user_id=62) AND brute_force=0 (0s)
    [8] => SELECT aid, title FROM cpg_albums WHERE category < 10000 ORDER BY title (0s)
    [9] => SELECT aid, title FROM cpg_albums WHERE category='10062' ORDER BY title (0s)
    [10] => SELECT encoded_string FROM cpg_temp_data WHERE unique_ID = '26fc6533' (0s)
    [11] => UPDATE cpg_temp_data SET encoded_string = 'YTowOnt9' WHERE unique_ID = '26fc6533' (0s)
    [12] => SELECT category FROM cpg_albums WHERE aid='2' (0s)
    [13] => DELETE FROM cpg_temp_data WHERE unique_ID = '26fc6533' (0s)
    [14] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
)

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

==========================
POST :
------------------
Array
(
    [album] => 2
    [title] => Test
    [caption] => test
    [keywords] => test
    [control] => phase_2
    [unique_ID] => 26fc6533
    [debugtext] => USER:
------------------
Array
(
    [ID] => 86eb634a6ab8ea59e8f2dbf4fcc3da46
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 62
    [user_name] => starbuck
    [groups] => Array
        (
            [0] => 1
        )

    [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] => 1
    [num_URI_upload] => 1
    [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
(
    [0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
    [1] => select * from cpg_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg_bridge (0s)
    [3] => 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) (0s)
    [4] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
    [5] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 62 (0s)
    [6] => DELETE FROM cpg_banned WHERE expiry < '2007-03-19 00:46:29' (0s)
    [7] => SELECT * FROM cpg_banned WHERE (ip_addr='75.10.111.163' OR ip_addr='75.10.111.163' OR user_id=62) AND brute_force=0 (0s)
    [8] => SELECT aid, title FROM cpg_albums WHERE category < 10000 ORDER BY title (0s)
    [9] => SELECT aid, title FROM cpg_albums WHERE category='10062' ORDER BY title (0s)
    [10] => SELECT encoded_string FROM cpg_temp_data WHERE unique_ID = '26fc6533' (0s)
    [11] => UPDATE cpg_temp_data SET encoded_string = 'YToxOntpOjA7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czoxMzoiUmFkaW9fMDAxLmpwZyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfZGRlMWE2ZmUuanBnIjtzOjEyOiJwcmV2aWV3X3BhdGgiO3M6MzQ6Ii4vYWxidW1zL2VkaXQvcHJldmlld18zZDYwYjBkYi5qcGciO319' WHERE unique_ID = '26fc6533' (0s)
    [12] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
    [13] => SELECT cat.name FROM cpg_categories cat, cpg_albums alb WHERE alb.aid='2' AND cat.cid=alb.category (0s)
    [14] => SELECT cat.name FROM cpg_categories cat, cpg_albums alb WHERE alb.aid='3' AND cat.cid=alb.category (0s)
)

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

==========================
POST :
------------------
Array
(
    [unique_ID] => 26fc6533
    [control] => phase_2
    [debugtext] => USER:
------------------
Array
(
    [ID] => 86eb634a6ab8ea59e8f2dbf4fcc3da46
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 62
    [user_name] => starbuck
    [groups] => Array
        (
            [0] => 1
        )

    [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] => 1
    [num_URI_upload] => 1
    [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
(
    [0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
    [1] => select * from cpg_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg_bridge (0s)
    [3] => 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) (0s)
    [4] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
    [5] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 62 (0s)
    [6] => DELETE FROM cpg_banned WHERE expiry < '2007-03-19 00:46:24' (0s)
    [7] => SELECT * FROM cpg_banned WHERE (ip_addr='75.10.111.163' OR ip_addr='75.10.111.163' OR user_id=62) AND brute_force=0 (0s)
    [8] => SELECT aid, title FROM cpg_albums WHERE category < 10000 ORDER BY title (0s)
    [9] => SELECT aid, title FROM cpg_albums WHERE category='10062' ORDER BY title (0s)
    [10] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
    [11] => SELECT unique_ID FROM cpg_temp_data (0s)
    [12] => INSERT INTO cpg_temp_data VALUES ('26fc6533', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czoxMzoiUmFkaW9fMDAxLmpwZyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfZGRlMWE2ZmUuanBnIjt9fQ==', '1174265184') (0s)
)

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

==========================
POST :
------------------
Array
(
    [URI_array] => Array
        (
            [0] =>
        )

    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.6 - OK
------------------
mySQL version: 4.1.21-standard
------------------
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 1
Active Links 3
Client API version 4.1.21
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 | dl,system,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,show_source | dl,system,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,show_source
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home/starlan:/usr/lib/php:/usr/local/lib/php:/tmp | 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.165 seconds - 13 queries in 0 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.6 - OK
------------------
mySQL version: 4.1.21-standard
------------------
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 1
Active Links 3
Client API version 4.1.21
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 | dl,system,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,show_source | dl,system,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,show_source
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home/starlan:/usr/lib/php:/usr/local/lib/php:/tmp | 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.231 seconds - 15 queries in 0 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.6 - OK
------------------
mySQL version: 4.1.21-standard
------------------
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 1
Active Links 3
Client API version 4.1.21
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 | dl,system,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,show_source | dl,system,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,show_source
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home/starlan:/usr/lib/php:/usr/local/lib/php:/tmp | 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.234 seconds - 15 queries in 0 seconds - Album set : ; Meta set: ;

Joachim Müller

Do not post debug_output unless requested. Instead, do exactly as suggested in the upload troubleshooting section of the docs.

starbuckk

Forgot to post the test user info. login testuser, password testuser.

Must log in from the main page as it is a bridged install.

Joachim Müller


starbuckk

Ugh.. Got it now. Thanks for your patience.

Joachim Müller

Error message is
QuoteThe file 'albums/userpics/Beispiel.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 1

Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 100x74


The convert program said:
convert: option requires an argument `-geometry'.
(you could have found out yourself). Did you set particular command line options for ImageMagick except the default "-antialias"? Try using "GD2" as "Method for resizing images".

starbuckk

Well perhaps I could have gotten to that error but its not likely I'd have had a clue what it meant.  :o I will look in the docs tonight when I am where I have access,  to see if I can find this error listed and better understand it, and how to apply the information you just gave me.

Honestly, this package was autoinstalled by RoutHost's (www.routhost.com) Fantastico system as part of the scripts that they provide pre-loaded.  If this was an error that was likely generated by their install process, I will forward this to their customer support to have them repair the installation scripts to prevent further issues like this. But at this point I'm not sure I can explain it thoroughly.

Thanks for the info.

starbuckk

Actually I wonder if the Joomla Bridge scripts caused this. They replace some of the delivered scripts. Hmmm...  Need to find the file where that is done.

starbuckk

Ok changing the method to GD2 fixed this issue...but now I"m getting
------
The selected album/file does not exist !

File: /home/starlan/public_html/coppermine/include/functions.inc.php - Line: 1330
-------

Now, here is the odd thing:  it IS storing the file, apparently in the album, as when I go to back to the Home area, I see the resulting picture, despite this error message.   ???

Joachim Müller

Quote from: starbuckk on March 20, 2007, 08:56:40 PM
Honestly, this package was autoinstalled by RoutHost's (www.routhost.com) Fantastico system as part of the scripts that they provide pre-loaded.
Fantastico installs are not supported - they are known to be buggy. The only supported install method is the one suggested in our docs. I suggest performing an update (although the version numbers don't seem to differ).

Quote from: starbuckk on March 21, 2007, 05:21:43 AM
The selected album/file does not exist !

File: /home/starlan/public_html/coppermine/include/functions.inc.php - Line: 1330
The test upload I performed appears to be successfull, I get
QuoteYour file was uploaded successfully.

It will be visible after admin approval.
It would have made sense if you would have turned off admin approval for the group the test user account is in; I would have been able to actually help you. Please don't make it so hard for supporters to help you ::).

Joachim

P.S. I edited your initial posting, removing the debug_output, as it only clutters this thread.

starbuckk

Quote from: GauGau on March 21, 2007, 07:58:07 AM
It would have made sense if you would have turned off admin approval for the group the test user account is in; I would have been able to actually help you. Please don't make it so hard for supporters to help you ::).

If I may suggest, since you point very strictly to EXACTLY following instructions, perhaps that detail should be included in your troubleshooting notes. 

I have a resolution now.

Joachim Müller

Marking thread as "solved" then. For the benefit of others with similar issues, you should have posted what you did to solve this.

liberte

GauGau is right Starbuck
You are using their contribution freely and do not share your solution like a smug.
You should share your solution.