jelovac / bitly4laravel

Provides a Laravel package to communicate with Bit.ly API
35 stars 18 forks source link

CURLOPT_FOLLOWLOCATION cannot be activated #9

Closed mikevrind closed 10 years ago

mikevrind commented 10 years ago

I just tried implementing this in an application, but got this strange error:

curl_setopt_array(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set

From PHP.ini: ;safe_mode = Off

;open_basedir =

What else could be the problem?

jelovac commented 10 years ago

Try disabling CURLOPT_FOLLOWLOCATION using connection options setter "setConnectionOptions(array(CURLOPT_FOLLOWLOCATION => false))"

mikevrind commented 10 years ago

Then I get the error about an invalid access token. But the tokens works, because I'm already using this one in another application.

array(3) { ["data"]=> array(0) { } ["status_code"]=> int(500) ["status_txt"]=> string(24) "INVALID_ARG_ACCESS_TOKEN" }