Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed constructor bug #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fixed constructor bug #1

wants to merge 3 commits into from

Conversation

jdbevan
Copy link

@jdbevan jdbevan commented May 18, 2012

I think this is dependent on the version of PHP used, but I was getting an error like this:

PHP Fatal error: Uncaught exception 'Tumblr\Exception' with message 'API not configured with hostname, key, and/or secret.' in /home/jon/git/tumblr-api/Tumblr/API/Request.php:84
Stack trace:
#0 /home/jon/git/tumblr-api/Singleton.php(15): Tumblr\API\Request->request()
#1 /home/jon/git/tumblr-api/Tumblr/API/Authentication.php(41): Singleton::getInstance()
#2 /home/jon/git/tumblr-api/test.php(6): Tumblr\API\Authentication::configure('...', '...', '...')
#3 {main}

thrown in /home/jon/git/tumblr-api/Tumblr/API/Request.php on line 84

And adding the empty constructor fixed the problem as it no longer called Tumblr\API\Request->request()

@jsjohnst
Copy link
Owner

Hi!

Apologize I somehow missed this before. What version of PHP are you using? Can you give me a short reproduction test case?

Thanks!

-Jeremy

@koenpunt
Copy link

This is a PHP5.3 error, thanks for the fix @jdbevan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants