-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Backend throws PHP Fatal TypeError when session storage is empty #34531
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
Comments
Hi @pmzandbergen. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
related... #34415 |
Magento version 2.3.7-p2 has the same issue. |
@kanevbg did you find any solution for it? |
1 similar comment
@kanevbg did you find any solution for it? |
https://github.com/magento/magento2/pull/34606/files If want to quick soluton then update
files logic in respective place or create a patch file and apply. do have look on solution which added for 2.3.7 version, logic is same/similar like 2.4.x |
@albsa since than I created patch and already using on production. Let me help you |
@kanhaiya5590 i tried multiple times yesterdya with that patch, but composer kept failing with applying the patch. @kanevbg I am trying your hotfix right now, hoping it works. |
@kanhaiya5590 @kanevbg Now I keep getting that the You current session has expired when signing in. Cleared cache, history cookies, etc. Did you guys also had this issue? |
1 similar comment
@kanhaiya5590 @kanevbg Now I keep getting that the You current session has expired when signing in. Cleared cache, history cookies, etc. Did you guys also had this issue? |
For other people regarding this matter, if you applied this patch and still can't login, we had this issue https://magento.stackexchange.com/questions/353147/can-we-increase-the-system-security-session-size-at-admin-on-magento-2 [2022-04-12 13:11:50] report.WARNING: Session size of 489033 exceeded allowed session max size of 400000. Solved it by running this command on CLI bin/magento config:set system/security/max_session_size_admin 800000 |
1 similar comment
For other people regarding this matter, if you applied this patch and still can't login, we had this issue https://magento.stackexchange.com/questions/353147/can-we-increase-the-system-security-session-size-at-admin-on-magento-2 [2022-04-12 13:11:50] report.WARNING: Session size of 489033 exceeded allowed session max size of 400000. Solved it by running this command on CLI bin/magento config:set system/security/max_session_size_admin 800000 |
This issue happens when I change my database and I had an active session. Clearing my cooke and re-login in solved this. |
Clear the cookies, and try again. It worked |
Description
When the admin session storage is empty, a PHP Fatal TypeError occurs:
Please note that line numbers might be different in the current version, the problem however still exists.
Since
Introduced with MC-34197:
67fae82
Specific:
magento2/app/code/Magento/Backend/Model/Auth/Session.php
Line 186 in 6b196b5
Suggested Fix
Return
true
if the session is blank:https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Security/Model/AdminSessionInfo.php#L130
The text was updated successfully, but these errors were encountered: