V
V
Vasya Borisevich2018-04-16 14:52:35
Software testing
Vasya Borisevich, 2018-04-16 14:52:35

What do these errors say?

When testing the site, two errors pop up

PHP warning(500): Creating default object from empty value

JSON.parse: unexpected end of data at line 1 column 1 of the JSON data ::

I do not need a solution to these errors, just tell me what they indicate. How to understand these errors.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2018-04-16
@ki11k4

JSON.parse: unexpected end of data at line 1 column 1 of the JSON data ::

Well, it is clearly visible that here the data suddenly ended for JSON. Either unclosed quotes / brackets / what you have a separator, or the data is not in JSON format at all. In general, the data is incorrect, it was not possible to parse them.
And the first error, most likely, arises from the second - instead of the received data, they received empty unparsed values ​​and are trying to operate on them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question