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)

djbaxter 09-10-2017 12:15 AM

Very strange. I don't know why they would be different.

What version are you using?

Do you get the same warning if you use the version I attached (version 1.0)?

Crotan 09-14-2017 03:27 AM

Quote:

Originally Posted by MarkFL (Post 2586632)
Try this:

Can we get the mod updated? I didn't even notice this until doing the rounds after updating to vBulletin 4.2.5 and php 7. Came right here to look at this thread :)

CAG CheechDogg 09-16-2017 05:55 AM

I'm using this mod just as is and it's working fine ....

Crotan 09-16-2017 06:15 PM

Quote:

Originally Posted by CAG CheechDogg (Post 2589928)
I'm using this mod just as is and it's working fine ....

Sorry the fix is for php 7+, what version of php are you running?

RichieBoy67 09-16-2017 06:17 PM

Quote:

Originally Posted by djbaxter (Post 2589826)
Very strange. I don't know why they would be different.

What version are you using?

Do you get the same warning if you use the version I attached (version 1.0)?

I replaced my file with yours and all seems ok right now.

Thanks! :up:

Scyther 10-08-2017 04:03 AM

Thanks a lot. Working fine.

kh99 10-09-2017 05:50 PM

Haven't been around in quite a while, sorry, but I don't do any vbulletin work any more, and I'm not even set up to test any minor changes or else I'd incorporate the fixes that have been posted. But I do have all my mods marked as reusable so if someone wants to update this or make it work with the invisible option, feel free to release it as a new mod if you want.

- kh99

ekempter 10-19-2017 04:45 PM

I received the following from Google. Am we covered?

Dear Webmaster,
You are receiving this email because you are registered as a website administrator using reCAPTCHA, and your website is still using reCAPTCHA v1, which will be turned off on March 31, 2018.
We announced the reCAPTCHA v1 deprecation in May 2016. Starting in November 2017, a small percentage of reCAPTCHA v1 traffic will begin to show a notice informing users that the old API will soon be retired. Any calls to the v1 API will not work after March 31, 2018.
To ensure continued functionality, you’ll need to update your website to a current version of reCAPTCHA. You can learn more about reCAPTCHA v2, Invisible reCAPTCHA and reCAPTCHA Android API in our Developer’s Guide. The new APIs are simple to implement and will streamline the captcha experience for your users. If you need help, you can engage in the reCAPTCHA Google Developer Group or post to Stack Overflow with the ‘recaptcha’ tag.
We hope that your upgrade will be seamless, and we’re confident you’ll be happy with the results.
Thank you,
reCAPTCHA Support

Bulent Tekcan 10-20-2017 03:05 AM

I got same message from google. Why our version show v1 ?

MarkFL 10-20-2017 04:58 AM

Had you previously enabled v2 in your "Human Verification Manager?"

I got the same email notice today from google, but I hadn't installed this product until just now. :)

woodmj 10-20-2017 07:35 AM

I got the mail this morning too.

I thought this mod used v2 :-?

IggyP 10-20-2017 12:08 PM

its perhaps on the captcha acct side? i havent heard about any mails yet here but there may be one...

just thinking, i thought there was a place on the captcha side to set what key to use/per site designations etc....which i dont know offhand if this mod ignores or not...is it possible its set on captcha1 key on the captcha acct but still working as captcha2 due to the mod?

MarkFL 10-20-2017 12:50 PM

In my case, I had previously chosen v2 as my account type with google, but had selected v1 in my vB settings. Then last night, I installed this product, and now I have v2 selected and now the registration form has the "I'm not a robot" box instead of the old verification involving images with text to be typed into an input field.

djbaxter 10-22-2017 10:34 PM

The add-on version is version 1.

It uses reCaptcha v2. You need to have valid entries in:

Quote:

New reCAPTCHA Site Key
Site key provided to you by reCAPTCHA.

New reCAPTCHA Secret Key
Secret key provided to you by reCAPTCHA.
In the Human Verification options it's listed only as "New reCAPTCHA".

You can test it using:

Quote:

New reCAPTCHA Verification
New and improved version of reCAPTCHA
Click here to test connection

Rob Graves 10-23-2017 06:21 PM

I am receiving this error when I Enable the V2 code:

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

Fatal User Error: Call to undefined method vB_HumanVerify_Abstract::vB_HumanVerify_Abstract() on line 14 in ..../includes/class_humanverify_new_recaptcha.php in ..../vb/vb.php on line 286

Anyone have any ideas? I am using the Image verification for the moment, but would like to get Recaptcha back.

Thanks in advance!

The connection test turns out positive...

twitch 10-24-2017 12:23 AM

Does this work on 4.2.5? Is this the best option for human verification and to stop spambots?

MarkFL 10-24-2017 12:26 AM

Quote:

Originally Posted by twitch (Post 2590693)
Does this work on 4.2.5?...

Yes, and if you're using PHP 7.x you'll need to apply the edit found in the last pages of this discussion. :)

djbaxter 10-24-2017 01:56 AM

vBulletin 4.2.5
Edits for PHP 7.x applied

Just had a message from a forum member who forgot his password. He said that

Quote:

the forgot password and contact us links give this error message:
Code:

"Call to undefined method vB_HumanVerify_Abstract::vB_HumanVerify_Abstract() on line 14 in /home/psychlin/public_html/forum/includes/class_humanverify_new_recaptcha.php
#0 /path/to/forum/includes/class_humanverify.php(61): vB_HumanVerify_New_Recaptcha->vB_HumanVerify_New_Recaptcha(Object(vB_Registry))
#1 //path/to/forum/login.php(197): vB_HumanVerify::fetch_library(Object(vB_Registry))
#2 {main}"


Any suggestions? Testing the connection via the ACP checks out fine and I am using the correct reCaptcha V2 keys.

MarkFL 10-24-2017 02:12 AM

Quote:

Originally Posted by djbaxter (Post 2590696)
vBulletin 4.2.5
Edits for PHP 7.x applied

Just had a message from a forum member who forgot his password. He said that



Any suggestions? Testing the connection via the ACP checks out fine and I am using the correct reCaptcha V2 keys.

I just tested that out on my site, and it worked fine. Are you sure you made the correct PHP 7.x edit to line 14 of "includes/class_humanverify_new_recaptcha.php?"

djbaxter 10-24-2017 02:43 AM

Yes:

PHP Code:

    function vB_HumanVerify_New_Recaptcha(&$registry)
    {
//        parent::vB_HumanVerify_Abstract($registry);
        
parent::__construct($registry);
    } 


MarkFL 10-24-2017 02:51 AM

At the risk of sounding like I am asking you if the appliance that doesn't work is plugged in, are you sure this edit exists in the copy on your server? :)

djbaxter 10-24-2017 02:56 AM

It does. I just tried to reproduce it by logging out and using the Contact Us form. I don't get that error.

Going to test the forgot password form now.

djbaxter 10-24-2017 03:01 AM

It works fine for me. I don't know how he got those errors but I can't reproduce them. Very odd.

To be fair, I did re-upload class_humanverify_new_recaptcha.php before testing. It's possible the version on the server was corrupted or contained an error.

In any case, I can confirm that it's working fine now.

twitch 10-24-2017 12:20 PM

Looks like it is working good with the fix for line 14. Is it possible to force reCAPTCHA and question/answer at the same time?

franzes80 10-24-2017 04:53 PM

1 Attachment(s)
Updated with fix of line 14. To work well you have to uninstall the old version and put that new.works on vbulletin 4.2.5 :)

Flipfloptrader 10-27-2017 11:28 AM

Hi all,

I was wondering if anyone found the fix to the deprecated error on line 8? My error log is just full of the same line and would be nice to get rid of it.

Using 4.2.5 and PHP 7.1.

CharlieDelta 12-21-2017 03:49 PM

I am receiving this error when I try to test registration on my forum.
Code:

Fatal User Error: Call to undefined method vB_HumanVerify_Abstract::vB_HumanVerify_Abstract() on line 14 in ..../includes/class_humanverify_new_recaptcha.php in ..../vb/vb.php on line 286
Any thoughts on how to rectify?

CharlieDelta 12-21-2017 03:50 PM

Oops. Nevermind I just noticed a fix above.
Will try that.

w11cekd 12-29-2017 08:21 AM

I get this error when i register.
Code:

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


djbaxter 12-29-2017 02:48 PM

Fix already posted at https://vborg.vbsupport.ru/showpost....&postcount=217 and https://vborg.vbsupport.ru/showpost.php?p=2586632

EDIT /includes/class_humanverify_new_recaptcha.php

On line 14, FIND:

Code:

                parent::vB_HumanVerify_Abstract($registry);

REPLACE with:

Code:

                parent::__construct($registry);

pettravel 01-07-2018 01:08 PM

There is only a php file in the Includes folder, no XML file. I uploaded the php file to the Includes folder of the forum but (obviously) cannot import it using the Product Manger because it is looking for an XML file. The other file included in the download is version 1. Does anyone have the XML file that should have been included in the download for Recaptcha Version 2? Would really appreciate it.

MarkFL 01-07-2018 01:18 PM

The .XML file is in the download, and should be with the files you unzipped. :)

pettravel 01-07-2018 02:04 PM

HI Mark - there is an XML file in the download: product-kh99_new_receptcha_v1_0.xml but don't believe that is the correct version. That said, for some unknown reason, the new recaptcha showed up in the Human Verification Manager and I have configured it and tested it and all looks good. It does not show as version 2 but the keys that Google provided are for this version. Fingers crossed. Appreciate the quick response.

MarkFL 01-07-2018 02:10 PM

I imported the .XML when installing this product...I don't know what issues, if any, you may encounter by not doing so. There are 4 plugins in the .XML file. :)

TheLordACS 02-24-2018 08:49 PM

Hello,
I searched in entire topic but i can't found a fix for this:
"[ PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_HumanVerify_New_Recaptcha has a deprecated constructor in includes/class_humanverify_new_recaptcha.php on line 8
"
How can if ix this error?

djbaxter 02-24-2018 09:34 PM

Quote:

Originally Posted by TheLordACS (Post 2593113)
Hello,
I searched in entire topic but i can't found a fix for this:
"[ PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; vB_HumanVerify_New_Recaptcha has a deprecated constructor in includes/class_humanverify_new_recaptcha.php on line 8
"
How can if ix this error?

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

EDIT FILE /includes/class_humanverify_new_recaptcha.php

On line 14 REPLACE

Code:

                parent::vB_HumanVerify_Abstract($registry);
with

Code:


                parent::__construct($registry);


Flipfloptrader 02-26-2018 10:38 AM

Quote:

Originally Posted by djbaxter (Post 2593114)
See https://vborg.vbsupport.ru/showpost....&postcount=217

EDIT FILE /includes/class_humanverify_new_recaptcha.php

On line 14 REPLACE

Code:

                parent::vB_HumanVerify_Abstract($registry);
with

Code:


                parent::__construct($registry);



That doesn't fix the error that keeps occuring in the error log.

This is line 8:

Code:

class vB_HumanVerify_New_Recaptcha extends vB_HumanVerify_Abstract
I've tried to search for the fix but no joy.

djbaxter 02-27-2018 05:19 PM

Quote:

Originally Posted by Flipfloptrader (Post 2593140)
That doesn't fix the error that keeps occuring in the error log.

This is line 8:

Code:

class vB_HumanVerify_New_Recaptcha extends vB_HumanVerify_Abstract
I've tried to search for the fix but no joy.

That line is just declaring the class.

Try fixing line 14 as shown above and then make sure you reupload the class_humanverify_new_recaptcha.php to the correct location:

/includes/class_humanverify_new_recaptcha.php

If you still have a problem, reinstall the product using the XML file:
product-kh99_new_recaptcha_v1_0.xml

Also, what you are seeing is just a deprecation warning, not an error. That doesn't affect current use of the product. To suppress such warnings, add this to your /includes/config.php right under the <?php line at the very top:

Code:

define('SKIP_ALL_ERRORS', true);
define('SKIP_DS_ERRORS', true);

Then reupload config.php back to /includes/config.php

Nassou 03-12-2018 03:25 PM

Please note that Curl MUST BE INSTALLED AND ENABLED in your server otherwise it won't work.

omtre.co.uk 03-13-2018 07:26 PM

Hi,
I'm getting a fatal error on registration. It's saying:
Quote:

Originally Posted by Site
Fatal error: Call to undefined method vB_HumanVerify_Abstract::vB_HumanVerify_Abstract() in /home/neregion/public_html/board/includes/class_humanverify_new_recaptcha.php on line 14

Any ideas?


All times are GMT. The time now is 09:06 PM.

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.01647 seconds
  • Memory Usage 1,840KB
  • 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
  • (12)bbcode_code_printable
  • (1)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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