Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (57-Vette, Chosen), 43 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 03/24/10
Posts: 8
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#231954 - 12/09/09 10:33 PM SQL Error #: 1062
trphoto Offline
stranger
Registered: 10/03/08
Posts: 14
Running UBB.threads™ 7.3.1 fine for over a year. Suddenly yesterday, on posting we have been getting this error:

Script: /home/cluster1/data/h/s/a1332841/html/belize/scripts/addpost.inc.php
Line#: 479
SQL Error: Duplicate entry '167180' for key 1
SQL Error #: 1062
Query: INSERT INTO ubbt_POSTS (POST_PARENT_ID,TOPIC_ID,POST_IS_TOPIC,POST_POSTED_TIME,POST_POSTER_IP,
POST_SUBJECT,POST_BODY,POST_DEFAULT_BODY,POST_IS_APPROVED,POST_ICON,
POST_HAS_POLL,POST_HAS_FILE,POST_MARKUP_TYPE,USER_ID,POST_PARENT_USER_ID,
POST_ADD_SIGNATURE,POST_LAST_EDITED_TIME,POST_POSTER_NAME,POST_MD5) VALUES
( 0 , 22111 , 1 , 1260408711 , '200.32.196.61' , 'test' ,
'test' , 'test' , 1 , 'book.gif' , 0 , 0 , 'markup' , 24 , 0
, 1 , 0 , 'xxxx' , 'xxxxxxxxxxxxxxxxxxxxxxxxx' )

Can't seem to track down what the problem is or even where to start. I have xxxx'd out the username and MD5.

Any ideas? Thanks in advance.


Edited by trphoto (12/09/09 10:38 PM)
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#231961 - 12/10/09 02:12 AM Re: SQL Error #: 1062 [Re: trphoto]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Looks like somethings gone awry with the POST_ID auto_increment field. I'd try doing an altertable.

Sql Query:
alter table ubbt_POSTS
change POST_ID POST_ID int(11) unsigned auto_increment


The primary key portion is already there, so need to specify that in the alter.
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image