PHP 8.2 Fatal Error if you log as another user from admin area #4999
Labels
status: duplicate
This issue is being or has been addressed by another issue.
type: bug
A problem that should not be happening
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:
Expected Behavior
Working site?
Thanks
The text was updated successfully, but these errors were encountered: