Upload media issue API v1.1


Hi everyone! I need help with my code that tweets images. Please help me with this because I’ve run out of ideas.
The problem is that API returns a mysterious error that is not documented anywhere:

{"message":"Error creating status","code":189}

I’ve googled a lot, but nothing helped.

My code is :

$params = array(
‘media[]’ => “@{$image};type=image/jpeg;filename={$image}”,
‘status’ => ‘test’

$code = $tmhOAuth->user_request(array(
‘method’ => ‘POST’,
‘url’ => $tmhOAuth->url(“1.1/statuses/update_with_media”),
‘params’ => $params,
‘multipart’ => true