• Resolved jfantasybooks

    (@jfantasybooks)


    Hi. I get 6 counts of PHP Errors for the following on the WP-Admin dashboard.

    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.)

    Here is the location tree:

    wp-includes/functions.php:5313
    WP_Scripts->localize()
    wp-includes/functions.wp-scripts.php:221
    wp_localize_script()
    wp-content/plugins/post-smtp/Postman/PostmanViewController.php:173
    PostmanViewController->registerStylesAndScripts()
    wp-includes/class-wp-hook.php:292
    do_action(‘admin_init’)
    wp-admin/admin.php:175

Viewing 8 replies - 1 through 8 (of 8 total)
  • Escalating to developer for comment, please be aware he is very busy so please be patient for a reply. @yehudah

    Kind Regards,
    Tim

    I see these too!

    These should be resovled in the latest update:

    = 2.0.23 – 2021-04-22
    * Fixed: WP_Scripts::localize called incorrectly message.

    Kind Regards,
    Tim

    giggles420

    (@gigglesslut420)

    I still have the “Version 2.0.23 WP_Scripts::localize called incorrectly – Fixed:” problem with current version of plugin, current WP.
    Edit: I see that message in the plugin’s dashboard. It occurred to me that it may not be an error but a notification. Is this an issue?

    • This reply was modified 3 years, 8 months ago by giggles420.
    • This reply was modified 3 years, 8 months ago by giggles420.

    Hi @gigglesslut420,

    Flagging to developer for further investigation.

    Kind Regards,
    Tim

    @yehudah – localize bug recurring

    I also have this error. I have installed the current version 2.0.23: Version 2.0.23'WP_Scripts::localize called incorrectly'- Fixed:

    • This reply was modified 3 years, 6 months ago by Oliver Kler.

    I too have this message showing within the plugin:

    Version 2.0.23 WP_Scripts::localize called incorrectly – Fixed:

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP Error WordPress 5.7.0’ is closed to new replies.