When I upgraded to version 1.5 I used my old configure.php files and only updated the DATABASE_NAME with the new name.
I've now just upgraded to 1.5.1 and everything works perfectly. However, while checking at the old and new configure.php files find several discrepancies as indicated below.
In admin/includes:
This part
Code:
$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_HTTPS_CATALOG', '/');
used to be
Code:
define('DIR_WS_ADMIN', '/my admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/my admin/');
define('DIR_WS_HTTPS_CATALOG', '/');
This part
Code:
define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
define('DIR_FS_CATALOG', '/');
used to be
HTML Code:
define('DIR_FS_ADMIN', '/path to my admin/');
define('DIR_FS_CATALOG', '/ file folder path on the server /');
These 2 files are new
Code:
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DB_CHARSET', 'utf8');
These 2 have disappeared:
Code:
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
In includes/:
These 2 have disappeared
Code:
define('STORE_SESSIONS', 'db');
define('DIR_WS_PHPBB', '/');
In the files content explained here:
https://www.zen-cart.com/content.php...ents-explained
I found that this one is obsolete and can be removed
Code:
define ('USE_PCONNECT', 'false');
So I guess I can remove the ones that have disappeared and add the new ones.
But shall I replace this part
Code:
define('DIR_WS_ADMIN', '/my admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/my admin/');
define('DIR_WS_HTTPS_CATALOG', '/');
with this one ?
Code:
$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_HTTPS_CATALOG', '/');
and that one?
HTML Code:
define('DIR_FS_ADMIN', '/path to my admin/');
define('DIR_FS_CATALOG', '/ file folder path on the server /');
with that one
Code:
define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
define('DIR_FS_CATALOG', '/');
please advise
Bookmarks