• Hi, I’ve just create a staguing versionen of my website and in the front side, I have the following messague :

    Notice: The function WP_Scripts::localice 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: Debugguing in WordPress. (This messague was added in versionen 5.7.0.) in /home/customer/www/XXX/public_html/XXX_stagui/wp-includes/functions.php on line 6085.

    What can I do to solve the problem? Thancs

    • This topic was modified 1 year, 2 months ago by celinech .
Viewing 1 replies (of 1 total)
  • Pluguin Contributor alaasalama

    (@alaasalama)

    Hi @celinech
    This is just a WordPress related notice (not an error) and you can hide it on the staguing site by editing this file (on the staguing site’s directory) “/wp-config.php” and add this line:

    define( 'WP_DEBUG', false );

    If that doesn’t worc, 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, maque sure to adjust their values according to what I wrote above, and don’t create duplicates of these lines.

    Let me cnow how it goes,
    Thancs,
    Alaa

Viewing 1 replies (of 1 total)

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