-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Deprecated Functionality: Creation of dynamic property Magento\Framework\Acl::$_roleRegistry #37469
Comments
Hi @gladroger. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
@magento give me 2.4-develop instance |
Hi @gladroger. Thank you for your request. I'm working on Magento instance for you. |
Hi @gladroger, here is your Magento Instance: https://d020edf674112cba5e0bb45e349368d2.instances-prod.magento-community.engineering |
I have also solved it temporary by editing SessionManager.php // if (isset($_SESSION['destroyed'])
|
@gladroger Thanks for this! After I apply your solution, I get other error on front-end and admin main.CRITICAL: Exception: Deprecated Functionality: Creation of dynamic property Magento\Framework\Session\Generic\Interceptor::$_roleRegistry is deprecated in vendor/magento/framework/Session/SessionManager.php on line 198 in vendor/magento/framework/App/ErrorHandler.php:62 |
I was in a hurry to get live again so I also changed the error reporting setting. I had lots of small problems during the day but some were due to 3rd party modules. app/bootstrap.php |
Hi @gladroger, Thank you for reporting and collaboration. Verified the issue while upgrading from Magento 2.4.5-p1 to Magento 2.4.6(latest version) we are not able to reproduce the issue. Kindly refer the attached video. We are able to enter the admin panel successfully. Screen.Recording.2023-05-09.at.2.14.38.PM.movKindly check the issue while upgrading from 2.4.5-p1 to 2.4.6 and check if any 3rd party extensions / modules enabled is causing this issue. Thanks. |
What php version are you using when testing? |
Hi @gladroger, Thanks for your update. We are using php 8.1. Thanks. |
Can you try with php 8.2? I get error with php 8.2 |
Hi @gladroger, Thanks for your update. Verified the issue while upgrading from Magento 2.4.5-p1 to Magento 2.4.6(latest version) we are not able to reproduce the issue.Kindly refer the screenshots. We have installed with php 8.2 Kindly check the issue while upgrading from 2.4.5-p1 to 2.4.6 and check if any 3rd party extensions / modules enabled is causing this issue. Thanks. |
Hi @gladroger, We have noticed that this issue has not been updated for a period of 14 Days. Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this. Thanks. |
Issue is caused by existing admin session. All you need to do is clear browser cookies and I also ran this MySQL script: |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @gladroger, Thanks for reporting the issue! The issue is reproducible for us, we are getting the error after upgrading Magento to 2.4.7-p1. @cbradleyacadaca Thanks for the resolution. Confirming this issue for further processing. Thanks |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-12343 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
Preconditions and environment
After updating Magento CE from 2.4.5-p1 to 2.4.6, cant enter admin panel anymore.
Found the same error mentioned here: https://magento.stackexchange.com/questions/366673/deprecated-functionality-error-in-sessionmanager-php-on-line-186-after-update-to
PHP 8.2.5 on Centos 7
`- 1 exception(s):
Exception #0 (Exception): Deprecated Functionality: Creation of dynamic property Magento\Framework\Acl::$_roleRegistry is deprecated in vendor/magento/framework/Session/SessionManager.php on line 186
Exception #0 (Exception): Deprecated Functionality: Creation of dynamic property Magento\Framework\Acl::$_roleRegistry is deprecated in vendor/magento/framework/Session/SessionManager.php on line 186
`Steps to reproduce
Expected result
Get into admin
Actual result
Error.
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: