Welcome to Geeklog, Anonymous Sunday, September 01 2024 @ 01:28 am EDT
Geeklog Forums
Bad behavior2 2.0.0 breaks search function
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Error message is:
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
Text Formatted Code
Table 'mytable.gl_bad_behavior2' doesn't exist. SQL in question: SELECT COUNT(*) FROM gl_bad_behavior2 WHERE 1=1 AND ((ip LIKE '%RT2012%' OR http_headers LIKE '%RT2012%'))Ben
I'm available to customise your themes or plugins for your Geeklog CMS
13
20
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
![Oops! Oops!](https://www.geeklog.net/forum/image_set/pixel.gif)
***** IMPORTANT! EXTRA STEP FOR THIS PLUGIN *****
5) Edit your lib-common.php file. Find the line where the lib-database.php is
included:
require_once( $_CONF['path_system'] . 'lib-database.php' );
AFTER that line, add:
require_once($_CONF['path_html'] . 'bad_behavior2/bad-behavior-geeklog.php'
;
Note: As of Geeklog 1.6.1, the include for lib-database.php is done by the
config class, so you won't find the above line any more. A good place for
the bad_behavior2 include would be just before where we set the webserver's
timezone:
require_once $_CONF['path_html'] . 'bad_behavior2/bad-behavior-geeklog.php';
/**
* Set the webserver's timezone
*/
5) Edit your lib-common.php file. Find the line where the lib-database.php is
included:
require_once( $_CONF['path_system'] . 'lib-database.php' );
AFTER that line, add:
require_once($_CONF['path_html'] . 'bad_behavior2/bad-behavior-geeklog.php'
![Wink Wink](https://www.geeklog.net/forum/image_set/pixel.gif)
Note: As of Geeklog 1.6.1, the include for lib-database.php is done by the
config class, so you won't find the above line any more. A good place for
the bad_behavior2 include would be just before where we set the webserver's
timezone:
require_once $_CONF['path_html'] . 'bad_behavior2/bad-behavior-geeklog.php';
/**
* Set the webserver's timezone
*/
Thank you.
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
17
16
Quote
All times are EDT. The time is now 01:28 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