WP error with the $l10n parameter must be an array
-
Hi,
I’m with version 5.7.2 and I have the following error:
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 5313The solution of the array i found on the forum:
Line 221 wp-includes/functions.wp-scripts.php
return $wp_scripts->localize( $handle, $object_name, (array)$l10n );give then another error:
Parse error: syntax error, unexpected end of file in /home/qh4dkxup/shoppingstore/shoppingstore/wp-includes/functions.wp-scripts.php on line 419and then:
(This message was added on version 3.1.0.) in /home/qh4dkxup/shoppingstore/shoppingstore/wp-includes/functions.php on line 5313
I don’t know what to do.
Any one can help me please. I can’t see woocommerce statistics, monsterhigh reports, etc..
The page I need help with: [log in to see the link]
- The topic ‘WP error with the $l10n parameter must be an array’ is closed to new replies.