admin\includes\local\configure.php overide - does this still work?
Has v157 removed the ability to use the admin\includes\local\configure.php overide?
environment Dev: Zen Cart 157; Apache 2.4.46; PHP 7.3.21; MySQL 5.7.31; Windows 10
Re: v157 admin\includes\local\configure.php overide - does this still work?
Quote:
Originally Posted by
OldNGrey
Has v157 removed the ability to use the admin\includes\local\configure.php overide?
environment Dev: Zen Cart 157; Apache 2.4.46; PHP 7.3.21; MySQL 5.7.31; Windows 10
Still working for me!
Re: v157 admin\includes\local\configure.php overide - does this still work?
The expected load point may be a different location than previously accustomed with the inclusion of bootstrap for the admin, but that is loaded from: https://github.com/zencart/zencart/b...ap.php#L41-L49
Re: v157 admin\includes\local\configure.php overide - does this still work?
Interesting.
created another pure vanilla 157 and whenever configure.php is placed into admin\includes\local the following is dumped to the screen
Code:
Notice: Constant HTTP_SERVER already defined in vanilla\admin\includes\configure.php on line 17 Call Stack: 0.0001 384056 1.
{main}() vanilla\admin\index.php:0 0.0001 384792 2.
require_once('vanilla\admin\includes\application_bootstrap.php') vanilla\admin\index.php:5 0.0005 396232 3.
include('vanilla\admin\includes\configure.php')
vanilla\admin\includes\application_bootstrap.php:57 0.0005 396232 4.
define() vanilla\admin\includes\configure.php:17
Notice: Constant HTTP_CATALOG_SERVER already defined in vanilla\admin\includes\configure.php on line 33 Call Stack: 0.0001 384056 1. {main}() vanilla\admin\index.php:0 0.0001 384792 2. require_once('vanilla\admin\includes\application_bootstrap.php') vanilla\admin\index.php:5 0.0005 396232 3.
It almost requires a conditional statement around the includes so if configure.php exists in includes\local\
it will not look for the other configure.php in \includes\
Re: v157 admin\includes\local\configure.php overide - does this still work?
Re: v157 admin\includes\local\configure.php overide - does this still work?
Thank you.
Just to clarify to other users having the same issue.
Using torvista's link
Code:
maybe related...
https://github.com/zencart/zencart/issues/3159
to github will show a change by lat9 to move the strict reporting section in admin\includes\application_bootstrap.php to before the includes for local configuration parameters.
This allows the local configure.php to be used in a test environment with normal caveats.