Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2008
    Posts
    29
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    8,950
    Plugin Contributions
    309

    Default 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 Modifications
    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.

  3. #3
    Join Date
    Apr 2008
    Posts
    29
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,705
    Plugin Contributions
    0

    Default 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
    Mike
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #5
    Join Date
    Apr 2008
    Posts
    29
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. v155 Customer Password Reset Not working
    By shohensee in forum General Questions
    Replies: 20
    Last Post: 7 Jun 2019, 12:59 PM
  2. Replies: 6
    Last Post: 2 Dec 2017, 11:10 PM
  3. Reset customer password from admin
    By romanus in forum All Other Contributions/Addons
    Replies: 58
    Last Post: 23 Dec 2016, 07:05 PM
  4. Admin login problems, password reset / update not working.
    By veronicathecow in forum General Questions
    Replies: 2
    Last Post: 7 Nov 2015, 05:09 PM
  5. Replies: 4
    Last Post: 3 Apr 2014, 10:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR