Kunena 6.2.4 Released

The Kunena team has announce the arrival of Kunena 6.2.4 [K 6.2.4] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1 / K 6.2 and issues discovered during the last development stages of K 6.2

Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Question Category view and sef causes 500 error when the url is a non kunena url

9 years 9 months ago #1 by alanski
No forum config needed here :)

The issue: we have some old urls after a site move whci h are beyond our control - google just indexes them.
eg "forum/our-services/itemlist/category/100-newsroom"

This is some old mangled url that is from k2 link.

Kunena sees the sef url and assumes its a forum url and tries to fire $category->getLastTopic(); in views/category/view.html.php line 227

This creates a 500 error as the category is null.

This could hurt your SEO if you have urls coming in like this. We found them in Google Webmaster tools.

Our fix was to edit the function displaycategory

function displayCategory($category) {

$app = JFactory::getApplication();
$url = JRoute::_('index.php?option=com_kunena');
$app->redirect($url, true);
//end add

Not sure if this should really be checked in the router? [// Support URIs like: /forum/12-my_category] line 82

Hopefully this helps someone else

Please Log in or Create an account to join the conversation.

Time to create page: 0.415 seconds