Page 1 of 1

Problems with news

Posted: Fri Dec 07, 2007 11:56 pm
by ottyscom
Hello

I have a Problem when i add news at my cmsmadesimple. there will show the follow error:

string(143) "Smarty error: [in module_file_tpl:News;editarticle.tpl line 26]: syntax error: unrecognized tag 'Uploads' (Smarty_Compiler.class.php, line 590)"



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 (22,'1','xxx','xxx','xxx','published','2007-12-07 20:08:37','2007-12-07 20:08:37',NULL,'2007-12-07 20:08:51','2007-12-07 20:08:51','1','')
Duplicate entry '22' for key 1

Who is the problem? Any solution?

Re: Problems with news

Posted: Sat Dec 08, 2007 1:29 pm
by Pierre M.
Hello,

common questions : your hosting, your version, your settings, your modules, your http logS...
Do you use the Uploads module ?
How many news do you have so far ?
Can you dig into your database and see what is the news_id==22 ?

Pierre M.

Re: Problems with news

Posted: Sat Dec 08, 2007 4:29 pm
by alby
ottyscom wrote: I have a Problem when i add news at my cmsmadesimple. there will show the follow error:

string(143) "Smarty error: [in module_file_tpl:News;editarticle.tpl line 26]: syntax error: unrecognized tag 'Uploads' (Smarty_Compiler.class.php, line 590)"
From forum search:
1
2
3
4
.....

maybe you have a older version. Update to 1.2.2

Alby

Re: Problems with news

Posted: Mon Dec 10, 2007 1:12 am
by ottyscom
I have updated to the new version 1.2.2 but the problem again are present. i can not add more news :-(

Re: Problems with news

Posted: Tue Feb 05, 2008 9:55 pm
by MantaPro
I just found the same problem (or at least the same symptoms). I went into phpmyadmin, ldid a query to list _module_news ordered by descending news_id. Then checked the _module_news_seq table which only has one row with one field called ID. It should have the same value as the highest news_id in the _module_news table. Mine was wrong. Perhaps the upgrade to 1.2.3 I'd just finished somehow reset it. I updated the value of ID in the module_news_seq table to be the same as the highest entry in  _module_news and everything now works OK

;D  Phil

Re: Problems with news

Posted: Wed Mar 19, 2008 1:58 pm
by bolosk8
Thanks MantaPro,
sometime ago I backup my `_module_news` table, and forget to backup the `module_news_seq` table, so it wasn't working :P~

some words to crawlers:
news duplicate entry for key id