maketoc adds bogus content to search index, causing false positives
- Status
- Open
- Subject
- maketoc adds bogus content to search index, causing false positives
- Version
- 3.x
- Category
- Bug
- Feature
- Search
Wiki Syntax (text area, parser, external wiki, etc) - Submitted by
- DesertWolf
- Lastmod by
- Philippe Cloutier
- Rating
- Description
hi
following problem:
i don't know if it was during an upgrade or if it was already there before upgrading to 3.6 but somehow one of our tikis indexes words which aren't on the pages.
e.g. lichtschnittgerät (as one example) - should be only in one page but after you search it is listed in several tens maybe hundreds of pages.
the text in the resultlist show several other words which shouldn't be there (and are always the same)
i trieds refreshing the searchindex, deleting the tiki_searchindex table and redoing the searchindex all with no luck (lichtschnittgerät is listed there as lichtschnittgerät but thats some kind of code issue i guess)
Edit:
So far i narrowed the problem down to the {maketoc}-Plugin: on refresh-functions.php on line 175 I added: if (substr($id,0,3) == "KT0") { // Just get me one of the pagegroups I know where the fault is echo $id; insert_index(search_index($content), $index_type, $id); } and on top pf the function &search_index I entered this echo '<pre>'.$data.'</pre><hr>'; just to be able to see what data he gets - and at the place where {maketoc} is in the sourcecode of the page, a whole list of words appear instead of the table of contents (or nothing or whatever it should print out) of the particular page- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3549
- Created
- Friday 17 September, 2010 13:04:07 UTC
by DesertWolf - LastModif
- Thursday 07 June, 2018 14:22:01 UTC