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.
User is redirect back to form with error message, that captcha test failed.
Error page is displayed - Call to undefined method Joomla\CMS\Captcha\Captcha::getError()
Joomla 4 alpha 4
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.
Labels |
Added:
?
|
Category | ⇒ | Authentication |
Labels |
Added:
J4 Issue
|
No, that is onDisplay event issue, this is onCheckAnswer event issue.
More over this is related just to Joomla 4, not Joomla 3.
Status | New | ⇒ | Discussion |
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.
@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.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-06-01 20:57:15 |
Closed_By | ⇒ | Quy |
Closed_By | Quy | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/22266
Closing to due no response and unable to replicate per test instructions.
Could that be related to issue #22041 for staging?