• I am getting this error on my page:

    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 /var/www/wp-includes/functions.php on line 5313

    I have tried to fix it in file manager with the debugging code and it is not working still.

    Someone please assist me in fixing this issue ASAP

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    Try:
    Deactivating all plugins (yes, all) to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s). If you can’t get into your admin dashboard, try resetting the plugins folder by SFTP/FTP or PhpMyAdmin (read “How to deactivate all plugins when you can’t log in to wp-admin” if you need help). Sometimes, an apparently inactive plugin can still cause problems. Also remember to deactivate any plugins in the mu-plugins folder. The easiest way is to rename that folder to mu-plugins-old

    If you can install plugins, install “Health Check”: https://www.ads-software.com/plugins/health-check/. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Switching to the Twenty Twenty theme to rule out any theme-specific problems. If you can’t log in to change themes, you can remove the theme folders via SFTP/FTP so the only one is twentytwenty. That will force your site to use it.

    Thread Starter sarahpiteo

    (@sarahpiteo)

    I did that and found the issue, now my homepage cuts off weird. Please check it out.

    I don’t know what to do about that.

    https://www.winglakecp.com

    Moderator t-p

    (@t-p)

    now my homepage cuts off weird

    It opens fine for me.

    What do you mean by “homepage cuts off weird”?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress error’ is closed to new replies.