Change Bad-Behaviour to lowercase in wp-super-cache/plugins/badbehaviour.php
-
I was getting the following:
Bad Behaviour support is disabled. (Only half-on caching supported and requires Bad Behaviour in “…/html/wordpress/wp-content/plugins/Bad-Behaviour/”)
Warning! Bad Behaviour not found. Please check your install.
Bad Behaviour is there though at /wordpress/wp-content/plugins/bad-behavior/. It is working. The logs update. The black and white lists work fine.
You’ve capitalized bad-behavior, but I’m assuming that’s only HTML in the php file. I didn’t look.
Ah, upon looking just now, I see that you did capitalize it throughout in /wordpress/wp-content/plugins/wp-super-cache/plugins/badbehaviour.php.
I did a global search and replace from Bad-Behavior to bad-behavior. Now it works at least according to the setting page. I will now test things though to be sure.
I had followed the instructions at https://www.bad-behavior.ioerror.us/documentation/wordpress/ as follows (which I undid before fixing the case above):
Edit the wp-content/plugins/wp-cache/wp-cache-phase1.php or wp-content/plugins/wp-super-cache/wp-cache-phase1.php file and find the following two lines at around line 34 (line 56 [line 70 for me] in WP Super Cache):
if (! ($meta = unserialize(@file_get_contents($meta_pathname))) )
return;Immediately after this, insert the following line:
require_once( ABSPATH . ‘wp-content/plugins/bad-behavior/bad-behavior-generic.php’);
I did also manually switch to “HALF ON.”
I’m as poor as a church mouse. In fact, I am a church mouse of sorts. I hope this support-debugging is worth the cup of coffee I would otherwise afford you via a PayPal donation. God bless. Tom Usher, Real Liberal Christian Church
- The topic ‘Change Bad-Behaviour to lowercase in wp-super-cache/plugins/badbehaviour.php’ is closed to new replies.