PHP Warning: json_encode(): Invalid UTF-8 sequence in argument
-
This one really has me scratching my head.
I have a site whose error log is filling up with PHP warnings like this:
PHP Warning: json_encode(): Invalid UTF-8 sequence in argument in /home/theusername/public_html/wp-includes/class.wp-scripts.php on line 170
It has been particularly hard to troubleshoot because I can’t reproduce the error by browsing to a particular post or page, though the warning keeps showing up in the error logs.
I’ve searched for this error message but haven’t found an issue involving class.wp-scripts.php. It looks like class.wp-scripts.php handles the enqueueing of scripts, and I don’t see a script name for the site that includes an invalid UTF-8 character.
Does anyone have any idea how I might identify the cause of this warning and fix it?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP Warning: json_encode(): Invalid UTF-8 sequence in argument’ is closed to new replies.