Visit carnity.org click on any classified ad in second row. Add that car to comparison and it throws this error, but car gets added fine to comparison.

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '3-16' for key 'PRIMARY': INSERT INTO {flag_counts} (fid, content_type, content_id, count) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => 3 [:db_insert_placeholder_1] => node [:db_insert_placeholder_2] => 16 [:db_insert_placeholder_3] => 1 ) in flag_flag->_update_count() (line 738 of /home/thehighb/public_html/carnity.org/sites/all/modules/flag/flag.inc).

Same comparison block i am using in car details and car get added fine w/o any issue. I have not even deleted original category of sale and wanted as i know it creates an unresolved bug of expiry date as per my last attempt.

Could you please help in fixing this bug. Thanks in advance.

Comments

fgm’s picture

Project: Classified Ads » Flag
Version: 7.x-3.0-rc1 » 7.x-2.x-dev
Component: Code » Flag core

Flag counts is a table managed by Flag module, so it appears this is a Flag issue, not a Classified Ads issue: error is in flag/flag.inc.

Moving to Flag issue queue accordingly.

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

Can you provide debug information?

joachim’s picture

Issue summary: View changes

spell check

joachim’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing very old issues that have been missing necessary information for a long time.