PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old March 30th, 2005, 05:36 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Mar 2005
Posts: 34
Invalid SQL: INSERT INTO adv_gallery_customfields_entries

I get this error after I upload an image:

----------------

Database error in vBulletin 3.0.7:

Invalid SQL: INSERT INTO adv_gallery_customfields_entries (imgid ) VALUES (6 )
mysql error: Duplicate entry '6' for key 1

mysql error number: 1062

Date: Wednesday 30th of March 2005 03:33:37 AM
Script: http://www.domain.com/gallery/upload.php
Referer: http://www.domain.com/gallery/upload.php?&c=
Username: User
IP Address:

----------------

Image gets uploaded despite this error. However, image count and link to the image within the categories are updated only after I use the "Update Category Counters" tool in the CP.

This error appeared after I've moved the site to a new dedicated server. Before transferring d/b and files, I've removed all images. Could this be due to the fact that I'm now running newer versions of PHP and MySQL? vBa Gallery still works fine on the old server.

PHP old: 4.3.9-11.rh90.art
PHP new: 4.3.10-3.rhel3.art

MySQL old: 4.0.21-2.rh90.art
MySQL new: 4.0.24-2.rhel3.art

(I use Plesk)


vBulletin and 2 other applications also seem to work fine on the new server. I've upgraded RC3 to RC4 but the error is still the same.
PageUp is offline   Reply With Quote
Old March 30th, 2005, 09:52 AM   #2 (permalink)
Brian
Guest
 
Posts: n/a
Re: Invalid SQL: INSERT INTO adv_gallery_customfields_entries

Did you manually empty your adv_gallery_images table or anything like that? The error indicates that you already have values for the custom fields associated with that imageid and there shouldn't be any way that could occur otherwise.
  Reply With Quote
Old March 30th, 2005, 11:14 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Mar 2005
Posts: 34
Re: Invalid SQL: INSERT INTO adv_gallery_customfields_entries

No, I'm pretty sure I didn't do that. I used the empty category tool in the admin CP.

The thing is that Gallery works without any issues on my old VPS. As far as I know, database and files are same in both places (well, they were before I've upgraded to RC4 on the new server - but like I said, the error appeared before the upgrade).

Would you recommend that I upgrade to RC4 on the old server as well and then try to copy tables from that d/b to the new one again? Which tables do I need to copy?
PageUp is offline   Reply With Quote
Old March 30th, 2005, 11:34 AM   #4 (permalink)
Brian
Guest
 
Posts: n/a
Re: Invalid SQL: INSERT INTO adv_gallery_customfields_entries

If you'd like to just submit a support ticket I'll have a look and get those extra ones cleared out for you.
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Install script problem - invalid sql error GeoffE Installs and Upgrade - vBulletin 3.0.X 9 September 21st, 2006 07:12 AM
Extra sql line- Joining two sql statements Telnoi How Do I? - vBulletin 3.0.X 0 August 14th, 2005 09:49 AM
Invalid SQL sifuhall Bugs From 1.0.0 8 March 15th, 2005 03:16 PM
Zipcode SQL Insert MRaburn Classifieds Bug Reports 3 February 10th, 2005 11:28 PM


All times are GMT -5. The time now is 06:07 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0