vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Anti-Spam Options - reCAPTCHA v2 Human Verification (https://vborg.vbsupport.ru/showthread.php?t=315960)

Alan_SP 05-28-2017 02:54 PM

You can put there whatever, but you need to be careful. If you place there single letter a, you'll block everyone who have letter a in mail address.

astra121 06-11-2017 06:07 PM

After correcting the error in line 14, an error occurs in line 8, who knows the solution methods?
PHP Code:

PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHPvB_HumanVerify_New_Recaptcha has a deprecated constructor in /home/id/public_html/includes/class_humanverify_new_recaptcha.php on line 8 

Maybe in the PHP 7.1.3 settings I did not put a check somewhere?

MarkFL 06-11-2017 09:31 PM

Post the entire class definition surrounding line 8, and I will rewrite it to work correctly with PHP 7.x. :)

astra121 06-12-2017 04:09 AM

PHP Code:

<?php
if (!isset($GLOBALS['vbulletin']->db))
{
    exit;
}
require_once(
DIR '/includes/class_vurl.php');

class 
vB_HumanVerify_New_Recaptcha extends vB_HumanVerify_Abstract
{
    public static 
$verify_url 'https://www.google.com/recaptcha/api/siteverify';
    
    function 
__construct(&$registry)
    {
        
parent::__construct($registry);
    }

    private static function 
get_error_phrase($result)
    {
        if (isset(
$result['error-codes']))
            
$errormsg current($result['error-codes']);
        else
            
$errormsg '';
        switch (
$errormsg)
        {


MarkFL 06-13-2017 02:56 PM

That doesn't appear to be the entire class definition.

sevans03 06-28-2017 07:14 PM

Installed and working great, thanks!

Rideharder 06-28-2017 10:15 PM

Working with 4.2.5 PHP 7? Can you guys upload what we need for 4.2.5 thanks!

Update, I fix the code on line 14 and looks like all is working. Thanks!

KubisForce 07-03-2017 08:05 AM

Hello,

I am using vb 4.2.5 and recaptcha isnt working. Whenever I sent of a registration I get:
reCAPTCHA could not be verified due to server issues. Please try again later.

In test connection everything seems to be fine and I get no error.
I already did the fix for line 14. Is there any log to further diagnose it?

blade5000 07-08-2017 02:03 PM

have error code by vb 4.2.5

Code:

Call to undefined method vB_HumanVerify_Abstract::vB_HumanVerify_Abstract() on line 14 in /home/xxxxxx/public_html/includes/class_humanverify_new_recaptcha.php
#0 /home/xxxxxx/public_html/includes/class_humanverify.php(61): vB_HumanVerify_New_Recaptcha->vB_HumanVerify_New_Recaptcha(Object(vB_Registry))
#1 /home/xxxxxxxx/public_html/register.php(1244): vB_HumanVerify::fetch_library(Object(vB_Registry))
#2 {main}

not error
class_humanverify_new_recaptcha.php

PHP Code:

parent::__construct($registry); 

work by 7.0

is nice software ;)

RichieBoy67 07-08-2017 02:21 PM

Quote:

Originally Posted by blade5000 (Post 2588240)
have error code by vb 4.2.5

Code:

Call to undefined method vB_HumanVerify_Abstract::vB_HumanVerify_Abstract() on line 14 in /home/xxxxxx/public_html/includes/class_humanverify_new_recaptcha.php
#0 /home/xxxxxx/public_html/includes/class_humanverify.php(61): vB_HumanVerify_New_Recaptcha->vB_HumanVerify_New_Recaptcha(Object(vB_Registry))
#1 /home/xxxxxxxx/public_html/register.php(1244): vB_HumanVerify::fetch_library(Object(vB_Registry))
#2 {main}

not error
class_humanverify_new_recaptcha.php

PHP Code:

parent::__construct($registry); 

work by 7.0

is nice software ;)

https://vborg.vbsupport.ru/showpost....&postcount=217


All times are GMT. The time now is 06:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01492 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete