Summary:
News content type renders wrong detail url when displaying the news
Detailed Description:
In "Admin" section, "Add new content" menu, select Content Type: News (fist drop
down menu)
Fill in the rest of the information. Select a category which already has some
news in it, ie "General"
Let's assume you have chosen Page Alias: My_News
The link for the first news ("General" category) looks like this:
http://www.domain.com/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=1&cntnt01returnid=My_News
If you follow it, you get this error message:
Fatal error: Call to a member function GetContent() on a non-object in
\path\to\site\lib\classes\class.module.inc.php on line 2249
To fix this, you need to change this file "modules/news/News.module.php" as
following:
$newnews->DoAction('default', 'newsmodule', $params, $variables['page_id']);
replace this line with:
$newnews->DoAction('default', 'newsmodule', $params, $variables['content_id']);
Regards,
Florentin Sardan