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
News: dupclicate news-ID after upgrade Topic is solved
Re: News: dupclicate news-ID after upgrade
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!
* 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!
Re: News: dupclicate news-ID after upgrade
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.
Thank you so much for your feedback.