Impossible config hCaptcha
-
Bug Report: hCaptcha for WP 4.22.0 – Settings Form Fields Are Readonly and Submit Button Is Disabled Environment
- WordPress: 6.9 (latest stable)
- Theme: X 10.7.11 (latest stable)
- hCaptcha for WP: 4.22.0
- Browser: Chrome (latest), also tested with Firefox
- Server: Nginx + DirectAdmin + CloudLinux
Description
On the hCaptcha General settings page (
wp-admin/admin.php?page=hcaptcha), the Site Key and Secret Key input fields are rendered withreadonly="readonly"attribute, and the “Save Changes” submit button hasdisabled="disabled". This makes it completely impossible to enter or modify the hCaptcha credentials through the normal browser interface.The fields cannot be clicked, typed into, or pasted into. The submit button cannot be clicked either.
I was only able to configure the plugin by using Claude Code (an AI assistant) with Playwright browser automation to programmatically:
- Remove the
readonlyattribute from both#site_keyand#secret_keyinputs viadocument.getElementById('site_key').removeAttribute('readonly') - Set the values using JavaScript’s native input value setter and dispatching
input/changeevents - Remove the
disabledattribute from the#submitbutton before triggering the click
Without this programmatic workaround, the plugin is unconfigurable through normal user interaction. Steps to Reproduce
- Install and activate hCaptcha for WP 4.22.0
- Navigate to hCaptcha > General
- Try to click on the Site Key or Secret Key fields
- Observe: fields are readonly, cursor shows no-edit icon
- Try to click “Save Changes” button
- Observe: button is disabled and unresponsive
Expected Behavior
Fields should be editable and the Save button should be enabled, allowing users to enter their hCaptcha credentials normally. Additional Note
There is also an unrelated SVG icon bug in the X theme (
x/framework/setup.phpline 150) whereadd_menu_page()concatenates'data:image/svg+xml;base64,' . x_admin_menu_logo()but the functionx_admin_menu_logo()already returns the full data URI including the prefix, resulting in a doubleddata:image/svg+xml;base64,data:image/svg+xml;base64,...that triggersnet::ERR_INVALID_URLin the console. This is a theme bug, not an hCaptcha bug, but it appears on the same admin page and may cause confusion.
https://multimedia.castris.com/videos/hcapctha-WP.mp4The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.