Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 10:13 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
10
14
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
I forgot the extra step
Thank you.
Ben
I'm available to customise your themes or plugins for your Geeklog CMS
***** 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';
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
11
9
Quote
All times are EDT. The time is now 10:13 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