Comments (17)
Hi Alfonso,
it looks like your server detected facebook_redirect.php has been writable and then fail to server the file of a security reason that only your host knows (which doesn't mean your host is wrong) - this is obviously just an assumption.
I'm wondering if I didn't push the rep file with wrong permission, I'll have to check but anyway you should be able to change the permission of your file (in the case the issue is related to permission).
from moodle-auth_googleoauth2.
Thanks. I'll check on that. Not sure if this helps, but this showed up on debugging mode.
Google
Debug info:
Error code: couldnotgetgoogleaccesstoken
Stack trace:
line 392 of /auth/googleoauth2/auth.php: moodle_exception thrown
line 88 of /login/index.php: call to auth_plugin_googleoauth2->loginpage_hook()
Output buffer:
Notice: Trying to get property of non-object in /home3/cursosct/public_html/moodle/auth/googleoauth2/auth.php on line 167
Facebook
Debug info:
Error code: couldnotgetgoogleaccesstoken
Stack trace:
line 392 of /auth/googleoauth2/auth.php: moodle_exception thrown
line 88 of /login/index.php: call to auth_plugin_googleoauth2->loginpage_hook()
Output buffer:
Notice: Undefined index: access_token in /home3/cursosct/public_html/moodle/auth/googleoauth2/auth.php on line 175
from moodle-auth_googleoauth2.
Hi sintjago did you manage to sort this out as I am having exactly the same problem?
from moodle-auth_googleoauth2.
maybe it has to do the oauth.so module not been called by your php.ini file. If so add
'''extension=oauth.so'''
in your php.ini (if oauth is installed)
from moodle-auth_googleoauth2.
Thanks for this but still no joy.
Jo
On 4 December 2013 19:30, maliky [email protected] wrote:
maybe it has to do the oauth.so module not been called by your php.ini
file. If so add
'''extension=oauth.so'''
in your php.ini (if oauth is installed)—
Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-29836847
.
http://facebook.com/varndean_Find us on Facebook
http://facebook.com/varndean http://twitter.com/varndean__Follow us on
Twitter_ http://twitter.com/varndean
from moodle-auth_googleoauth2.
I'm having this problem only on bluehost.
The same install with another host (ovh) is ok.
So It should be a host, php, config related issue.
from moodle-auth_googleoauth2.
Check that your php local session.save_handler is set to file and not user. If not set to file, uncheck "Use database for session information" in /admin/settings.php?section=sessionhandling ... It may help... did not for me but still who knows...
from moodle-auth_googleoauth2.
Thanks for this I will try it out
Jo
On 18 December 2013 21:03, maliky [email protected] wrote:
Check that your php local session.save_handler is set to file and not
user. If not set to file, uncheck "Use database for session information" in
/admin/settings.php?section=sessionhandling ... It may help... did not for
me but still who knows...—
Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-30880424
.
http://facebook.com/varndean_Find us on Facebook
http://facebook.com/varndean http://twitter.com/varndean__Follow us on
Twitter_ http://twitter.com/varndean
from moodle-auth_googleoauth2.
any news?
from moodle-auth_googleoauth2.
Thanks for getting back to me on this. Still no joy I'm afraid
Jo
On 13 January 2014 19:33, maliky [email protected] wrote:
any news?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-32202515
.
http://facebook.com/varndean_Find us on Facebook
http://facebook.com/varndean http://twitter.com/varndean__Follow us on
Twitter_ http://twitter.com/varndean
from moodle-auth_googleoauth2.
@maliky I'm on hostmonster (which is basically similar to bluehost) I'm having a similar problem. Did you get this library to work on other host providers?
I am seeing the exact errors highlighted by @sintjago for both attempting google and facebook authentication.
from moodle-auth_googleoauth2.
Quickly googling at the initial @sintjago report, "error 500 Dangerously writable", it seems that some hosting company forbid to access files when their permissions are too high. Try to put your files in mode 644 (use 'chmod' command in a terminal) and check that they are own by your web server (use 'chown').
When running Moodle on a hosting company (often a bad idea from my experience, imo a VPS should be the minimum to run Moodle), you can have a look a too: http://docs.moodle.org/24/en/Security_recommendations#Running_Moodle_on_a_shared_hosting_environment
Note that the recommended way to setup your files is described there:
http://docs.moodle.org/24/en/Security_recommendations#Running_Moodle_on_a_dedicated_server
from moodle-auth_googleoauth2.
If anyone resolve this issue, confirm the solution as I'll put the solution in the documentation/FAQ. Or even better, contribute to the FAQ. In this case mention you modified the FAQ here, it's nice for me to know that it has been done.
Thanks guys.
from moodle-auth_googleoauth2.
I am using Moodle 2.4.5 on a shared server hosted by hostgator.com. Sign in with Google never worked (error/auth googleoauth2/couldnotgetgoogleaccesstoken) but Facebook worked for a few hours and now I get the exact same error. The authentication provider sent us a communication error. Please try to sign-in again.
More information about this error
I have opened a Ticket with Hostgator and hopefully they can get to the bottom of it. If they come up with a solution I will post it here for other people using shared servers. One thing I know for sure is Bluehost and Hostgator both use CPANEL.
from moodle-auth_googleoauth2.
couldnotgetgoogleaccesstoken error now returns a much better error message when you enable the debug mode in the Moodle admin. I am closing this issue as it is an old/dead one. Please open a new issue if needed.
from moodle-auth_googleoauth2.
I moved form a shared hosting environnement on bluehost to a VPS on OVH hoping it would resolve my connection problem but not. Althoug I do not get the couldnotgetgoogleaccesstoken but the faileduserdetails.
Could it be because I don't have a certified certificate on my IP ? If so my students will have to way some more until I can pay and install that.
from moodle-auth_googleoauth2.
I had the same error "Error 500 - Dangerously Writeable" running on a shared server (HostMonster). Then I went to my server log (which can be easily accessed on a shared host like Bluechip, Hostgater, Hostmonster,etc). The error stated
[Mon May 01 11:37:00 2017] [error] [client 23.24.136.177] SoftException in Application.cpp:256: File "/home4/<DOMAINUSER>/public_html/CRM/index.php" is writeable by group [Mon May 01 11:37:00 2017] [error] [client 23.24.136.177] Premature end of script headers: index.php
I changed the permissions of the files inside of the CRM folder to 755 and the issue was resolved. Hope this helps
from moodle-auth_googleoauth2.
Related Issues (20)
- Linkedin HOT 1
- guzzle 3 is deprecated HOT 1
- Fix the plugin css on Boost
- auth_googleoauth2/invalidstateparam HOT 2
- Did not receive an authorization code from the Microsoft servers. HOT 8
- Social buttons not showing HOT 1
- Allow accounts with same email HOT 4
- Authentication Error in Moodle 3.2 when change user prefix. HOT 1
- Save Button not there HOT 5
- Facebook API 2.2 will stop to work starting 27 March, 2017 (i.e. Facebook login is broken) / Fixed on master, need to be fixed on 2.5 and 2.6 HOT 7
- New maintainer
- Facebook Login Broken 3-27-17 HOT 1
- Remove Facebook warning in the admin and change "add to favourite" recommendation for "upgrade to Moodel 3.3" HOT 1
- Method Error - with 2.3 googleOauth2 HOT 5
- Google Login Button Disappeared When Upgrading to Moodle 3.2.2 HOT 15
- auth_googleoauth2/couldnotgetuseremail HOT 1
- Unable to uninstall or upgrade plugin in Moodle 3.2.3 HOT 2
- Latest release (2.3 - Build 2016061204) in plugin database does not have version.php HOT 3
- Facebook&Google oauth2 service not working moodle 3.3 HOT 4
- No settings link in authentication plugins administration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-auth_googleoauth2.