• Resolved webparaplan

    (@webparaplan)


    Hello! In debug.log too many warnings

    [06-Apr-2026 07:18:29 UTC] PHP Notice: Function WP_Scripts::add was called <strong>incorrectly</strong>. The script with handle "thwcfd-checkout-script" was enqueued with unregistered dependencies: selectWoo. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">&laquo;Debugging in WordPress&raquo;</a> for more information. (This message was added in version 6.9.1.) in /data/www/kapusta-fashion.ru/wp-includes/functions.php on line 6131
    • I understand this is not a critical bug — it’s just a PHP notice and doesn’t break any functionality
    • However, I like to keep my debug.log clean and follow WordPress coding standards
    • selectWoo appears to be a legacy/deprecated script (it was replaced by wc-select in modern WooCommerce)
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Elena

    (@elenathemehigh)

    Hi,

    Could you please check after adding the below code in your theme’s functions.php file?

    function th34r_enqueue_custom_scripts() {

    if (!is_checkout()) return;

    // Register only if missing
    if (!wp_script_is('selectWoo', 'registered')) {
    wp_register_script(
    'selectWoo',
    WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full.min.js',
    array('jquery'),
    null,
    true
    );
    }

    wp_enqueue_script('selectWoo');

    }
    add_action('wp_enqueue_scripts', 'th34r_enqueue_custom_scripts', 20);

    Could you please check and verify if this works for you?

    Thank you!

    Thread Starter webparaplan

    (@webparaplan)

    @elenathemehigh I’m add this ti my function.php and clear cache – but not helped(

    Plugin Support Elena

    (@elenathemehigh)

    Your issue needs a detailed check. Can you please raise a ticket through our website? We hope our technical team will be able to help you.

    Thank you!

    Plugin Support Elena

    (@elenathemehigh)

    Since we haven’t heard back from you, we believe that your issue is resolved. We’ll go ahead and mark this thread as resolved.

    Thank you!

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

You must be logged in to reply to this topic.