news module throwing a database error whilst trying to add news article

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
scotch33
Dev Team Member
Dev Team Member
Posts: 284
Joined: Tue Feb 14, 2006 9:56 pm

news module throwing a database error whilst trying to add news article

Post by scotch33 »

Hi,

WEhen trying to add an article I am getting

"DEBUG: SQL = INSERT INTO cms_module_news (news_id, news_category_id, news_title, news_data, summary, status, news_date, start_time, end_time, create_date, modified_date,author_id,news_extra) VALUES (0,'0','test','test','test','published','2008-06-18 08:43:40','2008-06-18 08:43:40',NULL,'2008-06-18 08:43:51','2008-06-18 08:43:51','1','')
Duplicate entry '0' for key 1"

Would the way to get around this be going into the database and changing the value for the single article that's in there?  Can I change it to ')' to stop the clash,?  Or am I on the wrong lines entirely?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: news module throwing a database error whilst trying to add news article

Post by calguy1000 »

something is amis with your database, the news_id should never be 0

I'd try unistalling and re-installing News again.  but have a backup because uninstalling the module drops the tables that it uses.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “CMSMS Core”