Problems with news

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
ottyscom
Forum Members
Forum Members
Posts: 154
Joined: Tue Nov 13, 2007 12:01 am

Problems with news

Post 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?
Pierre M.

Re: Problems with news

Post 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.
alby

Re: Problems with news

Post 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
ottyscom
Forum Members
Forum Members
Posts: 154
Joined: Tue Nov 13, 2007 12:01 am

Re: Problems with news

Post by ottyscom »

I have updated to the new version 1.2.2 but the problem again are present. i can not add more news :-(
MantaPro
Forum Members
Forum Members
Posts: 97
Joined: Sun Feb 03, 2008 8:14 pm

Re: Problems with news

Post 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
bolosk8

Re: Problems with news

Post 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
Post Reply

Return to “CMSMS Core”