Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Dec 2017
    Location
    FLAH-DUH
    Posts
    45
    Plugin Contributions
    0

    Default Re: Forgot Password And ZenCart Won't Send A Reset E-mail To Me

    line 36
    $mfa_status_of_store = MFA_ENABLED === 'True';
    if ($mfa_status_of_store === false) {
    return true;

  2. #12
    Join Date
    Dec 2017
    Location
    FLAH-DUH
    Posts
    45
    Plugin Contributions
    0

    Default Re: Forgot Password And ZenCart Won't Send A Reset E-mail To Me

    function zen_mfa_handler(array $admin_info = []): bool
    {
    if (!isset($_SESSION['mfa'])) {
    $_SESSION['mfa'] = [];
    }

    $user_mfa_data = json_decode($admin_info['mfa'] ?? '', true, 2);

    $mfa_status_of_store = MFA_ENABLED === 'True';
    if ($mfa_status_of_store === false) {
    return true;

  3. #13
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,816
    Plugin Contributions
    9

    Default Re: Forgot Password And ZenCart Won't Send A Reset E-mail To Me

    Quote Originally Posted by johnniejetski2 View Post
    log file after fixing bad dates:

    [04-Sep-2024 02:35:41 UTC] PHP Fatal error: Uncaught Error: Undefined constant "MFA_ENABLED" in /home/bladez5/monstergoped.com/hulk/includes/functions/functions_mfa.php:36
    Stack trace:
    #0 /home/bladez5/monstergoped.com/hulk/includes/functions/general.php(431): zen_mfa_handler(Array)
    #1 /home/bladez5/monstergoped.com/hulk/includes/functions/admin_access.php(380): zen_call_function('zen_mfa_handler', Array)
    #2 /home/bladez5/monstergoped.com/hulk/login.php(29): zen_validate_user_login('xxxxxxx', 'xxxxxxx')
    #3 /home/bladez5/monstergoped.com/hulk/index.php(16): require('/home/bladez5/m...')
    #4 {main}
    thrown in /home/bladez5/monstergoped.com/hulk/includes/functions/functions_mfa.php on line 36
    you are running a v2.1.x codeset.

    v2.1.x is a pre-release. are you sure that is what you want to be running?

    the error that you are seeing is due to a missing value in your configuration table that was part of the v2.1.0 update. you can see that here:

    https://github.com/zencart/zencart/b...10.sql#L79-L80

    or here for a fresh install:

    https://github.com/zencart/zencart/b...cart.sql#L2490

    without that value in your database configuration table, things will not work.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  4. #14
    Join Date
    Dec 2017
    Location
    FLAH-DUH
    Posts
    45
    Plugin Contributions
    0

    Default Re: Forgot Password And ZenCart Won't Send A Reset E-mail To Me

    I added that line of code to the database, but no change... I did a fresh install without my old database and it works fine, then I fixed all my date errors in my old database and uploaded it and it stopped working.. admin login stopped allowing me in and no emails to reset it and the trick to get back to Admin, admin doesnt work.

    Whats the best way to just bring the products and categories from 1.5.7 to 2.0 or 2.1?

  5. #15
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,816
    Plugin Contributions
    9

    Default Re: Forgot Password And ZenCart Won't Send A Reset E-mail To Me

    Quote Originally Posted by johnniejetski2 View Post
    I added that line of code to the database, but no change...
    apparently you did not...

    databases have records. they do not have code. code is what you use to add, change and/or delete records (or tables) in the database.

    the best way to resolve your problem is to continue moving forward trying to resolve this undefined constant issue. or move backwards to the v20x codeset.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #16
    Join Date
    Dec 2017
    Location
    FLAH-DUH
    Posts
    45
    Plugin Contributions
    0

    Default Re: Forgot Password And ZenCart Won't Send A Reset E-mail To Me

    Quote Originally Posted by carlwhat View Post
    apparently you did not...

    databases have records. they do not have code. code is what you use to add, change and/or delete records (or tables) in the database.

    the best way to resolve your problem is to continue moving forward trying to resolve this undefined constant issue. or move backwards to the v20x codeset.
    I used SQL to run that line of code to modify the db records
    regardless.
    My database does the same thing with 2.0, I can load it and run it without issue on the demo db, but if I try to do the upgrade to my old db I cannot log into admin and no emails for a reset or to customers are sent out and the admin reset from zen-cart docs doesnt work

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 admin password expired, won't reset, will not send new password to email
    By baltimorestreetmods in forum General Questions
    Replies: 2
    Last Post: 6 Sep 2012, 07:16 PM
  2. Customer used Forgot Password but password sent won't work
    By smurfy1 in forum General Questions
    Replies: 16
    Last Post: 16 Feb 2012, 04:54 AM
  3. v150 I forgot the password for my database user...how to reset?
    By WebKat in forum General Questions
    Replies: 2
    Last Post: 11 Feb 2012, 05:26 AM
  4. Zencart won't reset my password
    By heatherphoto in forum General Questions
    Replies: 1
    Last Post: 19 Jun 2009, 12:35 PM
  5. Replies: 2
    Last Post: 11 Jan 2009, 09:39 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