[kronolith] There was an error importing the event: DB Error: already exists

Nazar nazarius at ukr.net
Wed May 5 02:43:40 PDT 2004


Hello kronolith,

  i download new version Driver from CVS
  but it say DB Error: already exists
  i found where is problem -
  it try create new event with old event's ID.

  My friend create event with ID 1111. He send me letter with file
  'event-invatation.ics'. In this file is field
UID:kronolith:1111
Driver takes this ID and in function setID trim its.
When i want create new event - api.php say:

        $event = &$kronolith->getEvent();
        $event->fromiCalendar($content);

        $guid = $content->getAttribute('UID');
                echo "($guid)";
        if (!is_a($guid, 'PEAR_Error')) {
 !!!           $event->setID($guid);
        }

        And new event   now has ID = 1111   !!!!!
        
   when we call function  $event->save(); it say 'DB Error: already exists'
        becouse event with ID 1111 already exists


  

-- 
Best regards,
 Nazar                          mailto:nazarius at ukr.net



More information about the kronolith mailing list