Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Plugins by

I've downloaded the latest version of VSBP and it worked well in the localhost (in my laptop). But When I installed it to a live site, it is not working anymore. Instead it shows the following error, even if the correct answer is provided.

Question2Answer fatal error:

You are detected as a spammer and Not allowed to register here

Stack trace:

require() in index.php:27
require() in qa-index.php:183
qa_get_request_content() in qa-page.php:819
require() in qa-page.php:203
qa_create_new_user() in register.php:115
qa_call_override() in users-edit.php:155
qa_call() in qa-base.php:648
qa_create_new_user_override_1_in_qa_registration_blocker_overrides_php() in qa-base.php:602

Any idea to solve this problem?

Q2A version: 1.7
I have the same problem!!!  I couldn't manage it and deleted it. Though if you have many users  it's sometimes useful so that guests will see it and join your community

1 Answer

+2 votes
selected by
Best answer

I think you guys are in the wrong direction. I downloaded that plugin and couldn't find the "You are detected as a spammer and Not allowed to register here" string anywhere so I googled it and found it here: https://github.com/amiyasahu/q2a-registration-blocker/blob/master/qa-registration-blocker-lang-default.php . So I'm pretty sure you have installed that plugin too.

So, as you can see the issue is on the q2a-registration-blocker plugin. I took a very quick look at the code and noticed this plugin checks on registration if the username, IP address or email are marked as SPAM in StopForumSpam. The plugin only performs that check if the "Ban Spammer IP Addresses from Registration" is enabled. However, it seems there is a bug there, because the plugin doesn't check if the the plugin itself is enabled or not. This means that even if you disable it, it will still perform the check. The only way to avoid that check is unchecking the "Ban Spammer IP Addresses from Registration".

You can fix this issue locating this file qa-registration-blocker-overrides.php and modifying this line:


So that it looks like this (it is actually a single line but it gets wrapped in the answer):

if(qa_opt(qas_ubl_opt::PLUGIN_ACTIVE) && qa_opt(qas_ubl_opt::BAN_SPAM_IPS)){

I haven't tested this myself but seems to be the way to go. Once you're done with it unchecking the plugin enabled setting will actually disable it at user registration.

Oopss missed it . Thanks for noting this . I fixed this option .
Thanks pupi1985! You're my savior! :)
+1 Thank you pupi.