Title: WordPress new version Error
Last modified: February 19, 2022

---

# WordPress new version Error

 *  Resolved [Prabhakar](https://wordpress.org/support/users/trainingsadda/)
 * (@trainingsadda)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/wordpress-new-version-error/)
 * 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](https://prnt.sc/10hx431)
    -  This topic was modified 4 years, 3 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-new-version-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/wordpress-new-version-error/#post-14164164)
 * Try [manually resetting your plugins](https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus)(
   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](https://wordpress.org/support/article/ftp-clients/),
   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](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/wordpress-new-version-error/#post-14168888)
 * Are you using the Post SMTP Mailer/Email Log plugin, [@trainingsadda](https://wordpress.org/support/users/trainingsadda/)?
 *  [missveronica](https://wordpress.org/support/users/missveronicatv/)
 * (@missveronicatv)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/wordpress-new-version-error/#post-14169881)
 * 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](https://wordpress.org/support/users/trainingsadda/)
 * (@trainingsadda)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/wordpress-new-version-error/#post-14171086)
 * Yes I’m using Post SMTP plugin [@macmanx](https://wordpress.org/support/users/macmanx/)
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/wordpress-new-version-error/#post-14171114)
 * Ok, then definitely follow the steps at [https://wordpress.org/support/topic/php-error-on-wp-5-7/](https://wordpress.org/support/topic/php-error-on-wp-5-7/)
   until that plugin developer has fixed this.
 *  Thread Starter [Prabhakar](https://wordpress.org/support/users/trainingsadda/)
 * (@trainingsadda)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/wordpress-new-version-error/#post-14171212)
 * Okay thanks. [@macmanx](https://wordpress.org/support/users/macmanx/)

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

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

## Tags

 * [WordPress update](https://wordpress.org/support/topic-tag/wordpress-update/)
 * [wp_scripts](https://wordpress.org/support/topic-tag/wp_scripts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 14 participants
 * Last reply from: [Prabhakar](https://wordpress.org/support/users/trainingsadda/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/wordpress-new-version-error/#post-14171212)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
