Open gladroger opened 1 year ago
Hi @gladroger. Thank you for your report. To speed up processing of this issue, 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:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: 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.
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. @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 Admin access: https://d020edf674112cba5e0bb45e349368d2.instances-prod.magento-community.engineering/admin_8c02 Login: 4b3266ef Password: 2932c4560e12
I have also solved it temporary by editing SessionManager.php
// if (isset($_SESSION['destroyed']) // && $_SESSION['destroyed'] < time() - $this->sessionConfig->getCookieLifetime() // ) { // $this->destroy(['clear_storage' => true]); // }
if (isset($_SESSION['destroyed'])
&& $_SESSION['destroyed'] < time() - $this->sessionConfig->getCookieLifetime()
) {
$this->destroy(['clear_storage' => true]);
} elseif (!isset($this->_roleRegistry)) {
$this->_roleRegistry = null;
}
@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 Stack trace:
@yohangwak
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
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
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.
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.
What php version are you using when testing?
Hi @gladroger,
Thanks for your update.
We are using php 8.1.
Thanks.
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.
@gladroger I have similar issue with v2.4.7-beta1
I fixed it by adding:
public $roleRegistry;
to
vendor/magento/framework/Acl.php:34
@engcom-Bravo Please re-open as this continues to be an issue
I had the same problem while updating from 2.4.5 to 2.4.6. I think it happens if you have an admin session and then update, because after clearing the sessions I didn't have this problem. That class must somehow be serialized in the session with the old variable name _roleRegistry which got renamed.
So not a real issue.
I see the same on Upgrading from Adobe Commerce Cloud 2.4.3-p1 to 2.4.6-p4
report.CRITICAL: Exception: Deprecated Functionality: Creation of dynamic property Magento\Framework\Session\Generic\Interceptor::$_roleRegistry is deprecated in /app//vendor/magento/framework/Session/SessionManager.php on line 197 in /app//vendor/magento/framework/App/ErrorHandler.php:62
Issue is caused by existing admin session. All you need to do is clear browser cookies and I also ran this MySQL script: delete from admin_user_session;
Hi @engcom-Hotel. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. 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
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-12343 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
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
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 1. Open admin panel after upgrade ### Expected result Get into admin ### Actual result Error. ### Additional information _No response_ ### Release note _No response_ ### Triage and priority - [ ] Severity: **S0** _- Affects critical data or functionality and leaves users without workaround._ - [X] Severity: **S1** _- Affects critical data or functionality and forces users to employ a workaround._ - [ ] Severity: **S2** _- Affects non-critical data or functionality and forces users to employ a workaround._ - [ ] Severity: **S3** _- Affects non-critical data or functionality and does not force users to employ a workaround._ - [ ] Severity: **S4** _- Affects aesthetics, professional look and feel, “quality” or “usability”._