coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: greggles1975 on April 11, 2007, 11:19:31 AM

Title: Changing from ImageMagick to GD 2.x
Post by: greggles1975 on April 11, 2007, 11:19:31 AM
Hi,  my hosting service doesn't appear to support ImageMagick anymore.  So I am going to use GD 2.x for the image manipulation when uploading pictures.

I'm getting an error when uploading a picture which look like it's related to a missing database column.  The picture is modifed, with thumbnails created etc, but the pictures are left in the /albums/userpics and not moved into the /albums/userpics/10001 dir with all the other ones.

Are there some DB changes I need to make to accomodate using GD 2.x, and if so will it affect images which have already been uploaded with ImageMagick?

Here is the SQL error message, followed by the debug info:

While executing query "INSERT INTO cpg_pictures (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, position) VALUES ('20', 'userpics/', 'egypt224.jpg', '461708', '480009', '1360', '2048', '1176280572', '1', 'Admin','', '', '', 'YES', '', '', '', '', '125.239.206.110', '125.239.206.110', '0')" on 0

mySQL error: Unknown column 'position' in 'field list'



******************************Debug info************************************************

USER:
------------------
Array
(
    [ID] => 6034c8f39f3d72dcdaf9fb7462825196
    [am] => 1
    [lap] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Admin
    [groups] => Array
        (
           
Title: Re: Changing from ImageMagick to GD 2.x
Post by: Joachim Müller on April 11, 2007, 12:45:45 PM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
http://forum.coppermine-gallery.net/index.php?action=search2;search=Unknown%20column%20'position'%20in%20'field%20list'