*

vnc

  • **
  • 13 posts
Captcha built-in solution did not work after update.
« on: February 03, 2023, 06:51:05 PM »
Hi!

Captcha built-in solution did not work after update.

Only for the login page did not work, for the register page works correctly.

*

MB Themes

Re: Captcha built-in solution did not work after update.
« Reply #1 on: February 03, 2023, 08:43:56 PM »
I do not think it worked here, cannot find recaptcha check for login form even in Osclass 3.8
Do you have functional demo where it works with osclass 8.0.2?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

vnc

  • **
  • 13 posts
Re: Captcha built-in solution did not work after update.
« Reply #2 on: February 06, 2023, 02:52:01 PM »
No, but is a little bit strange, why is she appear if it no meant to work on login page? If the problem persists from osclass 3.8, we are now at 8 ....

*

MB Themes

Re: Captcha built-in solution did not work after update.
« Reply #3 on: February 07, 2023, 12:48:07 PM »
Well maybe it was not meant to be there, but eill review it to be fixed in 8.1.2
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Captcha built-in solution did not work after update.
« Reply #4 on: April 26, 2023, 06:29:27 PM »
Hi! I have a problem after updating os class from 8.1.1 to 8.1.2. The error is somehow related to the recaptcha. If I turn it off. The error disappears. It appears when the user logs into the account.
Such errors are issued.

Warning: Undefined property: CWebLogin::$is_admin in /var/www/u0703794/data/www/rautor.ru/oc-includes/osclass/controller/login.php on line 58

Warning: Cannot modify header information - headers already sent by (output started at /var/www/u0703794/data/www/rutor.ru/oc-includes/osclass/utils.php:2278) in /var/www/u0703794/data/www/rautor.ru/oc-includes/osclass/utils.php on line 2284

P.S. Although after reloading the page, the login turns out to have been completed. I ask for help.

*

MB Themes

Re: Captcha built-in solution did not work after update.
« Reply #5 on: April 27, 2023, 01:33:50 PM »
Does not seems to be related to update.
Go to file:
oc-includes\osclass\controller\login.php

Find:
Code: [Select]
!$this->is_admin
Replace with:
Code: [Select]
!osc_is_admin_user_logged_in()
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Captcha built-in solution did not work after update.
« Reply #6 on: April 27, 2023, 06:38:49 PM »
Thank you very much! This solution solved the problem.  :)

*

MB Themes

Re: Captcha built-in solution did not work after update.
« Reply #7 on: May 03, 2023, 06:06:14 PM »
Glad to hear that.
Will be included in next osclass update
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Captcha built-in solution did not work after update.
« Reply #8 on: May 14, 2023, 05:38:01 PM »
I have the same problem and tried the solution here.
Changed the called function but still have the same error.
On login page get reCaptcha error.
The recaptura configuration is on osclass/settings/spam and bots - native osclass running version 8.1.2 - not using any captcha plugin
Sorry but I'm still looking for the log files to find an error registered in the log.
Any other hint ?

*

MB Themes

Re: Captcha built-in solution did not work after update.
« Reply #9 on: May 15, 2023, 03:04:29 PM »
Maybe you need to add captcha to login form:
Code: [Select]
<div class="control-group"><?php osc_show_recaptcha('login'); ?></div>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Captcha built-in solution did not work after update.
« Reply #10 on: May 16, 2023, 09:25:52 AM »
Thanks I’ll look into the login form.
However it was working before the upgrade, could it be that was removed ?
I’ll check.
Thanks for the hint.

*

MB Themes

Re: Captcha built-in solution did not work after update.
« Reply #11 on: May 16, 2023, 02:25:04 PM »
in upgrade, this form was added to recaptcha validation.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots