Problem with search files

Sobiech 77
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Problem with search files

Philipp
From: Austria
Administrator
1342From: Austria
Sorry, didn't get any notifications from this forum 
The problem is related to the hyphens option. Here a quick fix. Open classes/class_system.php in an editor and replace:
with:

The problem is related to the hyphens option. Here a quick fix. Open classes/class_system.php in an editor and replace:
function seorand()
{
global $preferences;
if ($preferences['website_seo_hyphens'])
{
$var = "-" . substr(md5(rand(1, 32768)), 1, 4);
}
else
{
$var = "_" . substr(md5(rand(1, 32768)), 1, 4);
}
return $var;
}
with:
function seorand()
{
$var = "_" . substr(md5(rand(1, 32768)), 1, 4);
return $var;
}
1 Re: Problem with search files

Sobiech
OP
77
From: -
From: -
Sorry, the function "Delete search queries older then 24 hours" works fine, but there is a problem with searching for the same words.
After removing "word" in the "search queries", I can search again "word" and show the correct results.
After removing "word" in the "search queries", I can search again "word" and show the correct results.
1 Re: Problem with search files

Sobiech
OP
77
From: -
From: -
Unfortunately, it looks like the function (in files modules) "Delete search queries older then 24 hours?" also does not work and does not clean.
Please help. It is very important for me.
Please help. It is very important for me.
1 Re: Problem with search files

Sobiech
OP
77
From: -
From: -
I also tried clean / new CT installations, but the problem also occurs in it.
When I try to search for "word", the correct page with search results pops up (files/results/word.html).
When I try to search for "word" again, the information pops up that nothing is found (eg files/results/word-eb97.html).
When I clear the list in the "search queries", I can search for "word" again, but only once.
Where can the problem be?
I have CT 2.1.19.
Thanks!