• Resolved Paulo Gomes

    (@pgomes2000)


    Hi,

    I’m with version 5.7.2 and I have the following error when I have this plugin active:
    Notice: WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instaed. Please see Debugging in WordPress for more informatiom. (This message 5.7.0.) in /home/qh4dkxup/shoppingstore/shoppingstore/wp-includes/functions.php on line 5313

    The solution of the array i found on the WP forum on line 221 wp-includes/functions.wp-scripts.php:
    return $wp_scripts->localize( $handle, $object_name, (array)$l10n );

    gives another error:

    Parse error: syntax error, unexpected end of file in /home/qh4dkxup/shoppingstore/shoppingstore/wp-includes/functions.wp-scripts.php on line 419

    and then:

    (This message was added on version 3.1.0.) in /home/qh4dkxup/shoppingstore/shoppingstore/wp-includes/functions.php on line 5313

    Is this plugin be upgrade to be compatible with the last WP version?

    I can inform you that I use woocommerce and teh Flatsome theme.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Paulo Gomes

    (@pgomes2000)

    Hi,

    The prblem was due to the plugin “Login Redirect” which is not maintained for a long time.

    Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Error: The $l10n parameter must be an array’ is closed to new replies.