• Resolved webparaplan

    (@webparaplan)


    Have many notice in debug.log from your plugin. Can you fix it in upcoming updates?

    [03-Apr-2026 14:44:34 UTC] PHP Notice: Function WP_Scripts::add was called <strong>incorrectly</strong>. The script with handle "hcaptcha-nf" was enqueued with unregistered dependencies: hcaptcha, nf-front-end, nf-front-end-deps. Additional information can be found on the <a href="https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/">&laquo;Debugging in WordPress&raquo;</a> page. (This message was added in version 6.9.1.) in /my_path/wp-includes/functions.php on line 6131

    I understand this is not a critical error — the plugin works fine — but I like to keep my debug.log clean so I can spot real issues quickly. This notice clutters the log and makes proactive debugging harder.

    • This topic was modified 1 month, 3 weeks ago by webparaplan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor kaggdesign

    (@kaggdesign)

    Спасибо за репорт. Да, это баг, я добавил исправление в следующую версию, которая выйдет в начале мая.

    Вы можете временно исправить у себя, добавив 3 строчки в начало метода \HCaptcha\NF\NF::nf_captcha_script (файл src/php/NF/NF.php)

    if ( ! hcaptcha()->form_shown ) {
    return;
    }

    Thread Starter webparaplan

    (@webparaplan)

    @kaggdesign огонь спасибо

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.