Forums / Bug Reports / Two errors involving the "Admin Users" and (admin) "Account" in the back-end

Two errors involving the "Admin Users" and (admin) "Account" in the back-end

Views: 5,519

Results 1 to 4 of 4
28 Feb 2026, 2:07 AM
#1
retched avatar

retched

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

28 Feb 2026, 12:24 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Two errors involving the "Admin Users" and (admin) "Account" in the back-end

The first issue (undefined "profile") has been corrected in the zc210-alpha on GitHub; see https://github.com/zencart/zencart/pull/6935

The second issue, I don't understand since the SUCCESS_USER_DETAILS_UPDATED constant is present on line 28 of zc210's as-shipped /admin/includes/languages/english/lang.users.php.

28 Feb 2026, 3:26 PM
#3
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Two errors involving the "Admin Users" and (admin) "Account" in the back-end

retched:

...

[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\justofficeadmin_account.php:50
Stack trace:
#0 E:\wamp64\www\justuptown\justoffice\index.php(16): require()
#1 {main}
thrown in E:\wamp64\www\justuptown\justofficeadmin_account.php on line 50

> ...

> **lat9:**
>
> ...
> The second issue, I don't understand since the SUCCESS_USER_DETAILS_UPDATED constant is present on line 28 of zc210's as-shipped /admin/includes/languages/english/lang.users.php.

the error is coming from a different script.  hence the needed correction.

not sure if the constant should be moved to the lang.english file.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

28 Feb 2026, 3:48 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Two errors involving the "Admin Users" and (admin) "Account" in the back-end

carlwhat:

the error is coming from a different script. hence the needed correction.

not sure if the constant should be moved to the lang.english file.

best.
My bad for not scrolling that second message; let me look further.

@carlwhat, I agree with your assessment that the language constant needs to be moved to the lang.english.php file; PR forthcoming.

Note: PR created: https://github.com/zencart/zencart/pull/7495