Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 0 #53

Closed
neo314 opened this issue Mar 24, 2024 · 1 comment
Closed

Error 0 #53

neo314 opened this issue Mar 24, 2024 · 1 comment

Comments

@neo314
Copy link

neo314 commented Mar 24, 2024

This is probably minor. On my development server, if I validate the hcaptcha and then stop the execution on a debug break point. Then resubmit, I get an error 0 for "The CAPTCHA was incorrect". It probably will not come up in the wild, but it would be nice to catch the error or get a message back instead of throwing the exception.

Error: 0

You may not be able to visit this page because of:

an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.

Please try one of the following pages:

[Home Page](https://mydevserver.pc/index.php)
[Search this site](https://mydevserver.pc/index.php?option=com_search)

If difficulties persist, please contact the website administrator and report the error below..

The CAPTCHA was incorrect

Call Stack

Function Location

1 () JROOT\plugins\captcha\hcaptcha\hcaptcha.php:178
2 PlgCaptchaHcaptcha->getResponse() JROOT\plugins\captcha\hcaptcha\hcaptcha.php:141
3 PlgCaptchaHcaptcha->onCheckAnswer() JROOT\libraries\src\Captcha\Captcha.php:261
4 Joomla\CMS\Captcha\Captcha->update() JROOT\libraries\src\Captcha\Captcha.php:216
5 Joomla\CMS\Captcha\Captcha->checkAnswer() JROOT\administrator\components\com_gwrequests\src\Service\HTML\MyHelper.php:605
6 MyBiz\Component\MyComponent\Administrator\Service\HTML\MyHelper->validateCaptcha() JROOT\libraries\src\HTML\HTMLHelper.php:307
7 Joomla\CMS\HTML\HTMLHelper::call() JROOT\libraries\src\HTML\HTMLHelper.php:150
8 Joomla\CMS\HTML\HTMLHelper::_() JROOT\components\com_mycomponent\src\Controller\MyController.php:39
9 MyBiz\Component\MyComponent\Site\Controller\MyController->step1() JROOT\libraries\src\MVC\Controller\BaseController.php:730
10 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT\libraries\src\Dispatcher\ComponentDispatcher.php:143
11 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT\libraries\src\Component\ComponentHelper.php:361
12 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT\libraries\src\Application\SiteApplication.php:218
13 Joomla\CMS\Application\SiteApplication->dispatch() JROOT\libraries\src\Application\SiteApplication.php:261
14 Joomla\CMS\Application\SiteApplication->doExecute() JROOT\libraries\src\Application\CMSApplication.php:306
15 Joomla\CMS\Application\CMSApplication->execute() JROOT\includes\app.php:58
16 require_once() JROOT\index.php:32

@pe7er
Copy link
Owner

pe7er commented Oct 8, 2024

Hi, thank you for your issue report!

I tried to reproduce your issue but am unable to reproduce it.
Locally I use docker with containers for Apache 2, PHP 8.2 and MySQL 8.
I stepped through my code using PHPStorm and XDebug, set break points on every method.

However, I didn't get the error 0 for "The CAPTCHA was incorrect".
I'm closing this issue.

@pe7er pe7er closed this as completed Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants