Previous Thread
Next Thread
Print Thread
Hop To
#231954 12/09/2009 11:33 PM
Joined: Oct 2008
Posts: 16
T
stranger
stranger
T Offline
Joined: Oct 2008
Posts: 16
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.

Last edited by trphoto; 12/09/2009 11:38 PM.
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
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.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Upgraded to ver8 - now can't login
by phoenix011235 - 10/24/2024 8:50 AM
Who's Online Now
0 members (), 563 guests, and 80 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)