• Resolved Prabhakar

    (@trainingsadda)


    I just updated WordPress new version.
    It is showing some error on the wp panel.
    Here is the 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 instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /home/whataqhc/public_html/wp-includes/functions.php on line 5313”

    Here is the screenshot: https://prnt.sc/10hx431

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator James Huff

    (@macmanx)

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Moderator James Huff

    (@macmanx)

    Are you using the Post SMTP Mailer/Email Log plugin, @trainingsadda?

    missveronica

    (@missveronicatv)

    Until being fixed by a WP/plugin developer

    Line 221 wp-includes/functions.wp-scripts.php

    return $wp_scripts->localize( $handle, $object_name, (array)$l10n );

    Thread Starter Prabhakar

    (@trainingsadda)

    Yes I’m using Post SMTP plugin @macmanx

    Moderator James Huff

    (@macmanx)

    Ok, then definitely follow the steps at https://wordpress.org/support/topic/php-error-on-wp-5-7/ until that plugin developer has fixed this.

    Thread Starter Prabhakar

    (@trainingsadda)

    Okay thanks. @macmanx

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WordPress new version Error’ is closed to new replies.