Hello:
When a I add a new item in K2, I receive the following error:
PHP Notice: Undefined property: TableK2Item::$extra_fields_Search in administrator\components\com_k2\models\item.php on line 678
The code in line 678 is:
//Delete attachments
$path = $params->get('attachmentsFolder', NULL);
678 if (is_null($path))
$savepath = JPATH_ROOT.DS.'media'.DS.'k2'.DS.'attachments';
else
$savepath = $path;
$attachments = $itemModel->getAttachments($row->id);
foreach ($attachments as $attachment) {
if (JFile::exists($savepath.DS.$attachment->filename))
JFile::delete($savepath.DS.$attachment->filename);
}
The item I add haven't any attachment
I click back button in my browser and after that, click in Cancel button and in the Item list I see the last article I add.
K2:v2.5.5
PHP:v5.2.5
Joomla: v 1.5.23
Thanks in advance
When a I add a new item in K2, I receive the following error:
PHP Notice: Undefined property: TableK2Item::$extra_fields_Search in administrator\components\com_k2\models\item.php on line 678
The code in line 678 is:
//Delete attachments
$path = $params->get('attachmentsFolder', NULL);
678 if (is_null($path))
$savepath = JPATH_ROOT.DS.'media'.DS.'k2'.DS.'attachments';
else
$savepath = $path;
$attachments = $itemModel->getAttachments($row->id);
foreach ($attachments as $attachment) {
if (JFile::exists($savepath.DS.$attachment->filename))
JFile::delete($savepath.DS.$attachment->filename);
}
The item I add haven't any attachment
I click back button in my browser and after that, click in Cancel button and in the Item list I see the last article I add.
K2:v2.5.5
PHP:v5.2.5
Joomla: v 1.5.23
Thanks in advance