Keyword

Error when I try to add a new item

  • Lourdes
  • Lourdes's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago #64185 by Lourdes
Error when I try to add a new item was created by Lourdes
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

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


Powered by Kunena Forum