Forums / Managing Customers and Orders / v1.5.7c - Customer Password Reset From Admin Not Working

v1.5.7c - Customer Password Reset From Admin Not Working

Views: 3,460

Results 1 to 5 of 5
29 Jun 2022, 3:52 PM
#1
aquaticaddiction avatar

aquaticaddiction

New Zenner

Join Date:
Apr 2008
Posts:
30
Plugin Contributions:
0

v1.5.7c - Customer Password Reset From Admin Not Working

Standard install of v1.5.7c - with Responsive Classic Template

When I try to reset a password from the admin panel I get a 500 error. This is what comes up in my error logs -

v1.5.7c

[28-Jun-2022 21:49:24 America/New_York] PHP Fatal error: Uncaught Error: Call to undefined function zen_admin_demo() in path/path/other/customers.php:312
Stack trace:
#0 x/x/x/index.php(11): require()
#1 {main}
thrown in /x/x/xcustomers.php on line 312/

[28-Jun-2022 21:49:24 America/New_York] Request URI: x/x/index.php?cmd=customers&page=1&action=pwdresetconfirm, IP address: xx.x.x.x.
--> PHP Fatal error: Uncaught Error: Call to undefined function zen_admin_demo() in x/x/x/customers.php:312
Stack trace:
#0 /x/x/x/x/index.php(11): require()
#1 {main}
thrown in /x/x/x/x/customers.php on line 312.

Im thinking the _demo part of the function zen_admin_demo is the problem but I'm not sure what the correct callout is.

Help!

29 Jun 2022, 4:17 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,724
Plugin Contributions:
56

Re: v1.5.7c - Customer Password Reset From Admin Not Working

There are no references to zen_admin_demo in 1.5.7c. You have modified some files. (Likely admin/customers.php)

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

29 Jun 2022, 4:25 PM
#3
aquaticaddiction avatar

aquaticaddiction

New Zenner

Join Date:
Apr 2008
Posts:
30
Plugin Contributions:
0

Re: v1.5.7c - Customer Password Reset From Admin Not Working

OK thats really odd. I really dont remember modifying anything. I for sure thought that this was a clean install.

Any thoughts on where to move from here?

EDIT - I just remembered I installed a mod for group pricing? I don't know if that would have anything to do with it?

29 Jun 2022, 7:00 PM
#4
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: v1.5.7c - Customer Password Reset From Admin Not Working

That function and references to it in the customers.php last existed in core in 1.5.6c

Two fixes: remove the two sections in the custom customers.php referencing the function or stick the following back into admin/includes/functions/general.php

/**
 * Check if restricted-use demo mode is active
 */
  function zen_admin_demo() {
    return (ADMIN_DEMO == '1') ? TRUE : FALSE;
  }

if you stick the function back in you should probably add some additional comment as to why you put it in as reference for future upgrades

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

30 Jun 2022, 12:09 PM
#5
aquaticaddiction avatar

aquaticaddiction

New Zenner

Join Date:
Apr 2008
Posts:
30
Plugin Contributions:
0

Re: v1.5.7c - Customer Password Reset From Admin Not Working

Thank you guys. Downloaded a fresh copy of 1.5.7c and just reuploaded a blank slate customers.php and it did the trick.

Thanks again.