-
Hi, WP uses this for the return value: The response is created this way: (was, there was wrong error code)
Now, e107 part.
Error:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @Jimmi08, Your issue isn't within the e107 core. The
But Your external web request is responding with something unexpected, so you should look into that. |
Beta Was this translation helpful? Give feedback.
Your glue code is responsible for ensuring the right argument type(s). Otherwise, the behavior is undefined, as you could be passing bad data into the e107 core.
Here's a diagram showing the types that your glue code is juggling:
It just so happens that your JSON object sometimes gives you the
string
type to pass toe_parse::filter()
, but there could also be astdClass
that is not acceptable toe_parse::filter()
. You should perform error handling in your glue code to ensure that thee_parse::filter()
is used correctly.