Bad Behaviour mod doesn't work on Bluehost.com

Once you've installed phpList Version 2... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

Bad Behaviour mod doesn't work on Bluehost.com

Postby kyleknapp » 2:33pm, Tue 26 Aug, 2008

I recently migrated to a new webhost (bluehost.com). I did a fresh install of PHPlist, imported the data I'd backed up from the old host using PHPMyAdmin, and everything works fine, except that I'm getting lots of spam sign-ups (174 in the past 12 hours).

So I installed the Bad Behaviour anti-spam mod. It worked great on my old host, completely eliminated the spam-subscription problem, but now, on Bluehost, enableing Bad Behaviour causes my subscribe pages not to work (they appear as blank screens).

It also appears I am unable to compose or edit messages while Bad Behaviour is enabled.

Any ideas?
kyleknapp
PL Geek
 
Posts: 67
Joined: 6:39pm, Tue 29 Aug, 2006
Location: Omaha, NE

Postby J_S » 3:23pm, Tue 26 Aug, 2008

have you tried explaining to your host provider what the problem is, to see if they might be able to fix it?
J_S
Admin
 
Posts: 674
Joined: 10:18pm, Fri 11 Apr, 2003

Postby kyleknapp » 4:09pm, Tue 26 Aug, 2008

yes, I've submitted a support request ticket, and started a thread on the Bluehost forum

No response yet.
kyleknapp
PL Geek
 
Posts: 67
Joined: 6:39pm, Tue 29 Aug, 2006
Location: Omaha, NE

Postby J_S » 4:59pm, Tue 26 Aug, 2008

we'll have to wait, then.
J_S
Admin
 
Posts: 674
Joined: 10:18pm, Fri 11 Apr, 2003

Postby kyleknapp » 2:26pm, Wed 27 Aug, 2008

A Bluehost support tech said errors would occur if folders/files had permissions set to 777, they should be 755. I checked, it looks to me like they're all 755
kyleknapp
PL Geek
 
Posts: 67
Joined: 6:39pm, Tue 29 Aug, 2006
Location: Omaha, NE

Postby kyleknapp » 2:29pm, Wed 27 Aug, 2008

I got a reply from Michael at BadBehaviour, which said

If you're getting a blank screen, you need to check the server error log
to find out what's going on.


The following entries appeared in the server error log last time I tried to load a subscription screen:

[Wed Aug 27 08:06:10 2008] [error] [client 66.249.73.240] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so: undefined symbol: core_globals in Unknown on line 0
[Wed Aug 27 08:06:10 2008] [error] [client 66.249.73.240] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: undefined symbol: ps_globals in Unknown on line 0
[Wed Aug 27 08:06:10 2008] [error] [client 66.249.73.240] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: undefined symbol: core_globals in Unknown on line 0


But I don't really know what they mean, or if they're related to my issue. Is this meaningful to anyone?
kyleknapp
PL Geek
 
Posts: 67
Joined: 6:39pm, Tue 29 Aug, 2006
Location: Omaha, NE

Postby kyleknapp » 2:36pm, Wed 27 Aug, 2008

Actually, I don't think those errors have anything to do with me. I'm guessing the numbers after "[client" in each line are the IP of the domain experiencing the error, and that's not mine.
kyleknapp
PL Geek
 
Posts: 67
Joined: 6:39pm, Tue 29 Aug, 2006
Location: Omaha, NE

Postby kyleknapp » 7:10pm, Wed 27 Aug, 2008

I've figured it out, at least part of it... Doesn't appear to be a problem with Bluehost after all

Once BB is installed, there's a line in the PHPlist index.php file that says
Code: Select all
require_once dirname(__FILE__)."/admin/Bad-Behavior/bb2-phplist.php";

but the corresponding directory on my server is
Code: Select all
/admin/bad-behavior
(note lower-case "b"s)

I don't know how this happened, I thought I'd unzipped the files and FTP'd them without renaming anything, but I'm sure it's probably my own fault.

Anyway, I renamed the directory, and now it works, sort of...

I can view and use my subscribe screens directly with no problem, but all my regular web pages contain a small form where the subscriber enters their email address, clicks on "submit" and are then brought to the subscribe form with the email address already filled in. This used to work fine, but now it results in
Error 403

We're sorry, but we could not fulfill your request for /lists/?p=subscribe&id=1 on this server.

