ERROR: WP_Scripts::localize was called incorrectly.
-
Help! I’ve been getting this error message on the site and the site randomly stops loading:
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/customer/www/prhospice.org/public_html/wp-includes/functions.php on line 5535
I’m hosted on Siteground. I added cloudflare because I thought it would help by using “always up” function. still not helping. I see similar error messages with this theme have cropped up recently but not exactly the same as the above. Any help much appreciated – this is driving me bonkers!
The page I need help with: [log in to see the link]
- The topic ‘ERROR: WP_Scripts::localize was called incorrectly.’ is closed to new replies.