Problem with Taggings Plugin

Creating and modifying plugins.
Post Reply
sehpferd
Regular
Posts: 29
Joined: Tue Nov 21, 2006 5:41 pm
Contact:

Problem with Taggings Plugin

Post 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));
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem with Taggings Plugin

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply