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)

Ordovicium 07-10-2017 08:59 PM

Quote:

Originally Posted by Domenico (Post 2579677)
On line 14 replace:
Code:

                parent::vB_HumanVerify_Abstract($registry);
with:
Code:

                parent::__construct($registry);
That's it. :)

Thank you for the fix. Works fine on 4.2.5

WalkingWaldo2 09-03-2017 03:41 AM

Having issues with this MOD after upgrade to vb 4.2.5. register.php does not load if thsi eature is eanbled in Human Verification Actions setting.

Uncheck "register" box and register.php loads.

djbaxter 09-03-2017 08:03 PM

Quote:

Originally Posted by WalkingWaldo2 (Post 2589721)
Having issues with this MOD after upgrade to vb 4.2.5. register.php does not load if thsi eature is eanbled in Human Verification Actions setting.

Uncheck "register" box and register.php loads.

The fix has already been posted above.

See https://vborg.vbsupport.ru/showpost....&postcount=217 and https://vborg.vbsupport.ru/showpost.php?p=2586632

EDIT FILE /includes/class_humanverify_new_recaptcha.php

On line 14 replace:


Code:

                parent::vB_HumanVerify_Abstract($registry);
with:



Code:

                parent::__construct($registry);

RichieBoy67 09-05-2017 08:49 PM

I see this in my log:

mod_fcgid: stderr: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_HumanVerify_NewRecaptcha has a deprecated constructor in /httpdocs/includes/class_humanverify_newrecaptcha.php on line 8, referer: /register.php?

I know it is only a warning but a fix would be nice..

Line 8 is:
class vB_HumanVerify_NewRecaptcha extends vB_HumanVerify_Abstract

djbaxter 09-05-2017 09:08 PM

Quote:

Originally Posted by RichieBoy67 (Post 2589752)
I see this in my log:

mod_fcgid: stderr: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_HumanVerify_NewRecaptcha has a deprecated constructor in /httpdocs/includes/class_humanverify_newrecaptcha.php on line 8, referer: /register.php?

I know it is only a warning but a fix would be nice..

Line 8 is:
class vB_HumanVerify_NewRecaptcha extends vB_HumanVerify_Abstract

Is that after you apply the fix above?

RichieBoy67 09-05-2017 09:10 PM

I applied that fix years ago.. been awhile.

djbaxter 09-05-2017 09:23 PM

Within the class defined at line 8

Code:

class vB_HumanVerify_New_Recaptcha extends vB_HumanVerify_Abstract
is this at line 12

Code:

        function vB_HumanVerify_New_Recaptcha(&$registry)
Could that be the referenced conflict?

RichieBoy67 09-09-2017 07:15 PM

Thanks,

Line 8 is class vB_HumanVerify_NewRecaptcha extends vB_HumanVerify_Abstract

This is line 12: parent::__construct($registry);

djbaxter 09-09-2017 07:30 PM

1 Attachment(s)
This is the first 16 lines of my version - does this not match your version?

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 
vB_HumanVerify_New_Recaptcha(&$registry)
    {
//        parent::vB_HumanVerify_Abstract($registry);
        
parent::__construct($registry);
    }

Complete file is attached.

RichieBoy67 09-09-2017 11:18 PM

Thanks,

Mine is:

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

class vB_HumanVerify_NewRecaptcha extends vB_HumanVerify_Abstract
{
function vB_HumanVerify_NewRecaptcha(&$registry)
{
parent::__construct($registry);
}

function verify_token($input)
{


All times are GMT. The time now is 10:14 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.01494 seconds
  • Memory Usage 1,746KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)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