Totally Zenned
- Join Date:
- Jun 2007
- Location:
- Bronx, New York, United States
- Posts:
- 949
- Plugin Contributions:
- 3
Two errors involving the "Admin Users" and (admin) "Account" in the back-end
PHP 8.5 / ZC 2.1.0
While editing the logged in user's account the following warning occurs, albeit inconsistently:
[27-Feb-2026 20:20:11 America/New_York] Request URI: /justoffice/index.php?cmd=users, IP address: 74.89.48.247, Language id 1
#0 /home/justuptown/public_html/justoffice/users.php(111): zen_debug_error_handler()
#1 /home/justuptown/public_html/justoffice/index.php(16): require('...')
--> PHP Warning: Undefined array key "profile" in /home/justuptown/public_html/justoffice/users.php on line 111.
I did "patch" this by editing users.php (line 111) to
$errors = zen_update_user($_POST['name'], $_POST['email'], $_POST['id'], $_POST['profile'] ?? null);
Upon editing the details (Admin > Account) and clicking confirm, a 500 Server Error occurs as below:
[27-Feb-2026 20:56:11 America/New_York] PHP Fatal error: Uncaught Error: Undefined constant "SUCCESS_USER_DETAILS_UPDATED" in E:\wamp64\www\justuptown\justoffice\admin_account.php:50
Stack trace:
#0 E:\wamp64\www\justuptown\justoffice\index.php(16): require()
#1 {main}
thrown in E:\wamp64\www\justuptown\justoffice\admin_account.php on line 50
For this one I had to manually add:
'SUCCESS_USER_DETAILS_UPDATED' => 'User details updated.',
into the array of admin/lang.admin_account.php