This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Problem with search files


avatar
Sobiech 77
From: -
Hi,

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!

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
avatar
Administrator
1342
From: Austria
Sorry, didn't get any notifications from this forum Slightly Frowning Face

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
avatar
OP 77
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.
1 Re: Problem with search files
avatar
OP 77
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.
1 Re: Problem with search files
avatar
OP 77
From: -
I also tried clean / new CT installations, but the problem also occurs in it.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.