Title: Debug mode shows error with WP_Scripts::localize since update
Last modified: March 26, 2021

---

# Debug mode shows error with WP_Scripts::localize since update

 *  Resolved [akaleya](https://wordpress.org/support/users/akaleya/)
 * (@akaleya)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/debug-mode-shows-error-with-wp_scriptslocalize-since-update/)
 * 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)

 *  Plugin Author [WBW Plugins](https://wordpress.org/support/users/woobewoo/)
 * (@woobewoo)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/debug-mode-shows-error-with-wp_scriptslocalize-since-update/#post-14200933)
 * Hello [@akaleya](https://wordpress.org/support/users/akaleya/),
 * This bug has already been fixed.
    An updated version of the plugin will be released
   next week.
 * If you urgently need a fix, please contact our [internal support team](https://woobewoo.com/contact-us/).
   
   We will provide you with a beta version.

Viewing 1 replies (of 1 total)

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

 * ![](https://s.w.org/plugins/geopattern-icon/woo-product-filter_a0a6df.svg)
 * [Product Filter for WooCommerce by WBW](https://wordpress.org/plugins/woo-product-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-filter/reviews/)

## Tags

 * [product filter](https://wordpress.org/support/topic-tag/product-filter/)
 * [shop filter](https://wordpress.org/support/topic-tag/shop-filter/)
 * [WooCommerce Filter](https://wordpress.org/support/topic-tag/woocommerce-filter/)

 * 1 reply
 * 3 participants
 * Last reply from: [WBW Plugins](https://wordpress.org/support/users/woobewoo/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/debug-mode-shows-error-with-wp_scriptslocalize-since-update/#post-14200933)
 * Status: resolved