Support Forums - Classified Ads Script Osclass
General osclass questions => Report bug => Topic started by: vnc 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.
-
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?
-
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 ....
-
Well maybe it was not meant to be there, but eill review it to be fixed in 8.1.2
-
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.
-
Does not seems to be related to update.
Go to file:
oc-includes\osclass\controller\login.php
Find:
!$this->is_admin
Replace with:
!osc_is_admin_user_logged_in()
-
Thank you very much! This solution solved the problem. :)
-
Glad to hear that.
Will be included in next osclass update
-
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 ?
-
Maybe you need to add captcha to login form:
<div class="control-group"><?php osc_show_recaptcha('login'); ?></div>
-
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.
-
in upgrade, this form was added to recaptcha validation.