Thank you for the quick response, Ken.
I know enough to be the one my college put on this troubleshooting job, but not enough to fix the problem or even answer all your questions. (Not a really good position to be in!)
After playing more with the site I managed to break something else, so I have no screenshots at the moment. But I'll get it working. Oh, yes, I WILL get this working! (Worst case I'll get it working enough that I can update this post with screenshots.)
What are ownerships/permissions on moodledata/sessions/ ? You are using files instead of DB, correct?
Permissions on moodledata/sessions/ are 755, and yes, using files.
403 is access denied. Mind sharing a screen shot of the 403 screen users get? Moodle error screens and apache/iis operating system error screens are not the same.
I see the 403 error in Chrome's Developer tools. Part of my problem is I can't see user errors. After logging in to Google, the page returns to https://student.pillar.edu/admin/oauth2callback.php but shows the home page (student.pillar.com/index.php)
The first error reported above in another posting, references this line:
Line 482 of lib/setuplib.php ... is in this sectiion .... comment above the line:
/**
* Abort execution by throwing of a general exception,
* default exception handler displays the error message in most cases.
*
* @param string $errorcode The name of the language string containing the error message.
* Normally this should be in the error.php lang file.
* @param string $module The language file to get the error message from.
* @param string $link The url where the user will be prompted to continue.
* If no url is provided the user will be directed to the site index page.
* @param object $a Extra words and phrases that might be required in the error string
* @param string $debuginfo optional debugging information
* @return void, always throws exception!
*/
function print_error($errorcode, $module = 'error', $link = '', $a = null, $debuginfo = null) {
throw new moodle_exception($errorcode, $module, $link, $a, $debuginfo);
I see that line as shown here. Not sure what to make of it, though.
If one is already logged onto google, what. does one see via:
https://myaccount.google.com/
This page shows what I would expect (attached). If there is something else you need to see, just let me know.
Have there been any EMail notifications about the system account used for config of Oauth2 needs to refresh token?
Nothing
There is a scheduled task for refreshing the system account:
Refresh OAuth tokens for service accounts - default is to run every 30 minutes. What happens if you 'run now'?
Not sure where to find this. Is this in Moodle or Google?
Have found that IF I take of that notice as soon as I get the EMail, no issues. If I wait a day ... might be getting a notice often via EMail ... I then have trouble getting things back in sync and the Google Oauth2 logins working again.
Thank you again for your help! I will post more info as I find it. And if (when!) I find a solution I will post it. Any input in the meantime will be greatly appreciated.