You do not have permission to access this server. Data may not be posted from offsite forms.


I'm guessing when I re-installed BB I downloaded a newer version, which has some new feature in it that prevents pre-loading the form in this way. Before I attempt to find and reintall an older version, can anyone suggest a workaround, or maybe there's a parameter in BB2 to allow postings from kyleknapp.com?

Thanks,
~kyle
kyleknapp
PL Geek
 
Posts: 67
Joined: 6:39pm, Tue 29 Aug, 2006
Location: Omaha, NE

Postby jsherk » 8:15pm, Wed 27 Aug, 2008

What happens when you disable the BB2 mod (USE_BB2=0)? Does everything work as expected from the small form on your other webpages?

I would contact the BB2 author again with that 403 error and see what he thinks!!
jsherk
PL Geek
 
Posts: 101
Joined: 11:37pm, Mon 28 May, 2007

Postby kyleknapp » 9:08pm, Wed 27 Aug, 2008

yes, when I disable BB2, everything works as expected. (I tested it again just now, just to be sure)

I've sent this info to the BB2 author as well, and am waiting for his reply.

Thanks,
~kyle
kyleknapp
PL Geek
 
Posts: 67
Joined: 6:39pm, Tue 29 Aug, 2006
Location: Omaha, NE

Postby kyleknapp » 3:44am, Thu 28 Aug, 2008

Got a reply from Michael at BB
As the message stated, Bad Behavior doesn't accept a form submission which originated from a web site different than the one processing the form. This isn't an issue for most people; in fact, it's very desirable to prevent spammers from posting to your site from a scraped copy of your site. But in the context of mailing list software, it's quite possible the form would legitimately be on a different site, as yours
seems to be.

For now, I would suggest you manually remove the check for this situation from the code, (at lines 32-35 of bad-behavior/post.inc.php) and I will make this a user-selectable option in the next release of Bad
Behavior.

As Michael suggested, I commented out lines 32-35 of post.inc.php and **ta-da!** problem solved!

But I still don't understand why BB2 would think that http://www.kyleknapp.com/lists/?p=subscribe&id=1 (a subscribe page that works) and http://www.kyleknapp.com/index.htm (one of the referring pages) are not on the same site...
kyleknapp
PL Geek
 
Posts: 67
Joined: 6:39pm, Tue 29 Aug, 2006
Location: Omaha, NE

Postby jsherk » 12:48pm, Thu 28 Aug, 2008

If you omit the www on one, but keep it in the other then it could see these as different sites.

For example if you are at http://kyleknapp.com (no www)and try to submit it to http://www.kyleknapp.com (with the www) these could appear to be different sites.

http://kyleknapp.com does not equal http://www.kyleknapp.com
jsherk
PL Geek
 
Posts: 101
Joined: 11:37pm, Mon 28 May, 2007

Postby kyleknapp » 1:24pm, Thu 28 Aug, 2008

I'm not sure I buy that. BB2 author wanted to see an example of the error, so I put lines 32-35 BACK into post.inc.php, and suddenly the error no longer exists.

Strange...

I just tried again, specifically omitting the www from the URL of the posting pages (as, http://kyleknapp.com/bio.htm, http://kyleknapp.com/disco.htm, http://kyleknapp.com/index.htm, etc), still works fine.

www or no www, doesn't seem to make any difference. Now that the problem has disappeared, I am unable to recreate it.
kyleknapp
PL Geek
 
Posts: 67
Joined: 6:39pm, Tue 29 Aug, 2006
Location: Omaha, NE

Postby jsherk » 1:39pm, Thu 28 Aug, 2008

Ahhh... the joys of being a webmaster!!!

FYI:
I just tried joining your mailing list from both kyleknapp.com and www.kyleknapp.com and it worked fine from both. I tried it using IE 6 and FF 3 and they both worked fine!!
jsherk
PL Geek
 
Posts: 101
Joined: 11:37pm, Mon 28 May, 2007

Postby kyleknapp » 2:17pm, Thu 28 Aug, 2008

Thanks Jeff.

I just noticed I am now classified as a PL Geek - sheesh, I still feel like a junior woodchuck...
kyleknapp
PL Geek
 
Posts: 67
Joined: 6:39pm, Tue 29 Aug, 2006
Location: Omaha, NE

Next

Return to Question & Problems - after installing

Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests