Loading...
 
Skip to main content

Error moving tracker items from category X to Y

Status
Closed
Subject
Error moving tracker items from category X to Y
Version
8.x
Category
  • Error
  • Dogfood on a *.tiki.org site
Feature
Category
Resolution status
Fixed or Solved
Submitted by
Marc Laporte
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

On dev.tiki.org, I want to merge all items from category "jscalendar" to "calendar".

http://dev.tiki.org/tiki-admin_categories.php?parentId=128&toId=29&move_to=Move+all+the+objects+from+this+category+to+this+one&to=128Question

Duplicate entry '1983-29' for key 'PRIMARY'
The query was:

update `tiki_category_objects` set `categId`=? where `categId`=?
Values:

29
128
The built query was likely:

update `tiki_category_objects` set `categId`='29' where `categId`='128'
Stacktrace:

  • /var/local/dev.tiki.org/www/tiki-admin_categories.php : 0 -> {main}(array ( ))
  • /var/local/dev.tiki.org/www/tiki-admin_categories.php : 41 -> move_all_objects(array ( ))
  • /var/local/dev.tiki.org/www/lib/categories/categlib.php : 1474 -> query(array ( ))
  • /var/local/dev.tiki.org/www/lib/core/TikiDb/Bridge.php : 27 -> query(array ( ))
  • /var/local/dev.tiki.org/www/lib/core/TikiDb/Pdo.php : 118 -> handleQueryError(array ( ))
  • /var/local/dev.tiki.org/www/lib/core/TikiDb.php : 148 -> handle(array ( ))



And the organizer is not working either...
http://dev.tiki.org/tiki-edit_categories.php?filter~categories=128Question

Solution
Workaround
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4101
Created
Thursday 12 January, 2012 05:52:05 UTC
by Marc Laporte
LastModif
Friday 03 July, 2026 13:35:43 UTC


Show PHP error messages