line 36
$mfa_status_of_store = MFA_ENABLED === 'True';
if ($mfa_status_of_store === false) {
return true;
line 36
$mfa_status_of_store = MFA_ENABLED === 'True';
if ($mfa_status_of_store === false) {
return true;
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;
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.
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?
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
Bookmarks