Support Forum

Error: Duplicate entry '5*group' for key 'PRIMARY'

ME Meztli
Meztli
Member

Hello guys,

I got an error today that i never encountered before:

 

2014/07/31 12:01 f m | spaErrError | 1 | database


file: /problem-with-post-edit-buttonome/friskytt/public_html/wp-content/plugins/simple-press/forum/content/classes/sp-group-view-class.php

line: 249

function: sp_add_cache

error: Duplicate entry ‘5*group’ for key ‘PRIMARY’

INSERT INTO wp_sfcache(cache_id, cache_out, cache) VALUES (‘5*group’,

 

I did cut the error message since it included several pages with code after the last line above. But if you want to see it, i will ofcourse post if for you. Is this something serious?

Cheers

19 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

It’s a little issue we have seen once or twice bit been unable to track down. Actually – the code is very simple and there is no way it should be able to happen which is probably why it is rare and probably some sort of deep rooted glitch. Maybe a timing issue between a couple of database writes. We are still looking for the cause.

It is really harmless. But for peace of mind then you could go to the forum admin > toolbox > housekeeping and click on the ‘Flush General Cache’ task.

ME Meztli
Meztli
Member

Thanks Andy.

I noticed that no forum topics where shown in group view until you logged in. Not for all forums, just one particular. But after the cache flush it´s all working again.

YS Yellow Swordfish
Yellow Swordfish
Member

Ah yes. Hopefully we will get to the bottom of it soon.

ME Meztli
Meztli
Member

Yellow Swordfish said
Ah yes. Hopefully we will get to the bottom of it soon.

Hi Guys,

Any progress in this matter?

This issue is happing more and more frequent at my forum.

YS Yellow Swordfish
Yellow Swordfish
Member

I have to say that there was no logical reason for the error and it remains a mystery but yes – it has been changed to avoid such an error in the next release (5.5.1) which, if the WordPress team get 4,0 out today as planned, will follow immediately after that.

ME Meztli
Meztli
Member

Yellow Swordfish said
I have to say that there was no logical reason for the error and it remains a mystery but yes – it has been changed to avoid such an error in the next release (5.5.1) which, if the WordPress team get 4,0 out today as planned, will follow immediately after that.

Great news! smile

YS Yellow Swordfish
Yellow Swordfish
Member

And indeed – now available for update…

ME Meztli
Meztli
Member

Yellow Swordfish said

And indeed – now available for update…

Thanks for a great update Andy, but the error remain:

file: /problem-with-post-edit-buttonome/friskytt/public_html/wp-content/plugins/simple-press/forum/content/classes/sp-group-view-class.php

line: 248

function: sp_add_cache

error: Duplicate entry ‘260*group’ for key ‘PRIMARY’

[Error record dump removed by admin]

YS Yellow Swordfish
Yellow Swordfish
Member

Removed the large error record as there is nothing to learn from that…

The first, obvious question is… are we definitely talking about version 5.5.1 here? You have upgraded to 5.5.1 – yes?

If that is a yes then can you tell me what version of MySQL you have on your website? And perhaps ask your hosting support if the mySQL implementation does support the ‘REPLACE’ keyword.

MP Mr Papa
Mr Papa
Member

on top of Andys questions, want to make sure you had cleared the error log and saw it return…

ME Meztli
Meztli
Member

Yellow Swordfish said
Removed the large error record as there is nothing to learn from that…

The first, obvious question is… are we definitely talking about version 5.5.1 here? You have upgraded to 5.5.1 – yes?

If that is a yes then can you tell me what version of MySQL you have on your website? And perhaps ask your hosting support if the mySQL implementation does support the ‘REPLACE’ keyword.

The answers are:

Yes

Yes

And Yes on Steves question in the above post (I am getting this error once a day at the moment and i am clearing the error log every single time).

I will ask my server host about the MySQL version and if it support “replace”.

Getting back to you soon!

Cheers!

YS Yellow Swordfish
Yellow Swordfish
Member

The mySQL version should be displayed in the forum admin > toolbox > Environment panel but asking your host is still important to do.
I never encountered this particular error condition but Steve pointed out to me that this site did experience it now and then,. Since the coe change it has not reoccurred.

ME Meztli
Meztli
Member

Hi guys,

My server host have:

MySQL version: 5.5.37-cll

And “replace” is working.

Did read my own notes and once a day was not true. It´s more like the error occur once or twice per week.

YS Yellow Swordfish
Yellow Swordfish
Member

We will be discussing this. it makes absolutely no sense whatsoever…