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: Download error - pic generated on the server  (Read 3391 times)

0 Members and 1 Guest are viewing this topic.

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Download error - pic generated on the server
« on: December 20, 2006, 10:43:31 am »

Hello, :(

Impossible to upload a picture,
I can choose a picture, add a category (i can see the picture file on my server) and after validation, i'v got thise message :

"Le fichier précédent n'a pas pu être placé"

"Vous avez placé tous les fichiers avec succès"

What can be the trouble ???

Thanks for your help
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Download error - pic generated on the server
« Reply #1 on: December 20, 2006, 10:51:16 am »

Do exactly as suggested in the upload troubleshooting section of the docs if you need help.
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Download error - pic generated on the server
« Reply #2 on: December 20, 2006, 01:53:36 pm »

Ok, it would be a problem with ImageMagick.
Is imageMagick the only way to upload files ?
Logged

Nibbler

  • Guest
Re: Download error - pic generated on the server
« Reply #3 on: December 20, 2006, 04:31:56 pm »

Imagemagick is not involved in uploading files. It is used to resize the images on the server. As explained in the documentation you must use either ImageMagick or GD. Try switching to GD2 if it is available.
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Download error - pic generated on the server
« Reply #4 on: January 24, 2007, 11:14:33 am »

(always with imagemagick) so now i've got this error when i upload a file :

While executing query "INSERT INTO cpg134_pictures (pid, aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, pic_raw_ip, pic_hdr_ip) VALUES ('', '38', 'userpics/11042/', 'Etat_Espece_v3.pdf', '49523', '49523', '0', '0', '1169633602', '1042', 'Pierre-Jean SCHWALM','test', 'test', 'test', 'YES', 'tet', '', '', '', '142.187.10.119', '142.187.10.119')" on 0

mySQL error: Out of range value adjusted for column 'pid' at row 1

Logged

Nibbler

  • Guest
Re: Download error - pic generated on the server
« Reply #5 on: January 24, 2007, 01:12:06 pm »

Update your gallery.
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Download error - pic generated on the server
« Reply #6 on: January 29, 2007, 02:13:23 pm »

I can't....

Here is the select, problem is the 'pid'. If i delete it from the select it's ok !!!!

INSERT INTO cpg134_pictures (pid, aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, pic_raw_ip, pic_hdr_ip) VALUES ('', '29', 'userpics/11042/', 'nidcolore~3.JPG', '60180', '80749', '640', '480', '1170076346', '1042', 'Pierre-Jean SCHWALM','nid coloré', '', '', 'YES', '', '', '', '', '142.187.10.119', '142.187.10.119')

pid is an autoincrement field, so why is it a problem in the select ????

please, send me an answer
Logged

Nibbler

  • Guest
Re: Download error - pic generated on the server
« Reply #7 on: January 29, 2007, 02:27:15 pm »

I already gave you the answer - update your gallery. This is an old bug and was fixed long ago.
Logged

PJ_56

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Download error - pic generated on the server
« Reply #8 on: January 29, 2007, 02:42:58 pm »

Upload.php file of cpg 1.4.10 is the same. so are you sure i have to update cpg ? I have modify some files to integer it in my intranet.... it won't be very easy to do that ;(
Logged

Nibbler

  • Guest
Re: Download error - pic generated on the server
« Reply #9 on: January 29, 2007, 02:46:42 pm »

That's the drawback of modifying the script, you have to merge in your changes to the updates. The fix is in include/picmgmt.inc.php, not upload.php. Updating is mandatory, previous versions have bugs and security issues.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.