coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Chad-wl on March 16, 2007, 04:01:54 AM

Title: Unable to upload after server move, but everything else works ok.
Post by: Chad-wl on March 16, 2007, 04:01:54 AM
I've searched, and nothing else (Except for another un-answered post) matched.

I've moved my coppermine gallery from my work server to a 1and1 account.

When I moved, things looked fine, and I was able to upload a single photo.

When I tried to batch add using the xp publish, it uploaded with no errors and created a new album, but it didn't upload any of the files.

I switched to manual upload and batch upload, but neither are working.

When I upload using batch add, the files come up as NA as in No Album Selected, but I did select the new album.


Here is the debug information... Any thoughts?
I'm thinking maybe a database errors, but I can't seem to find any errors.


USER:
------------------
Array
(
    [ID] => 8088380479b9c635ebac8549283e7f51
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
Title: Re: Unable to upload after server move, but everything else works ok.
Post by: Joachim Müller on March 16, 2007, 08:07:58 AM
Do exactly as suggested in the upload troubleshooting section of the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble) if you want support.
Title: Re: Unable to upload after server move, but everything else works ok.
Post by: Chad-wl on March 16, 2007, 01:47:03 PM
I thought I had followed them, but setting to single seems to give more of an output.
Should the aid key be auto incrementing?

Chad


-----------------------------------------------------------------------------------------------------------
There was an error while processing a database query.

While executing query "INSERT INTO cpg143_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 ('0', 'userpics/10001/', 'Winter.jpg', '105542', '141562', '800', '600', '1174048603', '1', 'admin','Winter Test Image', 'Here is a Windows sample image from the default my documents.', '', 'YES', '', '', '', '', '204.101.26.106', '204.101.26.106', '0')" on 0 mySQL error: Duplicate entry '0' for key 1


File: /homepages/32/d93816027/htdocs/wanderinglost.ca/cpg1410/include/functions.inc.php - Line: 249
Title: Re: Unable to upload after server move, but everything else works ok.
Post by: Chad-wl on March 16, 2007, 02:00:29 PM
I located an old database I had, and auto_increment was missing on the new database.

It seems that when you use mysql_dump there is a bug: http://bugs.mysql.com/bug.php?id=14515 that does not include auto_export if you are exporting to an older format of mysql database.

It this case I was going from 5 to 4, so I had to use the compatible switch, and that dropped the auto increments.
Title: Re: Unable to upload after server move, but everything else works ok.
Post by: Chad-wl on March 16, 2007, 02:21:36 PM
After adding the auto_increment tags, everything is working fine.

Thanks,

Chad