Article items -> translate button -> Error „Duplicate entry“

1 year 1 month ago - 1 year 1 month ago #70367 by pabro
Hi,

if i try to translate some items via „translate“ button on backend, and there is already an associations for this item, i get the error

1062 Duplicate entry 'com_content.item-1471' for key 'PRIMARY'

I need to association more than two languages to an item. Is this a bug?

Joomla! 3.7.5
FLEXIcontent 3.2.1.7


Thank you
Paul

Please Log in or Create an account to join the conversation.

1 year 1 month ago #70369 by ggppdk
Hello

it looks like some MyISAM (mysql) table(s) have index corruption

try performing "Fix" for all table via phpmyadmin or similar tool


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

1 year 1 month ago #70372 by pabro
To fix table does not have any effect.

I deleted all copied items and try again to translate/copy. First translation/copy work. The second translation for third language get same error again. If i skipp the item id in error message, the next item id also does not work. The item related to error has copied (only this) , but without associations.

Please Log in or Create an account to join the conversation.

1 year 1 month ago #70374 by ggppdk
Hello

i see,

i ll test it tomorrow


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

1 year 1 month ago - 1 year 1 month ago #70383 by ggppdk
Hello

Fix will be in next release

to get fix now , in file

administrator/components/com_flexicontent/models/items.php

replace (about line 1937)
flexicontent_db::saveAssociations($row, $_data, $context);  // Save associations, adding the new item
with
flexicontent_db::saveAssociations($item, $_data, $context);  // Save associations, adding the new item


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

1 year 1 month ago #70415 by pabro
Great support, ggppdk. Thank you! (:

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.