Function WP_Scripts::add was called incorrectly
-
Since WordPress v6.9.1 detection was added for when scripts are enqueued with dependencies that are not registered and your plugin generates the following error notice …
[09-Feb-2026 19:12:13 UTC] E_USER_NOTICE: Function WP_Scripts::add was called incorrectly. The script with the handle "hcaptcha-cf7" was enqueued with dependencies that are not registered: hcaptcha. Please see Debugging in WordPress for more information. (This message was added in version 6.9.1.) in /wp-includes/functions.php on line 6131This can easily be replicated on a clean install of WordPress …
- Install Contact Form 7 plugin
- Install hCaptcha for WP
- In “Dashboard – hCaptcha – Integrations” enable “Contact Form 7 – Form Auto-Add” and click “Save Changes”
- Note that “Contact Form 7 – Live Form in Admin” is not required to be enabled to see this error
- Go to “Dashboard – Contact – Contact form 1 – Edit”
- The above error will be found in the PHP error log
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.