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!
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)
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?
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
Code:
/**
* 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
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.