You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
May be this is a better solution - On line no. 18 -
Replace this code - if (isset($error->response->errors)) { $errstr .= ' ('.$error->response->errors[0].')'; }
with this if (isset($error->response->errors)) { if (is_object($error->response->errors[0])) { $errstr .= ' (' . $error->response->errors[0]->code . ' - ' . $error->response->errors[0]->message . ')'; } else { $errstr .= ' (' . $error->response->errors[0] . ')'; } }
A PHP Error was encountered
Severity: 4096
Message: Object of class stdClass could not be converted to string
Filename: API/RequestException.php
Line Number: 19
Response Object is below -
object(stdClass)#61 (2) { ["meta"]=> object(stdClass)#62 (2) { ["status"]=> int(400) ["msg"]=> string(11) "Bad Request" } ["response"]=> object(stdClass)#54 (1) { ["errors"]=> array(1) { [0]=> object(stdClass)#60 (2) { ["code"]=> int(8001) ["message"]=> string(21) "Post cannot be empty." } } } }
The text was updated successfully, but these errors were encountered: