Zen Cart Logo
Forums / Upgrading to 2.x.x / Undefined constant "FILENAME_MFA

Undefined constant "FILENAME_MFA

Views: 323

Results 1 to 8 of 8
07 Jan 2025, 16:16
#1
fabulousandfun avatar

fabulousandfun

New Zenner

Join Date:
Sep 2019
Location:
CA
Posts:
21
Plugin Contributions:
0

Undefined constant "FILENAME_MFA

After upgrade to 2.1.0 we are not able to access the admin page anymore. We are getting the following error:

[07-Jan-2025 15:58:25 UTC] PHP Fatal error: Uncaught Error: Undefined constant "FILENAME_MFA" in ########/includes/init_includes/init_admin_auth.php:67
Stack trace:
#0 includes/autoload_func.php(40): require_once()
#1 includes/application_top.php(40): require('/home/ebtwyjvw/...')
#2 #######/home.php(9): require('/home/ebtwyjvw/...')
#3 ########/index.php(16): require('/home/ebtwyjvw/...')
#4 {main}
thrown in ########/includes/init_includes/init_admin_auth.php on line 67

07 Jan 2025, 16:49
#2
swguy avatar

swguy

Administrator

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

Re: Undefined constant "FILENAME_MFA

This should be defined in a file called includes/filenames.php.

Perhaps a plugin you installed overwrote that file with an older version?

07 Jan 2025, 17:01
#3
fabulousandfun avatar

fabulousandfun

New Zenner

Join Date:
Sep 2019
Location:
CA
Posts:
21
Plugin Contributions:
0

Re: Undefined constant "FILENAME_MFA

Thank you! That works mostly. We still get the 500 error, but when clicking "reload" it will open admin page. Following error in logs now:

[07-Jan-2025 16:54:06 UTC] PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in #########/includes/init_includes/init_log_manager.php:116
Stack trace:
#0 #########/includes/init_includes/init_log_manager.php(116): implode(Array, ', ')
#1 #########/includes/autoload_func.php(40): require_once('/home/#########/...')
#2#########/includes/application_top.php(40): require('/home/#########/...')
#3 #########/home.php(9): require('/home/#########/...')
#4 #########/index.php(16): require('/home/#########/...')
#5 {main}
thrown in #########/includes/init_includes/init_log_manager.php on line 116

07 Jan 2025, 17:15
#4
swguy avatar

swguy

Administrator

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

Re: Undefined constant "FILENAME_MFA

There is no file called init_log_manager.php in Zen Cart 2.1.0. Was this a plugin?

07 Jan 2025, 17:20
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Undefined constant "FILENAME_MFA

FabulousandFun:

Thank you! That works mostly. We still get the 500 error, but when clicking "reload" it will open admin page. Following error in logs now:

[07-Jan-2025 16:54:06 UTC] PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in #########/includes/init_includes/init_log_manager.php:116
Stack trace:
#0 #########/includes/init_includes/init_log_manager.php(116): implode(Array, ', ')
#1 #########/includes/autoload_func.php(40): require_once('/home/#########/...')
#2#########/includes/application_top.php(40): require('/home/#########/...')
#3 #########/home.php(9): require('/home/#########/...')
#4 #########/index.php(16): require('/home/#########/...')
#5 {main}
thrown in #########/includes/init_includes/init_log_manager.php on line 116
That's coming out of the Log Manager plugin (https://www.zen-cart.com/showthread.php?221939-Log-Manager-Support-Thread). Make sure you've got the most recent version (v1.3.0) installed.

07 Jan 2025, 17:26
#6
fabulousandfun avatar

fabulousandfun

New Zenner

Join Date:
Sep 2019
Location:
CA
Posts:
21
Plugin Contributions:
0

Re: Undefined constant "FILENAME_MFA

Possible? We have the fedexwebservices & SqaureWebPay plugins. I'll look to see if that file is a part of one of those.

07 Jan 2025, 17:27
#7
fabulousandfun avatar

fabulousandfun

New Zenner

Join Date:
Sep 2019
Location:
CA
Posts:
21
Plugin Contributions:
0

Re: Undefined constant "FILENAME_MFA

Thank you I will check the version we have installed.

07 Jan 2025, 17:32
#8
fabulousandfun avatar

fabulousandfun

New Zenner

Join Date:
Sep 2019
Location:
CA
Posts:
21
Plugin Contributions:
0

Re: Undefined constant "FILENAME_MFA

Thank you lat9 that did the trick. We are no longer getting the 500 error message at the admin page.