This:
define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
should be:
define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); // where your pages are located on the server. if $_SERVER['DOCUMENT_ROOT'] doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
Reason: There is no code that sets $DOCUMENT_ROOT.
This is only a problem if you do not use the usual install/ path for installing osCommerce (in my case manual update from an old version).
Regarding v2.3.4
This:
define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
should be:
define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); // where your pages are located on the server. if $_SERVER['DOCUMENT_ROOT'] doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
Reason: There is no code that sets
$DOCUMENT_ROOT
.This is only a problem if you do not use the usual
install/
path for installing osCommerce (in my case manual update from an old version).