Parse error: Unclosed ‘{‘ on line 20 in?/home/u487287503/domains/znoober.com/public_html/wp-content/plugins/stop-registration-spam/stop_registration_spam.php?on line?155
getting that error.
]]>I have a problem with spam registration. I have even removed the user registration from my site, yet I still get registrations. How is this possible? What do I need to do?
]]>Version of plugin 1.12
https://www.ads-software.com/plugins/stop-registration-spam/
]]>I put in a formal name for my answer. The plugin does a strtolower on the user’s answer but NOT the normal answer.
Quick fix:
// do validation
function tom_custom_answer_f($login,$email,$errors){
global $tom_custom_question_a,$tom_custom_question_z;
if (strtolower($_POST['tomcustomq']) != strtolower($tom_custom_question_a)){
$errors->add('tom_captcha_error',__($tom_custom_question_z));
};
}
https://www.ads-software.com/plugins/stop-registration-spam/
]]>I found this error in my error log so i looked at the file and it appears the problem is that there is a \ where it should not be on that line.
The current line is
function tom_custom_question_f(){\
global $tom_custom_question_q;
$html = '
and i think i should be withhout the \ after the {
so i changed it to
function tom_custom_question_f(){
global $tom_custom_question_q;
$html = '
And it seems to run fine now.
Just wanted to let you know thanks.
https://www.ads-software.com/extend/plugins/stop-registration-spam/
]]>