PHP errors
High-intent troubleshooting for parsing and validation errors in PHP. Use the exact error message and fix the first real issue.
Jump to section
Top tools (local-only)
- JSON Validator
- JSON Repair
- YAML Validator
- CSV Validator
- XML to JSON
- Base64 Encode/Decode
- URL Encode/Decode
- JWT Decoder
JSON parse / deserialize errors
Most issues are not “bad JSON” but wrong content (HTML), truncation, extra characters, invalid escapes, or encoding.
- json_decode() expects parameter 1 to be string, array given
- json_decode() expects parameter 1 to be string, bool given
- json_decode() expects parameter 1 to be string, float given
- json_decode() expects parameter 1 to be string, int given
- json_decode() expects parameter 1 to be string, null given
- json_decode() expects parameter 1 to be string, object given
- json_decode(): Argument #1 ($json) must be of type string, array given
- json_decode(): Argument #1 ($json) must be of type string, bool given
- json_decode(): Argument #1 ($json) must be of type string, float given
- json_decode(): Argument #1 ($json) must be of type string, int given
- json_decode(): Argument #1 ($json) must be of type string, null given
- json_decode(): Argument #1 ($json) must be of type string, object given
- json_decode(): Control character error, possibly incorrectly encoded
- json_decode(): Malformed UTF-8 characters, possibly incorrectly encoded
- json_decode(): Maximum stack depth exceeded
- json_decode(): Recursion detected
- json_decode(): State mismatch (invalid or malformed JSON)
- json_decode(): Syntax error
- json_encode(): Inf and NaN cannot be JSON encoded
- json_encode(): Malformed UTF-8 characters, possibly incorrectly encoded
- json_encode(): Maximum stack depth exceeded
- json_encode(): Recursion detected
- json_encode(): Type is not supported
- json_last_error_msg(): Control character error, possibly incorrectly encoded
- json_last_error_msg(): Inf and NaN cannot be JSON encoded
- json_last_error_msg(): Invalid property name
- json_last_error_msg(): Malformed UTF-8 characters, possibly incorrectly encoded
- json_last_error_msg(): Maximum stack depth exceeded
- json_last_error_msg(): No error
- json_last_error_msg(): Recursion detected
- json_last_error_msg(): State mismatch (invalid or malformed JSON)
- json_last_error_msg(): Syntax error
- json_last_error_msg(): The decoded string is too long
- json_last_error_msg(): Unknown error
Related hubs
FAQ (quick)
Start here: Errors hub (runs locally, no upload).
Can I fix PHP errors without uploading my data? Yes. no-upload.ru tools run locally in your browser (NO UPLOAD). Start with Errors hub and keep samples redacted if you must share them.
What is the fastest safe workflow? Validate first, fix the smallest broken part, then validate again before converting/exporting. This prevents silent downstream issues.
Why does PHP errors happen? Most issues come from copy/paste truncation, wrong encoding, non-strict syntax (comments/trailing commas), or a shape mismatch (array vs object).
Which tool should I start with for PHP errors? Start with Errors hub. If you still see errors, follow the related playbook/trend report on this page.