This is a discussion on SQL file does not exist: within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Here's a fix for this little nightmare: In the install pages (/catalog/install/templates/pages/) install_2.php & install_3.php & install_5.php you see: Code: ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Here's a fix for this little nightmare: In the install pages (/catalog/install/templates/pages/) install_2.php & install_3.php & install_5.php you see: Code: $script_filename = getenv('PATH_TRANSLATED');
Code: $script_filename = realpath($_SERVER['PHP_SELF']); In install_5.php also change: Code: for ($i=0, $n=sizeof($dir_fs_www_root_array)-1; $i<$n; $i++) {
Code: for ($i=0, $n=sizeof($dir_fs_www_root_array)-2; $i<$n; $i++) {
Code: $dir_fs_document_root = $HTTP_POST_VARS['DIR_FS_DOCUMENT_ROOT'];
if ((substr($dir_fs_document_root, -2) != '/') && (substr($dir_fs_document_root, -2) != '/')) {
$where = strrpos($dir_fs_document_root, '\\');
if (is_string($where) && !$where) {
$dir_fs_document_root .= '/';
} else {
$dir_fs_document_root .= '\\';
}
}
Code: $script_filename = realpath($_SERVER['PHP_SELF']);
if (empty($script_filename)) {
$script_filename = getenv('SCRIPT_FILENAME');
}
$script_filename = str_replace('\\', '/', $script_filename);
$script_filename = str_replace('//', '/', $script_filename);
$dir_fs_www_root_array = explode('/', dirname($script_filename));
$dir_fs_www_root = array();
for ($i=0, $n=sizeof($dir_fs_www_root_array)-1; $i<$n; $i++) {
$dir_fs_www_root[] = $dir_fs_www_root_array[$i];
}
$dir_fs_document_root = implode('/', $dir_fs_www_root) . '/';
Apache 1.3.xx PHP 4.3.2 MySQL 3.xx RedHat 7.3 (Using Ensim 3.1 virtual hosting) |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| files to edit don't exist on our server - there's more | bbw | osCMax v2 Customization/Mods | 9 | 02-17-2006 07:33 AM |
| Subcategories won't show when produts exist | RickChase | osCommerce 2.2 Modification Help | 2 | 07-13-2004 01:57 AM |
| The sessions directory does not exist | jrglass | osCommerce 2.2 Installation Help | 1 | 05-01-2003 12:22 AM |
| Directories (admin/catalog etc.) do not exist ? | mmkay | osCommerce 2.2 Installation Help | 7 | 03-10-2003 09:50 PM |
| SQL file does not exist | dino | osCommerce 2.2 Installation Help | 4 | 03-04-2003 03:11 PM |