azurite: (cat: what the shit is this!?)
[personal profile] azurite
Okay, so WikiFic's spam problem is a LOT worse than I initially thought it was. I implemented a captcha requirement for all new accounts (using ReCaptcha, no less, not just some lame funky image captcha, or numeric captcha!), but poseur accounts are still getting created.

The spam blacklist isn't helping with the fake pages (which relate to diet stuff or new jobs), and in trying to delete the fake pages after properly installing Bad Behavior 2 and the Bad Behavior 2 Extended extensions, I myself have gotten blocked!

I've tried running the cleanup.php script from the command line to blank out the spam pages (it's worked the two times I've done it in the past, even though it leaves me with blank pages to delete), but now I get this error:

Warning: include(./extensions/Bad-Behavior/bad-behavior-mediawiki.php): failed to open stream: No such file or directory in /home/*****/public_html/wikific/LocalSettings.php on line 37

Warning: include(./extensions/Bad-Behavior/bad-behavior-mediawiki.php): failed to open stream: No such file or directory in /home/*****/public_html/wikific/LocalSettings.php on line 37

Warning: include(): Failed opening './extensions/Bad-Behavior/bad-behavior-mediawiki.php' for inclusion (include_path='.:/home/*****/public_html/wikific:/home/*****/public_html/wikific/includes:/home/*****/public_html/wikific/languages') in /home/*****/public_html/wikific/LocalSettings.php on line 37

Warning: require_once(BB2_CWD/bad-behavior/core.inc.php): failed to open stream: No such file or directory in /home/******/public_html/wikific/extensions/Bad-Behavior/bb2ext.php on line 20

Fatal error: require_once(): Failed opening required 'BB2_CWD/bad-behavior/core.inc.php' (include_path='.:/home/*****/public_html/wikific:/home/*****/public_html/wikific/includes:/home/*****/public_html/wikific/languages') in /home/*****/public_html/wikific/extensions/Bad-Behavior/bb2ext.php on line 20

Even though, afaik, all the files are exactly where they should be. So I'm not sure where these calls are coming from that they're formatted wrong and it's looking in the wrong directory, but I don't know how to fix it. I'd rather not "bang" on the code in the hopes of getting it to work, but I'm afraid disabling what little protection Bad Behavior offers would make the situation worse.

And the bad solution that might help the most? Doing a total lockdown on WikiFic.

This sucks. Any help or suggestions would be much appreciated.

ETA: Fixed... sort of. Turns out the issue was with 2 lines of whitespace after the closing PHP tag, which has since been fixed. Bad Behavior is now working, along with the BB2 Extended Special: page, but I've got a truckload of spam pages in the Recent Changes history, which I'm stuck deleting individually, by hand.

The problem is, there are these lines for including a Database Functions file:

include_once( 'includes/DatabaseFunctions.php' );

that are repeated, and I think that's causing the cleanup.php script to fail with the above error. I don't want to render Bad Behavior (which has that line in it, in LocalSettings.php and in somewhere else...I thought the bad-behavior-mediawiki.php file, but maybe since I updated it to the latest version, not?

ETA: Actually, it's because one version of the line was formatted like so:

include_once( './includes/DatabaseFunctions.php' );

(notice the "./"), but when I changed it to:

include_once( 'includes/DatabaseFunctions.php' );

the script ran just fine.

However, I'm still stuck with a truckload of spam pages that have already been created, as well as pages caught by the cleanup script and blanked out.

Anyone know of another way to delete (not just blank-out, as I've been doing with the Spam Blacklist cleanup.php script) pages en masse? It seems like these are all on a specific date, and it'd be nice to have an extension that allows me to tick boxes of pages created on a specified date and delete all the pages I check off, or something like that. Anyone know of something like that, or similar?
From:
Anonymous (will be screened)
OpenID (will be screened if not on Access List)
Identity URL: 
User (will be screened if not on Access List)
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org


 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

January 2016

S M T W T F S
     12
3456789
10111213141516
171819 20212223
24252627282930
31      

Most Popular Tags

Page generated Jun. 22nd, 2017 10:07 pm
Powered by Dreamwidth Studios