Bug in the new Defensio plugin for WordPress

22 Nov
2007


Found my first bug in the latest Defensio plugin version 1.1.2. Upon activating the plugin a few things stop working in my WordPress admin section.

1. Can’t load the Defensio quarantine page from the dash board.

2. Can’t load the plugin editor anymore.

3. Can’t load the theme editor anymore.

Once I have the Defension-anti-spam plugin turned off everything is back to normal.

I ain’t no php specialist so I can’t operate on the source files but I’ve submitted a bug report at Defensio’s Community site in hopes for a quick response.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • BlinkList
  • Identi.ca
  • LinkedIn
  • Turn this article into a PDF!
  • Ping.fm
  • StumbleUpon
  • MySpace
  • Twitter

9 Responses to Bug in the new Defensio plugin for WordPress

Avatar

Carl Mercier

November 22nd, 2007 at 2:03 am

Hi,

Did you delete the ‘defensio’ directory in plugins and copy the new version to ‘defensio-anti-spam’ instead? (the process is mentioned in the docs).

From your screenshot, it looks like your WP tries to load defensio/defensio.php which, technically, should not exist anymore.

Avatar

Danny

November 22nd, 2007 at 2:06 am

Hi Carl,

yup, i did. the path currently is “/www/wp-content/plugins/defensio-anti-spam/”

could it be with the DB? can i clear out all defensio table?

Avatar

Danny

November 22nd, 2007 at 2:12 am

Carl, below is from the 1.1.2 defensio.php file

function defensio_render_activity_box() {
$link_base = 'edit-comments.php';
$link = clean_url($link_base . '?page=defensio/defensio.php');

$obvious_spam_count = defensio_wp_spam_count(true);
$total_spam_count = defensio_wp_spam_count(false);

echo "

Defensio Spam

";
if ($total_spam_count == 0) {
echo "Your Defensio quarantine is empty. Awesome!";
} elseif ($total_spam_count == 1) {
echo "You have $total_spam_count spam comment";
if ($obvious_spam_count > 0) { echo " ($obvious_spam_count obvious)"; }
echo " in your Defensio quarantine.";
} elseif ($total_spam_count > 1) {
echo "You have $total_spam_count spam comments";
if ($obvious_spam_count > 0) { echo " ($obvious_spam_count obvious)"; }
echo " in your Defensio quarantine.";
}
}

Avatar

Danny

November 22nd, 2007 at 2:34 am

Look for the below snippet within the defensio.php and change the defensio to defensio-anti-spam. This will fix the first issue seen above. The activity box link.

function defensio_render_activity_box() {
$link_base = ‘edit-comments.php’;
$link = clean_url($link_base . ‘?page=defensio-anti-spam/defensio.php’); <–CHANGE THIS ONLY

$obvious_spam_count = defensio_wp_spam_count(true);
$total_spam_count = defensio_wp_spam_count(false);

The change above will fix the activity box miss link.

Avatar

Wing Loon

November 22nd, 2007 at 2:44 am

Bro, I am having the same issue…

Avatar

Carl Mercier

November 22nd, 2007 at 3:06 am

I just updated the plugin to fix the first issue you mentioned and a few more minor glitches. You can get the update here:

http://downloads.wordpress.org/plugin/defensio-anti-spam.1.1.3.zip

We’ll have to spend more time on the plugin and theme editor problems you reported, however. Thanks for the help!

Avatar

Danny

November 22nd, 2007 at 12:16 pm

Thanks Carl

Avatar

Defensio anti spam 1.1.3 released | The Danesh Project

November 22nd, 2007 at 12:35 pm

[...] are still a few pending issues I wrote about in my previous post which the Defensio team is working to resolve now. Thanks Carl [...]

Avatar

toxicle

November 23rd, 2007 at 9:28 am

Spam Karma is the way to go.

Comment Form

top