osCommerce / oscommerce2

osCommerce Online Merchant v2.x
http://www.oscommerce.com
MIT License
281 stars 222 forks source link

DIR_FS_DOCUMENT_ROOT wrong in admin/includes/configure.php #600

Open mgutt opened 6 years ago

mgutt commented 6 years ago

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).