-
AuthorPosts
-
January 16, 2016 at 3:17 pm #849703
Hello:
Install of latest JA K2 Filter with K2 2.6.9, J 3.4.8:
Update indexing throws a 1062 database error.See login details below.
Thank you,
AlanMo0nlight ModeratorMo0nlight
- Join date:
- September 2014
- Posts:
- 707
- Downloads:
- 38
- Uploads:
- 107
- Thanked:
- 99 times in 97 posts
January 18, 2016 at 9:07 am #851535Hi aksmith,
I had fixed the problem.
In the file : components/com_jak2filter/helpers/helper.php line : 325
add the code:
GROUP BY CONCAT(xref.tagID, #__k2_items.id)';
Regards
ppnilsson Friendppnilsson
- Join date:
- October 2015
- Posts:
- 38
- Downloads:
- 11
- Uploads:
- 12
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
February 4, 2016 at 12:49 pm #876304Hi I also get a 1062 error:
DUPLICATE ENTRY ’94-72′ FOR KEY ‘TAXONOMY_MAP_ID’ SQL=INSERT INTO AWDUP_JAK2FILTER_TAXONOMY_MAP (NODE_ID
,ITEM_ID
,LANGUAGE
)around components/com_jak2filter/helpers/helper.php line : 325 I find the following:
//4. Tag $query = " SELECT xref.tagID, #__k2_items.id, #__k2_items.language FROM #__k2_items JOIN #__k2_tags_xref AS xref ON #__k2_items.id = xref.itemID" .$whereItem; $db->setQuery($query); $items = $db->loadObjectList(); if(count($items)) {
Inserting as mentioned above (within query of course) results in erros.
may you give me a hint?
thx peer
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
February 5, 2016 at 5:00 am #876851fabiojordan Friendfabiojordan
- Join date:
- August 2014
- Posts:
- 48
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 8
- Thanked:
- 5 times in 5 posts
February 5, 2016 at 6:18 am #876878Hi there folks.
I’m getting the same error (as shown on image).
1062 Duplicate entry ‘1419-2384’ for key ‘taxonomy_map_id’ SQL=INSERT INTO cafe25_jak2filter_taxonomy_map (
node_id
,item_id
,language
) VALUES( ‘1419’, ‘2384’, ”)By the way, I’ve tried the provided code, but it didnt work as expected… 🙁
What can we do to fix that?
Thanks in advance!
ppnilsson Friendppnilsson
- Join date:
- October 2015
- Posts:
- 38
- Downloads:
- 11
- Uploads:
- 12
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
February 8, 2016 at 2:56 pm #879182Hi may you be more specific about where to place groupconcat?
in line 325 I find the following:`
$db->setQuery($query);which is what is shown in codemirror above (my last post) in line 7 so where to place your given code?
` GROUP BY CONCAT(xref.tagID, #__k2_items.id)';
many thanks?
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
February 15, 2016 at 4:37 am #883132Hi,
Please try again by following:
in filecomponents\com_jak2filter\helpers\helper.php
find for:
//4. Tag $query = " SELECT xref.tagID, #__k2_items.id, #__k2_items.language FROM #__k2_items JOIN #__k2_tags_xref AS xref ON #__k2_items.id = xref.itemID" .$whereItem;
change to:
//4. Tag $query = " SELECT xref.tagID, #__k2_items.id, #__k2_items.language FROM #__k2_items JOIN #__k2_tags_xref AS xref ON #__k2_items.id = xref.itemID" .$whereItem .' GROUP BY CONCAT(xref.tagID, #__k2_items.id)';
fabiojordan Friendfabiojordan
- Join date:
- August 2014
- Posts:
- 48
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 8
- Thanked:
- 5 times in 5 posts
February 25, 2016 at 6:50 pm #890488Hello Luna, how are you?
I followed exactly what you posted, but the message still appears on some items.
Any other hint?
Thanks again!
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
February 26, 2016 at 4:36 am #890681Hi Fabio,
The problem only happens with the data was imported thru Database, then some duplicated items will be inserted without checking, in this case it was Tag. When being indexed, duplicate item will cause the error. I don’t understand where did you get this error on some items, it only appear when you try to index JA K2 Filter.
Could you describe more the problem you get and post your site info: Site URL, admin account and FTP account in private reply so I can check it for you.
February 26, 2016 at 9:39 pm #891087Hi, It worked for me. Please just make sure you remove the " ; " from the end of .$whereItem;
Check if the code is exactly as this:
//4. Tag $query = " SELECT xref.tagID, #__k2_items.id, #__k2_items.language FROM #__k2_items JOIN #__k2_tags_xref AS xref ON #__k2_items.id = xref.itemID" .$whereItem .' GROUP BY CONCAT(xref.tagID, #__k2_items.id)';
fabiojordan Friendfabiojordan
- Join date:
- August 2014
- Posts:
- 48
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 8
- Thanked:
- 5 times in 5 posts
March 2, 2016 at 3:32 pm #893509This reply has been marked as private.Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
March 3, 2016 at 3:17 am #893898fabiojordan Friendfabiojordan
- Join date:
- August 2014
- Posts:
- 48
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 8
- Thanked:
- 5 times in 5 posts
March 4, 2016 at 5:13 am #894588Hi Luna, thats strange. I’ve just logged in with the same credentials and its working. Maybe it has something problem with your timezone, try to change it in the User Settings, it’s the first user on the list. Lets see if it works. Thanks again!
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
March 4, 2016 at 10:30 am #894697Hi Fabio,
We have checked Item ‘Little Boy – Além do Impossível | Trailer legendado e sinopse’, In extra field Elenco – type Searchable Label, you inserted two words with same value ‘David Henrie’, it makes duplicated id to index table. If you remove one value, you won’t see the error anymore after saving.
fabiojordan Friendfabiojordan
- Join date:
- August 2014
- Posts:
- 48
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 8
- Thanked:
- 5 times in 5 posts
March 4, 2016 at 3:37 pm #894856Hi Luna,
Wow, haha, I would never thought that a simple mistake would present that error. Thanks a bunch for the help and its great to see thats no big deal.
Thanks again and have a great weekend!
1 user says Thank You to fabiojordan for this useful post
AuthorPostsThis topic contains 15 replies, has 6 voices, and was last updated by Luna Garden 8 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum