in der admin/admin_db_maintenance.php findet sich folgende Codestelle:
Code: Alles auswählen
while ($row && ($post_size <= $board_config['dbmtnc_rebuildcfg_maxmemory'] * 1024 || $i < $board_config['dbmtnc_rebuildcfg_minposts']))
{
$last_post = $row['post_id'];
// handle text
$word_list = split_words(clean_words('post', $row['post_text'], $empty_array, $empty_array));
foreach ($word_list as $word)
{
// cutting of long words in functions_search.php seems not to work under some conditions - so check it again
if ( $word != '' && strlen($word) <= 20 )
{
$result_array[0][] = $last_post;
$result_array[1][] = 0;
$result_array[2][] = $word;
}
}
// handle subject
$word_list = split_words(clean_words('post', $row['post_subject'], $empty_array, $empty_array));
foreach ($word_list as $word)
{
// cutting of long words in functions_search.php seems not to work under some conditions - so check it again
if ( $word != '' && strlen($word) <= 20 )
{
$result_array[0][] = $last_post;
$result_array[1][] = 1;
$result_array[2][] = $word;
}
}
unset($word_list);
$row = $db->sql_fetchrow($result);
$i++;
$post_size += strlen($row['post_text']) + strlen($row['post_subject']);
}
Ersetze gegen folgendes:
Code: Alles auswählen
while ($row && ($post_size <= $board_config['dbmtnc_rebuildcfg_maxmemory'] * 1024 || $i < $board_config['dbmtnc_rebuildcfg_minposts']))
{
$last_post = $row['post_id'];
// handle text
$word_list = split_words(clean_words('post', $row['post_text'], $empty_array, $empty_array));
foreach ($word_list as $word)
{
// cutting of long words in functions_search.php seems not to work under some conditions - so check it again
if ( $word != '' && strlen($word) <= 50 )
{
$result_array[0][] = $last_post;
$result_array[1][] = 0;
$result_array[2][] = $word;
}
}
// handle subject
$word_list = split_words(clean_words('post', $row['post_subject'], $empty_array, $empty_array));
foreach ($word_list as $word)
{
// cutting of long words in functions_search.php seems not to work under some conditions - so check it again
if ( $word != '' && strlen($word) <= 50 )
{
$result_array[0][] = $last_post;
$result_array[1][] = 1;
$result_array[2][] = $word;
}
}
unset($word_list);
$row = $db->sql_fetchrow($result);
$i++;
$post_size += strlen($row['post_text']) + strlen($row['post_subject']);
}
Außerdem bitte Backups machen....