My punbb subscriptions table has begun rejecting inserts, the error it throws is:

Duplicate entry '526-841' for key 1

However, in browsing through the database there's no entry of (user_id)526 (topic_id)841.

Doing a mysql structure dump on the table shows it's set up like this:

CREATE TABLE `pun_subscriptions` (
  `user_id` int(10) unsigned NOT NULL default '0',
  `topic_id` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`user_id`,`topic_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


Anyone have any suggestions for me? I saw something similar on another post:
http://punbb.org/forums/viewtopic.php?id=13126

Where he was instructed to just drop/recreate the table... I'd hate to lose my current subscriptions though.

Thanks in advance,
Ben

2

(10 replies, posted in PunBB 1.2 troubleshooting)

elbekko wrote:

1 should be admin, 2 should be mod, 3 should be guest, 4 member, 5 and up custom smile

Ah! Good to know.
Thanks.

3

(10 replies, posted in PunBB 1.2 troubleshooting)

Hi Chali - yes, I've changed lots -- thanks for the tip. Just did a forum search here and found the answer to the database question.
For anyone searching for the same issue:

Guest group_id should be 3. Your guest id is always 1.

Thanks Chali.
b

4

(10 replies, posted in PunBB 1.2 troubleshooting)

chali wrote:

well, with the help of Rickard i figured out that it was a mistake i made playing with the admin and guest users tongue

Hi Chali -
Can you tell me what you did to fix this problem?
I'm having the same issues. As far as I can tell, guests are disallowed from posting everywhere.
In each of the forums I have guests set to read-only. Yet upon logging out, I can still post...
Very odd.
Thanks,
Ben

http://walk.ideacog.net/talk/