moodle-theme_snap icon indicating copy to clipboard operation
moodle-theme_snap copied to clipboard

You are currently logged out

Open igarcia53 opened this issue 9 years ago • 9 comments

I'm doing some tests, but in your last update I've encountered a problem and I get this message.

not_login

igarcia53 avatar Oct 27 '16 15:10 igarcia53

Nice to know why this inconvenience, not simply the solution, if not understand a little more about this great topic.

igarcia53 avatar Oct 27 '16 15:10 igarcia53

You should get that issue when your session times out or if you log out of moodle in another tab / window then go back to the previous window. This is intentional behaviour. If you are seeing the message when you are definitely logged in then it may be a bug (unless you logged back in using a separate window as the session keys will be different).

gthomas2 avatar Oct 28 '16 15:10 gthomas2

I also see this same error repeatedly on Moodle 3.1.2+

apache2 error log contains:

Default exception handler: Coding error detected, it must be fixed by a programmer: Invalid context id specified context::instance_by_id() Debug: \nError code: codingerror\n* line 5473 of /lib/accesslib.php: coding_exception thrown\n* line 1428 of /lib/accesslib.php: call to context::instance_by_id()\n* line 38 of /theme/snap/rest.php: call to get_context_info_array()\n, referer: http://xxx.yyy.zzz/

slartimitvar avatar Oct 31 '16 10:10 slartimitvar

Our original spooling login error went when we reverted back to a previous instance, however since updating again we receive a new login error;

  • line 5473 of /lib/accesslib.php: coding_exception thrown
  • line 1428 of /lib/accesslib.php: call to context::instance_by_id()
  • line 38 of /theme/snap/rest.php: call to get_context_info_array()

Kylie-Marie avatar Dec 21 '16 08:12 Kylie-Marie

Kylie-Marie - if you could possibly get us the information on the rest.php call via the network tab that would help us a lot. (mainly the request parameters).

gthomas2 avatar Dec 21 '16 16:12 gthomas2

Guy is fairly certain he's figured this one out, so we'll have a fix out soon. It didn't affect our internal builds so we didn't notice it at first, so thanks for the reports.

davidscotson avatar Dec 21 '16 18:12 davidscotson

Do you still require the information on the rest.php call as above? I have asked our support to get it but haven't heard anything back yet - will push for it if still required to help solve the error :)

Kylie-Marie avatar Dec 28 '16 11:12 Kylie-Marie

@Kylie-Marie - we don't need that data thanks. We eventually managed to replicate the issue.

gthomas2 avatar Jan 04 '17 17:01 gthomas2

If it helps, there seems to be a confusion where the course think user's logged out:

https:///theme/snap/rest.php?action=get_courseinfo&contextid=1&courseids=55870,2035,1284,56011,55868,2090,57878,56350,51087,57316,55766,55023,56591,57877,56421,2497,56380,55963,1793,55777

{"error":"Not logged in","errorcode":"notloggedinerror"} but then rest.php?action=get_loginstatus returns this:

{"loggedin":true} Any idea how to fix this ?

hitteshahuja avatar Nov 26 '18 11:11 hitteshahuja