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 Cousinjack, May 13, 2008, 04:09:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cousinjack

I know this has come up before but I just cant get to the bottom og this I've tried everything permissions are set OK
and the image is uploaded OK but couldn't be placed in the album. I'm using Coppermine Photo Gallery v1.4.12
Whats happening !!
HELP

just_some_guy

First thing you should do is to upgrade your gallery to the latest version (1.4.18); there has been a major security flaw discovered in lesser versions. - http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upgrade

Then read this - http://forum.coppermine-gallery.net/index.php/topic,24088.0.html and follow the instructions. Also read this - http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Cousinjack

#2
Hi Thanks for your help
I have a couple of questions

in the link  http://forum.coppermine-gallery.net/index.php/topic,24088.0.html

6. file_uploads - This determines whether or not PHP will allow file uploads. It must be set to 'On'.

I'm not sure where to set this


I can upload the files using batch but whn trying toi place them in the Album I get this error message
Unable to create thumbnail or reduced size image.

Uploading is fine it's just placing them in the Albums thats the problem
attached.
Debug info from page is below

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

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

    [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] => 1
    [num_URI_upload] => 0
    [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
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg1411_filetypes; (0.001s)
    [1] => select * from cpg1411_plugins order by priority asc; (0s)
    [2] => delete from `mcclud89`.cpg1411_sessions where time<1210751132 and remember=0; (0.001s)
    [3] => delete from `mcclud89`.cpg1411_sessions where time<1209545132; (0s)
    [4] => select user_id from `mcclud89`.cpg1411_sessions where session_id=md5("cb8722b45217c26fbe8b58f61076cf5cd022897216b12653794570c451384c4d"); (0s)
    [5] => select user_id as id, user_password as password from `mcclud89`.cpg1411_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `mcclud89`.cpg1411_users AS u INNER JOIN `mcclud89`.cpg1411_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `mcclud89`.cpg1411_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => 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 cpg1411_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg1411_usergroups WHERE group_id= 1 (0s)
    [10] => update `mcclud89`.cpg1411_sessions set time='1210754732' where session_id=md5('cb8722b45217c26fbe8b58f61076cf5cd022897216b12653794570c451384c4d'); (0s)
    [11] => SELECT user_favpics FROM cpg1411_favpics WHERE user_id = 1 (0.003s)
    [12] => DELETE FROM cpg1411_banned WHERE expiry < '2008-05-14 08:45:32' (0.002s)
    [13] => SELECT * FROM cpg1411_banned WHERE (ip_addr='91.85.173.13' OR ip_addr='91.85.173.13' OR user_id=1) AND brute_force=0 (0.003s)
    [14] => SELECT aid, title FROM cpg1411_albums WHERE 1 (0.001s)
    [15] => SELECT COUNT(*) FROM cpg1411_pictures WHERE approved = 'NO' (0.001s)
)

==========================
GET :
------------------
Array
(
    [insert] => 1
)

==========================
POST :
------------------
Array
(
    [d0000] => 23
    [pics] => Array
        (
            [0] => i0000
        )

    [album_lb_id_i0000] => d0000
    [picfile_i0000] => dXBsb2Fkcy8yMDA4L2hhdmVuL21hbHRhMWEuanBn
    [album_lb_id_i0001] => d0000
    [picfile_i0001] => dXBsb2Fkcy8yMDA4L2hhdmVuL1AxMDEwMDIzYS5qcGc=
    [album_lb_id_i0002] => d0000
    [picfile_i0002] => dXBsb2Fkcy8yMDA4L2hhdmVuL1AxMDEwMDY3YS5qcGc=
    [album_lb_id_i0003] => d0000
    [picfile_i0003] => dXBsb2Fkcy8yMDA4L2hhdmVuL1AxMDEwMDg0YS5qcGc=
    [album_lb_id_i0004] => d0000
    [picfile_i0004] => dXBsb2Fkcy8yMDA4L2hhdmVuL1AxMDEwMDg4YS5qcGc=
    [album_lb_id_i0005] => d0000
    [picfile_i0005] => dXBsb2Fkcy8yMDA4L2hhdmVuL1AxMDEwMDkzYS5qcGc=
    [album_lb_id_i0006] => d0000
    [picfile_i0006] => dXBsb2Fkcy8yMDA4L2hhdmVuL1AxMDEwMDk0YS5qcGc=
    [album_lb_id_i0007] => d0000
    [picfile_i0007] => dXBsb2Fkcy8yMDA4L2hhdmVuL1AxMDEwMDk1YS5qcGc=
    [insert] => Insert selected files
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.2 - OK
------------------
mySQL version: 4.1.20
------------------
Coppermine version: 1.4.12(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.12 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support:
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 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
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/share/pear | .:/usr/share/pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
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.096 seconds - 16 queries in 0.012 seconds - Album set : ; Meta set: ;

Nibbler

You have the done the opposite of what was asked and you still have not updated your gallery. Please try again.

Cousinjack

OK yep I know that I havn't upgraded to the new version yet
I can't class myself as a whizz kid on this.

the first thing upgrading askes is First, make a backup (dump) of your database.
I guess this is the MySQL database. But how do I do that ?

Any Help you can give this old man would be gratefully recieved.


just_some_guy

Yes, that means to you need to backup the database where you coppermine tables are stored, download and install the Backup plugin by François Keller and use that to backup it up.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Cousinjack

Thanks for being patient with me.

That Plug In was magic
I have managed to get it all done now completing the backups and uploading the new version cpg1.4.18.
This now allows me to put new files to the new albums.

I guess somthing must have got corrupted in the old verison.



Hein Traag