Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAdam Fichman
9,502 PointsZend Framework working on Local Server but not on Public Server
Hello all, So I've been working on a php application using the Zend framework, specifically the GData portion. I use it to access Google Spreadsheets and pretty much use a public spreadsheet as a database of information for my app. The app works perfectly fine on my local WAMP server, however after setting up and hosting the app on Servergrove, I get errors and the app won't run. Specifically I get this error:
Uncaught exception 'Zend_Gdata_App_AuthException' with message 'Authentication with Google failed. Reason: BadAuthentication'
Now, I know from the error it's saying that the google account I'm linking to is not authorizing correctly, however, I didn't change any code between testing on my local server and uploading it to Servergrove, so I don't understand why it is failing now. Could anyone possibly point me towards a solution?
EDIT: Solved it! For anyone who might come across the same problem, it turns out that when you use the Zend Gdata framework, you will have to tell google to allow the app to sign into whatever google account you are using in the app.
1 Answer
Randy Hoyt
Treehouse Guest TeacherGlad to hear you got it working. Thanks for coming back and sharing the solution!