Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$context['login_cookie_times'] is not defined for all path #4886

Closed
albertlast opened this issue Aug 2, 2018 · 7 comments · Fixed by #4991
Closed

$context['login_cookie_times'] is not defined for all path #4886

albertlast opened this issue Aug 2, 2018 · 7 comments · Fixed by #4991
Assignees
Milestone

Comments

@albertlast
Copy link
Collaborator

albertlast commented Aug 2, 2018

Look like that exists some path where login page is called,
where the $context['login_cookie_times'] is not defined.
grafik

Related smf post: https://www.simplemachines.org/community/index.php?topic=561477.0
related pr: #4863
commited by @jdarwood007

https://github.com/SimpleMachines/SMF2.1/blob/8902c394cf9228726a66db41053fed3131a262ff/Themes/default/Login.template.php#L259

Requirements

Calendar must be enabled
Guests shouldn't have permissions to see Calendar

Steps to reproduce

  • Bein logged, on board index, right-click the "Logout" button and select "Open in a new tab".
  • On board index now click "Upcoming Calendar". You will be redirected to the login page (which needs a bit of tweak since the time to stay logged in is not working). You may now login again and check the error log. The errors are:
@frandominguezl
Copy link
Member

I didn't know you already tracked this. I made an issue about it as well, now closed.

@sbulen
Copy link
Contributor

sbulen commented Aug 28, 2018

I get this pretty consistently after a session timeout. It corresponds to the login form not having the time dropdown properly populated. So another way to reproduce is to set the timeout to an hour and resume activity after an hour has passed:

image

@albertlast
Copy link
Collaborator Author

@frandominguez03 like i mention in the irc, you didn't fix the issue, you only hide error message.

The issue keep open.

@frandominguezl
Copy link
Member

@albertlast If I haven't submitted a pull request yet its because I'm not sure how to fix it.

@SychO9
Copy link
Contributor

SychO9 commented Aug 28, 2018

And same for maintenance mode, $context['login_cookie_times'] is undefined

@jdarwood007 jdarwood007 self-assigned this Aug 29, 2018
@jdarwood007
Copy link
Member

I will look into it. Seems I may need to call this sooner. So many adhoc places we call the login form.

jdarwood007 added a commit to jdarwood007/SMF that referenced this issue Sep 2, 2018
This fixes SimpleMachines#4886 by moving it to the Load.php for guests only.

As well fixed a issue related to SimpleMachines#4833 where maintenance mode can cause a issue with HTTP/2.0 with the spdy protocol.
@albertlast
Copy link
Collaborator Author

albertlast commented Oct 1, 2018

Look like that still exists path where the var is not setted:
grafik
@jdarwood007 https://www.simplemachines.org/community/index.php?topic=562437.msg3990544#msg3990544

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants