yasirsiddiqui / php-google-cloud-print

PHP class to print documents using Google Cloud Print with OAuth2 authorization
91 stars 42 forks source link

'Please first login to Google' #9

Closed ghost closed 9 years ago

ghost commented 9 years ago

I tried it about 3 weeks ago and it was working fine. But nowsuddently it stopped working. What's the problem? Google credentials are still the same and should be working.

Fatal error: Uncaught exception 'Exception' with message 'Please first login to Google' in /homepages/14/d519345690/htdocs/bar/print/GoogleCloudPrint.php:120 Stack trace: #0 /homepages/14/d519345690/htdocs/bar/print/example.php(30): GoogleCloudPrint->getPrinters() #1 {main} thrown in /homepages/14/d519345690/htdocs/bar/print/GoogleCloudPrint.php on line 120

bigware commented 9 years ago

You have to update the version. Google no longer accepts raw username and passwords.

ghost commented 9 years ago

i downloaded the new version and my config file is properly configured as well...

Are you able to get the token and print something?

bigware commented 9 years ago

Check out the readme and demo. The log in system totally changed.

ghost commented 9 years ago

i did it exactly like in the readme. i changed the client id, secret and the url to the oAuthRedirect.php. still it doesn't work. i wanna cry xD

ghost commented 9 years ago

i've got the newest version, just redownloaded and reinstalled 10 minutes ago. i created a new client id with google just a few minutes ago. i changed everything like in the readme. it does not work. does it work with you?

bigware commented 9 years ago

Yes, it works for me. Do you get an auth code from google?

ghost commented 9 years ago

strange... how do i check the auth code? i don't think so, as the message actually only appears if the authtoken is empty. i just get the error message if i open the example.php. i just redid everything with a new google account and new credentials. no success...

bigware commented 9 years ago

Try the offline method.

ghost commented 9 years ago

that works :+1: