Advanced search  

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

Pages: [1]   Go Down

Author Topic: The previous file could not be placed  (Read 3340 times)

0 Members and 1 Guest are viewing this topic.

Cousinjack

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
The previous file could not be placed
« on: May 13, 2008, 04:09:51 pm »

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
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: The previous file could not be placed
« Reply #1 on: May 13, 2008, 04:27:01 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: The previous file could not be placed
« Reply #2 on: May 14, 2008, 10:54:48 am »

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

Code: [Select]
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: ;
« Last Edit: May 15, 2008, 04:09:41 pm by Hein Traag »
Logged

Nibbler

  • Guest
Re: The previous file could not be placed
« Reply #3 on: May 14, 2008, 12:01:34 pm »

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

Cousinjack

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: The previous file could not be placed
« Reply #4 on: May 15, 2008, 02:55:40 pm »

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.

Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: The previous file could not be placed
« Reply #5 on: May 15, 2008, 03:12:12 pm »

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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: The previous file could not be placed
« Reply #6 on: May 16, 2008, 01:44:18 pm »

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.


Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: The previous file could not be placed
« Reply #7 on: May 16, 2008, 04:21:04 pm »

You need to pay more attention to the News sections of this site/forum:

http://forum.coppermine-gallery.net/index.php/topic,51882.0.html
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.