I'm not sure what is happening exactly, but I tryed again after having deactivate joomla and joomsef SEF functionnality and was able to reproduce the bug for categories by putting any number that is not an existing category in the cid parameter.
For example :
Code:
http://localhost/index.php?option=com_flexicontent&view=category&cid=5555555555555
The line the error occurs is always the same (line 110), so after the get('Category'):
Code:
$clayout = $clayout ? $clayout : $params->get('clayout', 'blog');
The script acts the good way and I've checked that it goes through the models/category.php and raise well an error via line 977+
Code:
//Make sure the category is published
if (!$this->_category)
{
JError::raiseError(404, JText::sprintf( 'Content category with id: %d, was not found or is not published', $this->_id ));
return false;
}
But I don't know why the execution of view.html.php is not stopped after the raise...(i'm far to be a php/joomla experimented dev)
Same for items by modifying the id parameters. For example :
Code:
http://localhost/index.php?option=com_flexicontent&view=item&cid=9&id=555555555555555555555555&Itemid=177
instead of
Code:
http://localhost/index.php?option=com_flexicontent&view=item&cid=9&id=31&Itemid=177
That is an available content on my site.
The error is always raised on line 115 of item/view.html.php :
Code:
$ilayout = $ilayout ? $ilayout : $params->get('ilayout', 'default');
I'm on Joomla 2.5.6 for now (if it can help).