Using:
Joomla: 1.7.3
ARTIO JoomSEF: 4.2.3
PHP Version 5.3.2-1ubuntu4.10
I have been unable to edit articles in the front end. In my Apache logs I found the following:
PHP Notice: Undefined variable: task in /site/ukrgb/joomla/components/com_sef/sef_ext/com_content.php on line 369, referer:
beta.homedomain/books/bookshop-the-front-window
Looking at: components/com_sef/sef_ext/com_content.php the variable is not initalised, which explains the error.
A quick and dirty hack is to comment out the offending switch statement and always call the edit
case. This seems to work, but I'm sure its not the correct solution.
The code becomes:
default:
/* switch($task) {
case 'article.add':
$title[]=JText::_('COM_SEF_NEW');
break;
case 'article.edit':
*/
$this->nonSefVars = array();
$this->nonSefVars["return"]=@$return;
if(isset($a_id)) {
$title=array_merge($title,$this->_getArticle($a_id));
}
$title[]=JText::_('COM_SEF_EDIT');
/* break;
}
*/
break;