coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: PJ_56 on December 20, 2006, 10:43:31 AM

Title: Download error - pic generated on the server
Post by: PJ_56 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
Title: Re: Download error - pic generated on the server
Post by: Joachim Müller on December 20, 2006, 10:51:16 AM
Do exactly as suggested in the upload troubleshooting section (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble) of the docs if you need help.
Title: Re: Download error - pic generated on the server
Post by: PJ_56 on December 20, 2006, 01:53:36 PM
Ok, it would be a problem with ImageMagick.
Is imageMagick the only way to upload files ?
Title: Re: Download error - pic generated on the server
Post by: Nibbler 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.
Title: Re: Download error - pic generated on the server
Post by: PJ_56 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

Title: Re: Download error - pic generated on the server
Post by: Nibbler on January 24, 2007, 01:12:06 PM
Update your gallery.
Title: Re: Download error - pic generated on the server
Post by: PJ_56 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
Title: Re: Download error - pic generated on the server
Post by: Nibbler 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.
Title: Re: Download error - pic generated on the server
Post by: PJ_56 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 ;(
Title: Re: Download error - pic generated on the server
Post by: Nibbler 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.