J4 Issue ?
avatar n3t
n3t
20 Sep 2018

Steps to reproduce the issue

Install on Joomla 4 fakecaptcha.zip plugin. It always fails the captcha test. Enable the plugin and set as default in global configuration. Open frontend registration, fill the data and submit the form.

Expected result

User is redirect back to form with error message, that captcha test failed.

Actual result

Error page is displayed - Call to undefined method Joomla\CMS\Captcha\Captcha::getError()

System information (as much as possible)

Joomla 4 alpha 4

Additional comments

There seems to be unported code in Joomla\CMS\Captcha\Captcha - its trying to check getError() which does not exists in Joomla 4 anymore.

Following code in recaptcha plugin (it throws exception on validation failed) will not raise this error, however will show error page to user instead of showing him just error message and giving chance to try the captcha again.

Joomla 3 uses $this->_subject to set those error messages, this is missing in Joomla 4, but can easily be bypassed by directly using Application::enqueueMessage.

avatar n3t n3t - open - 20 Sep 2018
avatar joomla-cms-bot joomla-cms-bot - change - 20 Sep 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Sep 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Sep 2018
Category Authentication
avatar brianteeman brianteeman - change - 20 Sep 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 20 Sep 2018
avatar richard67
richard67 - comment - 20 Sep 2018

Could that be related to issue #22041 for staging?

avatar n3t
n3t - comment - 20 Sep 2018

No, that is onDisplay event issue, this is onCheckAnswer event issue.
More over this is related just to Joomla 4, not Joomla 3.

avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Sep 2018
Status New Discussion
avatar richard67
richard67 - comment - 20 Sep 2018

I know that this here is related to Joomla 4 and the other one to 3. But despite of this it could have been that it was the same issue, that's why I asked.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22266.

avatar richard67
richard67 - comment - 18 May 2019

@n3t Is this still an issue with latest 4.0-dev branch or latest 4.0 Alpha 9? I ask because there have been made many changes since you opened this issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22266.

avatar Quy Quy - change - 1 Jun 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-06-01 20:57:15
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jun 2019
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 1 Jun 2019
avatar joomla-cms-bot
joomla-cms-bot - comment - 1 Jun 2019

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/22266

avatar Quy
Quy - comment - 1 Jun 2019

Closing to due no response and unable to replicate per test instructions.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22266.

Add a Comment

Login with GitHub to post a comment