Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Tags not working
Stevie_c
New
Hi all,
I'm using version 2.1
I just enabled the tagging plugin and added a tag in the settings. When i go to add the tag in a discussion it shows up, i select, and when i click save i get this error pop up:
{"Code":256,"Exception":"Duplicate entry 'world-cup--1' for key 'UX_Tag'|Gdn_Database|Query|insert GDN_Tag \n(Name
, InsertUserID
, DateInserted
, CountDiscussions
) \nvalues (:Name, :InsertUserID, :DateInserted, :CountDiscussions)","Class":"Gdn_ErrorException"}
Any help much appreciated!
0
Comments
Heya!
I need you to gather some information.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I'm experiencing the same problem, also within version 2.1.
Here's a screenshot of the network monitoring tool JSON'ing the existing tags:
However, to me it rather looks like Vanilla is trying to insert an existing tag into the database resulting in an duplicate error:
Any ideas? TagID has AUTO_INCREMENT in the database. I couldn't figure out if there's an already-exists routine in the code. New tags added during posting will work.
what version of tagging and which plugin are you using?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thank you for your reply. It's a clean Vanilla 2.1-installation with Tagging plugin version 1.6.2 by Mark O'Sullivan enabled.
Maybe the procedure fetching the existing tags is not working properly and then trying to insert existing ones: