Page 1 of 1

Problem with Taggings Plugin

Posted: Tue Nov 21, 2006 5:46 pm
by sehpferd
Warning: stristr(): Empty delimiter. in /kunden/xxxx_xxxx/liebepur/serendipity/plugins/serendipity_event_freetag/serendipity_event_freetag.php on line 577

Good Morning - I get thjis error when I try to save or modify a posting.

I have no idea what delimiter is required nor how to solve the problem.

The code is:
if (stristr($searchtext, $keyword)) {
foreach($ktags AS $tag => $is_assigned) {
if (!is_array($tags) || !in_array(strtolower($tag), $tags)) {
if ($to_lower) {
if (function_exists("mb_strtolower")) {
$tag = mb_strtolower($tag);
} else {
$tag = strtolower($tag);
}
}

$tags[] = $tag;
printf(PLUGIN_EVENT_FREETAG_KEYWORDS_ADD, htmlspecialchars($keyword), htmlspecialchars($tag));

Re: Problem with Taggings Plugin

Posted: Wed Nov 22, 2006 10:16 am
by garvinhicking
Hi!

That's strange, I don't know how stristr can emmit such a message?!

Can you please chang the code you posted and add this line beofre the stristr:

Code: Select all

echo "Searchtext: $searchtext<br />\nKeyword: $keyword<br />\n";
Then save again and see what it outputs there?

Best regards,
Garvin