News: dupclicate news-ID after upgrade Topic is solved

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
rednose
Forum Members
Forum Members
Posts: 18
Joined: Fri Jun 26, 2009 3:04 pm

News: dupclicate news-ID after upgrade

Post by rednose »

Good Morning

I installed a new 2.2.21 CMS version, but copied the old news DB entries ( more as 800 entries, to much to copy them one by one). All was well, display as ususally.
But when I want to make a new entry i get an error "Duplicate entry '21' for key 'cms_module_news.PRIMARY' "

Everytime I try it counts further, so wenn there's no solution, i will make a test entry 800 times.

Is there a possiblity to let the modul start the ID count from 801? In the DB it is called "news_id"

Kind regards
Gabrielle
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: News: dupclicate news-ID after upgrade

Post by Jo Morg »

It looks like you only copied part of the news db tables. You should have copied all six tables used by the module. The auto-incremental auto-generated ids come from the tables sufixed with '_seq'. If you have done that already and still experience the same issue, then it's possible that you have a corrupt '_seq' table.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
rednose
Forum Members
Forum Members
Posts: 18
Joined: Fri Jun 26, 2009 3:04 pm

Re: News: dupclicate news-ID after upgrade

Post by rednose »

It was the fact that is was a little corrupt, it had 2 ID's in it instead of only 1. I emptied the content of the table and inserted the value again. And until now it stays that way.

Thank you so much for your feedback.
Post Reply

Return to “Modules/Add-Ons”