Uncaught (in promise) syntaxerror: unexpected token < in json at position 0 wordpress
Resolved Show Overview of the issueSome websites may face the following JavaScript console error in the Translation Management Dashboard or Translation Management Jobs pages:
This error will also produce a series of PHP warnings like the following: The error is specific to websites running PHP 5.6 and is caused by a deprecation warning triggered by PHP when the
The warning explains how to remove the deprecation notice. WorkaroundEditing the php.ini file
Upgrade PHPUpgrading PHP to a more recent version (7.1 or greater) will remove the deprecation warning. PHP 7.1 is much faster than PHP 5.6. PHP 5.6 reached its end-of-life period on 1st of January 2019. This means that it is a “release that is no longer supported. Users of this release should upgrade as soon as possible, as they may be exposed to unpatched security vulnerabilities.” (source: https://www.php.net/supported-versions.php). Support » Plugin: WooCommerce » syntaxerror: unexpected token < in json at position 0
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
How do I fix unexpected token U in JSON at position 0?The "Unexpected token u in JSON at position 0" error occurs when we pass an undefined value to the JSON. parse or $. parseJSON methods. To solve the error, inspect the value you're trying to parse and make sure it's a valid JSON string before parsing it.
What is Unexpected token in JSON at position 0?Re: Unexpected token in JSON at position 0
This usually means that an error has been returned and that's not valid JSON. Check the browser developer tools console and network tabs. Turn on Debugging and (after reproducing the error) check the web server error logs.
|