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

PHP 8.2 Fatal Error if you log as another user from admin area #4999

Closed
Jimmi08 opened this issue May 19, 2023 · 1 comment
Closed

PHP 8.2 Fatal Error if you log as another user from admin area #4999

Jimmi08 opened this issue May 19, 2023 · 1 comment
Labels
status: duplicate This issue is being or has been addressed by another issue. type: bug A problem that should not be happening

Comments

@Jimmi08
Copy link
Contributor

Jimmi08 commented May 19, 2023

Bug Description

Functionality Log in as in User Manager fails

Fatal error: Uncaught Error: Undefined constant "ADMIN" in ***/class2.php:1308 Stack trace: #0 ***/handlers/user_model.php(655): getperms('0', '0') #1 ***/handlers/user_model.php(523): e_user_model->checkAdminPerms('0') #2 ***/handlers/user_model.php(2094): e_user_model->isMainAdmin() #3 ***/handlers/user_model.php(2065): e_user->loadAs() #4 ***/handlers/user_model.php(1790): e_user->load() #5 ***/handlers/e107_class.php(1215): e_user->__construct() #6 ***/handlers/e107_class.php(2129): e107::getObject('e_user') #7 ***/class2.php(1556): e107::getUser() #8 ***/class2.php(666): init_session() #9 ***/index.php(58): require_once('/data/c/c/cc63e...') #10 {main} thrown in ***/class2.php on line 1308

How to Reproduce

Steps to reproduce the behavior:

  1. Be a main admin (ID 1)
  2. Select user - in my case with admin rights to one plugin
  3. Select Log as this user
  4. Leave admin area

Expected Behavior

Working site?

Thanks

@Jimmi08 Jimmi08 added the type: bug A problem that should not be happening label May 19, 2023
@Deltik
Copy link
Member

Deltik commented May 20, 2023

This is a duplicate of #4918, which was fixed by fbcef7a.

@Deltik Deltik closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2023
@Deltik Deltik added the status: duplicate This issue is being or has been addressed by another issue. label May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate This issue is being or has been addressed by another issue. type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

2 participants