cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

I get error readline() function

New member | Level 1
New member | Level 1

i try curl login dropbox but i alway get this error..

 

1. Go to: https://www.dropbox.com/1/oauth2/authorize?locale=&client_id=qb8y2vxw727tgqh&response_type=code 2. Click "Allow" (you might have to log in first). 3. Copy the authorization code.
Fatal error: Call to undefined function readline()

i installed readline on my server .

Thank you

1 Reply 1
Highlighted

Re: I get error readline() function

Dropboxer
Dropboxer

Is the output you shared from before or after you installed readline? In any case, based on the error message you've shared, it looks like your system doesn't have readline installed, or it isn't available to your app for some reason. That line of code prompts the user to enter the authorization code they receive from the Dropbox Web site.

That means you just need to install readline (or debug why it's not available to your app) or replace readline with whatever function is available on your platform for accepting input from the user, though that may be specific to your platform so I can't say off hand what the right answer for your system is. For example, here's a post about this for Ubuntu:

http://askubuntu.com/questions/182989/how-to-solve-fatal-error-call-to-undefined-function-readline-r...

 

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?