• Resolved Ron

    (@donniepeters)


    It has taken me some time to figure out where literally thousands of errors are showing up in the debug log on a website. They disappear when I deactivate Geo My WP plugin.

    Here is the error….
    [15-Feb-2022 20:09:20 UTC] PHP 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 instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /home/xxx123/public_html/wp-includes/functions.php on line 5768

    Because I have the plugin loaded in a side panel widget, in one log that was for 3 weeks I had over 10,000 entries of this error.

    Plugin version is 3.7.2
    Wordpress Version is 5.9

    • This topic was modified 2 years, 9 months ago by Ron.
Viewing 1 replies (of 1 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Thank you, @donniepeters, for pointing out this issue.

    Just released a new update ( v3.7.2.1 ) with a fix.

    Let me know if you still see any warnings after updating the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Thousands of errors in debug log’ is closed to new replies.