PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old September 8th, 2011, 04:01 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2010
Posts: 110
Database error

I deleted a file type thinking it was a duplicate in the "allowed file types" but the file type was JPG not jpg and I can now see that they are treated separately.
However if I try and add a new file type for JPG I get this database error

Quote:
Database error in vBulletin 4.1.5:

Invalid SQL:
UPDATE VB_ppgal_filetypes SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`extension` = 'JPG',
`filesize` = '7500000',
`width` = '400',
`height` = '400',
`min_width` = '300',
`min_height` = '300',
`enabled` = '1',
`extensionid` = '5'
WHERE extensionid = '5';

MySQL Error : Duplicate entry 'JPG' for key 2
It seems that the data is still in the database and refuses to be altered... can you help?
Steff is offline   Reply With Quote
Old September 8th, 2011, 04:46 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
is there anything else in the error?

Code:
Content visible to verified customers only.
I do not see anything wrong off hand with that query. I can understand duplicate errors but this is an update command so there should be no duplicate. Your essentially updating the record for extensionid 5.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 8th, 2011, 04:58 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Sep 2010
Posts: 110
Yeah seems strange.
Here's the full error:
Quote:
Database error in vBulletin 4.1.5:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO VB_ppgal_filetypes
(`extension`, `filesize`, `width`, `height`, `min_width`, `min_height`, `enabled`)
VALUES
('JPG', '25000000', '7000', '7000', '400', '400', '1');

MySQL Error : Duplicate entry 'JPG' for key 2
Error Number : 1062
Request Date : Thursday, September 8th 2011 @ 10:54:08 PM
Error Date : Thursday, September 8th 2011 @ 10:54:08 PM
Script : Log in - Picture Penzance Forum - vBulletin Admin Control Panel
Referrer : Log in - Picture Penzance Forum - vBulletin Admin Control Panel
IP Address : 212.139.80.74
Username : Halfhidden
Classname : vB_Database
MySQL Version : 5.0.91-community

I've just looked at the database thinking that perhaps it was still live... but this is the screen shot of the vb_ppgal_filetype tables:

So I'm a bit puzzled as to where the error is coming from as there clearly is no duplicate
Attached Images
File Type: jpg database.jpg (62.4 KB, 2 views)
Steff is offline   Reply With Quote
Old September 8th, 2011, 05:41 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
That is a different mysql query that is an insert command.

You can send me a url and admin login and an explanation of what your doing in an email through the contact us link in our site header.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old September 8th, 2011, 06:08 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Sep 2010
Posts: 110
Yeah.. no probs. As it is late here I'll do this in the morning (about 4am for you)
I'll try and be as informative as I can in the explanation.
Steff is offline   Reply With Quote
Old September 9th, 2011, 07:30 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
No problem will check our Helpdesk and respond accordingly
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   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
Database error ozidoggy Classifieds Installation & Upgrades 2 June 1st, 2009 09:02 AM
Error with 3.51: Error adding new category to the database. Returned id was 0. WebDork Photopost Pro Installation & Upgrades 15 July 17th, 2006 08:03 PM
Database error in vBulletin 3.5.4: Error Number : 1062 s2kinteg916 Installs and Upgrade - vBulletin 3.5.X 1 May 27th, 2006 10:38 AM
Database error Toxiedog Classifieds Installation & Upgrades 2 March 2nd, 2006 02:03 PM
Database error -peace- Installs and Upgrade - vBulletin 3.0.X 1 September 23rd, 2005 10:25 AM


All times are GMT -5. The time now is 02:15 AM.

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