Welcome to Geeklog Sunday, October 24 2021 @ 02:39 pm EDT

Geeklog Forums

Bad behavior2 2.0.0 breaks search function


Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
Error message is:

PHP 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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
More context, please.

Is this a new site you're setting up? If so, did you remember to add the line to lib-common.php?

bye, Dirk
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
Oops! I forgot the extra step

***** 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'Wink;

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
 Quote

All times are EDT. The time is now 02:39 pm.

  • 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