Zen Cart Logo
Forums / Basic Configuration / YOUR_ADMIN/includes/local/configure.php ... a gotcha and a solution

YOUR_ADMIN/includes/local/configure.php ... a gotcha and a solution

Views: 2,709

Results 1 to 1 of 1
19 May 2013, 7:47 PM
#1
lat9 avatar

lat9

Administrator

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

YOUR_ADMIN/includes/local/configure.php ... a gotcha and a solution

ALERT: THIS NOTE APPLIES ONLY TO THE "includes/local/configure.php"
THIS DOES NOT APPLY TO either /includes/configure.php FILE!!!!!!


If you're running a debugging copy of your store in your localhost environment and using the /YOUR_ADMIN/includes/local/configure.php override, there's a teeny gotcha (not present in the /includes/local/configure.php override in your storefront).

When the directory constant DIR_FS_ADMIN is generated, it's **assumed ** :ohmy: that the configure.php file is in the /includes directory:

define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');

Unfortunately, it's one directory step down so that the DIR_FS_ADMIN constant winds up being /YOUR_ADMIN/includes/ instead of /YOUR_ADMIN/. Anyway, the correction is to go back another directory level:

define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../../') . '/');