Title: Staging and WP_Scripts error
Last modified: October 28, 2024

---

# Staging and WP_Scripts error

 *  Resolved [celinech](https://wordpress.org/support/users/celinech/)
 * (@celinech)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/staging-and-wp_scripts-error/)
 * Hi, I’ve just create a staging version of my website and in the front side, I
   have the following message :
 * Notice: The function WP_Scripts::localize was called incorrectly. The parameter
   $l10n must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script()
   function instead.
   More information: Debugging in WordPress. (This message was
   added in version 5.7.0.) in /home/customer/www/XXX/public_html/XXX_stagi/wp-includes/
   functions.php on line 6085.What can I do to solve the problem? Thanks
    -  This topic was modified 1 year, 7 months ago by [celinech](https://wordpress.org/support/users/celinech/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [alaasalama](https://wordpress.org/support/users/alaasalama/)
 * (@alaasalama)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/staging-and-wp_scripts-error/#post-18099941)
 * Hi [@celinech](https://wordpress.org/support/users/celinech/) 
   This is just a
   WordPress related notice (not an error) and you can hide it on the staging site
   by editing this file (on the staging site’s directory) “/wp-config.php” and add
   this line:
 * `define( 'WP_DEBUG', false );`
 * If that doesn’t work, please add these lines instead:
 * `define( 'WP_DEBUG', true );
   define( 'WP_DEBUG_LOG', true );define( 'WP_DEBUG_DISPLAY',
   false );P.S. If these lines already there, make sure to adjust their values according
   to what I wrote above, and don’t create duplicates of these lines.
 * Let me know how it goes, 
   Thanks, Alaa

Viewing 1 replies (of 1 total)

The topic ‘Staging and WP_Scripts error’ is closed to new replies.

 * ![](https://ps.w.org/wp-staging/assets/icon-256x256.png?rev=2972932)
 * [WP STAGING - WordPress Backup, Restore & Migration](https://wordpress.org/plugins/wp-staging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-staging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-staging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-staging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-staging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-staging/reviews/)

## Tags

 * [staging](https://wordpress.org/support/topic-tag/staging/)
 * [wp_scripts](https://wordpress.org/support/topic-tag/wp_scripts/)

 * 1 reply
 * 2 participants
 * Last reply from: [alaasalama](https://wordpress.org/support/users/alaasalama/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/staging-and-wp_scripts-error/#post-18099941)
 * Status: resolved