Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SQL file does not exist: /install/oscommerce.sql


isaacf

Recommended Posts

Posted
Hello, I am new in this forum and wanted to know if they can help me with this problem, I leave the Link them so that they see that it is what it happens to me in instalaci?n of the OSC.

P.S I am of the city of M?xico and I do not speak inglish...

 

http://oscommerce.qadram.com/modules.php?n...iewtopic&t=8517

 

Thanks...

 

This is a problem of installing oscommerce on a recent version of PHP. The easiest way to get around this problem is to edit the install_3.php file and put in the absolute path to the oscommerce.sql file.

 

install_3.php is located in - ...\catalog\install\templates\pages\install_3.php

 

Find this line - $sql_file = $dir_fs_www_root . 'install/oscommerce.sql';

 

and change it to the absolute path - $sql_file = 'c:/inetpub/wwwroot/catalog/install/oscommerce.sql';

(the above example would be typical for a Windows web server - your path may be different)

Posted

Thanks, I could solve the problem i myself, everything was in which specified the installation route well, I I specified:

 

/www/tienda

 

and the correct thing is:

C:\FoxServ\www\tienda

 

Thanks for the answer in any case... :blush:

 

Screenshot:

 

osc5ff.th.jpg

Posted

in install_3.php find this:

$script_filename = getenv('PATH_TRANSLATED');

if (empty($script_filename)) {

$script_filename = getenv('SCRIPT_FILENAME');

}

 

replace with this

$script_filename = $_SERVER["PATH_TRANSLATED"];

 

 

if (empty($script_filename)) {

$script_filename = $_SERVER["PATH_TRANSLATED"];

 

 

}

 

 

This is only for windows

Good luck

Posted

Just tried both of the above but now i'm getting

 

Parse error: parse error, unexpected T_STRING in e:\domains\t\the-mpg.com\user\htdocs\catalog\install\templates\pages\install_3.php on line 50

 

Am completely lost any ideas?????

 

Thx

Posted
Just tried both of the above but now i'm getting

 

Parse error: parse error, unexpected T_STRING in e:\domains\t\the-mpg.com\user\htdocs\catalog\install\templates\pages\install_3.php on line 50

 

Am completely lost any ideas?????

 

Thx

 

 

 

Had applyed the register_globals patch before had if thats any help

 

Sorry for the double posts

 

Many Thx

 

Ken

Posted
Just tried both of the above but now i'm getting

 

Parse error: parse error, unexpected T_STRING in e:\domains\t\the-mpg.com\user\htdocs\catalog\install\templates\pages\install_3.php on line 50

 

Am completely lost any ideas?????

 

Thx

 

Just replace install_3.php with an unmodified one and try again. This error is typically caused by missing or mismatched puncuation...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...