• Resolved akaleya

    (@akaleya)


    Hello, my site is under construction. Today, I made the updates to wordpress 5.7 and since the debug mode display this error :

    “WP_Scripts::localize est appelée de la mauvaise manière. Le paramètre $l10n doit être un tableau. Pour transmettre des données arbitraires aux scripts, utilisez plutôt la fonction wp_add_inline_script(). Veuillez lire Débogage dans WordPress (en) pour plus d’informations. (Ce message a été ajouté à la version 5.7.0.)”.

    I checked with Query Monitor :
    – location : `wp-includes/functions.php:5313
    WP_Scripts->localize()
    wp-includes/functions.wp-scripts.php:221
    wp_localize_script()
    wp-content/plugins/woo-product-filter/classes/frame.php:420
    FrameWpf->addJSVar()
    wp-content/plugins/woo-product-filter/modules/woofilters/views/woofilters.php:274
    WoofiltersViewWpf->addCommonAssets()
    wp-content/plugins/woo-product-filter/modules/woofilters_widget/elementor/woofilters.php:37
    Woofilters_ElementorWidgetWpf->__construct()
    wp-content/plugins/woo-product-filter/modules/woofilters_widget/mod.php:18
    Woofilters_WidgetWpf->registerElementorWidget()
    wp-includes/class-wp-hook.php:292
    do_action(‘elementor/widgets/widgets_registered’)
    wp-content/plugins/elementor/includes/managers/widgets.php:99
    Elementor\Widgets_Manager->init_widgets()
    wp-content/plugins/elementor/includes/managers/widgets.php:191
    Elementor\Widgets_Manager->register_widget_type()
    wp-content/plugins/elementor-for-sonaar/widgets/sr-sitelogo.php:918
    Elementor_Sonaar->sr_init_extensions()
    wp-includes/class-wp-hook.php:292
    do_action(‘init’)
    wp-settings.php:560`
    – component : Plugin: woo-product-filter

    Could you help me please ?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Debug mode shows error with WP_Scripts::localize since update’ is closed to new replies.