<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>DB Error: constraint violation - attributes</title> 
  <pubDate>Fri, 10 Apr 2026 12:09:55 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8900</link> 
  <atom:link rel="self" type="application/rss+xml" title="DB Error: constraint violation - attributes" href="https://bugs.horde.org/ticket/8900/rss" /> 
  <description>DB Error: constraint violation - attributes</description> 
 
   
   
  <item> 
   <title>Hi,
Whups send an error messages to users when they post a </title> 
   <description>Hi,
Whups send an error messages to users when they post a ticket.

-&gt; In horde log, I have this :
Mar 05 10:34:21 HORDE [error] [whups] DB Error: constraint violation: INSERT INTO whups_attributes(ticket_id, attribute_id, attribute_value) VALUES (&#039;111&#039;, 4, &#039;5&#039;) [nativecode=1062 ** Duplicate entry &#039;4&#039; for key 1] [pid 3785 on line 2679 of &quot;/var/www/html/webmail/whups/lib/Driver/sql.php&quot;]

-&gt; In the ticket, no attribute is registred, ever in db but a line appears in the ticket&#039;s history : attribute &amp;#8658; 5</description> 
   <pubDate>Fri, 05 Mar 2010 10:21:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8900#t58140</link> 
  </item> 
   
  <item> 
   <title>&gt; Mar 05 10:34:21 HORDE [error] [whups] DB Error: constraint</title> 
   <description>&gt; Mar 05 10:34:21 HORDE [error] [whups] DB Error: constraint violation: 
&gt; INSERT INTO whups_attributes(ticket_id, attribute_id, 
&gt; attribute_value) VALUES (&#039;111&#039;, 4, &#039;5&#039;) [nativecode=1062 ** Duplicate 
&gt; entry &#039;4&#039; for key 1] [pid 3785 on line 2679 of 
&gt; &quot;/var/www/html/webmail/whups/lib/Driver/sql.php&quot;]

There is no key for the whups_attributes table created in the sql scripts.</description> 
   <pubDate>Wed, 17 Mar 2010 16:10:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8900#t58204</link> 
  </item> 
   
  <item> 
   <title>Hi, all is right without the primary key.

A big thanks fo</title> 
   <description>Hi, all is right without the primary key.

A big thanks for the tips.</description> 
   <pubDate>Tue, 06 Apr 2010 07:29:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8900#t58395</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
