No Code Attached Yet
avatar sevaa
sevaa
2 Dec 2025

Steps to reproduce the issue

I have a custom plugin that loads a form from XML, renders it into an article with Form::renderFieldset() and processes the POST. One of my forms has a captcha type field. The only CAPTCHA plugin that ships with Joomla 6 is invisible reCAPTCHA, and I'd rather keep it and avoid getting another (it's used elsewhere).

The field XML goes:

<field type="captcha" name="Humanity" validate="captcha" label="Are you human?"/>

Expected result

CAPTCHA field is rendered in the way that respects it invisible nature.
CAPTCHA field validates upon form submission.

Actual result

When rendering the form, the label on the captcha field is being drawn - even there is no captcha controls to fill out, on account of being invisible. If I set label to a blank string, the asterisk that denotes a required field is rendered.

Upon form submission and validation, I get the message "Empty solution not allowed" - which is something of a generic reCAPTCHA error.

System information (as much as possible)

Joomla 6.0.1
PHP 8.4.5

Additional comments

The reCAPTCHA badge can be seen in the lower right corner though - the API key and secret are right.
This worked in Joomla 5.4, broke in 6.0.1.
The bogus CAPTCHA field label is quite misleading to users.

avatar sevaa sevaa - open - 2 Dec 2025
avatar joomla-cms-bot joomla-cms-bot - change - 2 Dec 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Dec 2025
avatar sevaa sevaa - change - 2 Dec 2025
The description was changed
avatar sevaa sevaa - edited - 2 Dec 2025
avatar sevaa
sevaa - comment - 3 Dec 2025

No repro on clean install. The bogus render was a template artifact, still investigating the empty solution error.

avatar sevaa sevaa - change - 3 Dec 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-12-03 01:42:31
Closed_By sevaa
avatar sevaa sevaa - close - 3 Dec 2025

Add a Comment

Login with GitHub to post a comment