Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:46 am EST
Geeklog Forums
Problem with BadBehavior2
Status: offline
Pushkar
Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Location:Ukraine, Kyiv
After instalation BadBehavior2 plugin I have the problem when I search all publications by author (http://site.com/search.php?type=all&author=2&mode=search)
(This text is only displayed to users in the group 'Root')
2 - strpos() [function.strpos]: Empty delimiter. @ /home/public_html/bad_behavior2/bad-behavior/functions.inc.php line 8
array(3) {
["haystack"]=>
string(189) "?? ??????? ?????? ?.?????????, ??????? ??????? ?????? ? ?????????, ? ??????? ?? «??????????» ???????????? ??? ?????????? – ?????? ? ?????? ???????, ?????????? ?? ????????."
["needle"]=>
string(0) ""
["offset"]=>
int(0)
}
Can you help me to correct this issue?
Text Formatted Code
An error has occurred:(This text is only displayed to users in the group 'Root')
2 - strpos() [function.strpos]: Empty delimiter. @ /home/public_html/bad_behavior2/bad-behavior/functions.inc.php line 8
array(3) {
["haystack"]=>
string(189) "?? ??????? ?????? ?.?????????, ??????? ??????? ?????? ? ?????????, ? ??????? ?? «??????????» ???????????? ??? ?????????? – ?????? ? ?????? ???????, ?????????? ?? ????????."
["needle"]=>
string(0) ""
["offset"]=>
int(0)
}
8
10
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hmm, are you on PHP 4? It looks like both Geeklog and Bad Behavior are trying to use the PHP function stripos(), which only exists as of PHP 5. Both of them know that and try to use workarounds - but those 2 workarounds seem to cause a problem ...
Can't think of an easy fix right now - need to look into this.
bye, Dirk
Can't think of an easy fix right now - need to look into this.
bye, Dirk
5
10
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Geeklog and the bundled plugins (and Bad Behavior2) will work just fine on PHP 5. This is also true for popular plugins like the Forum. Some older plugins may have issues - depends on what you use.
bye, Dirk
bye, Dirk
13
12
Quote
All times are EST. The time is now 01:46 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content