Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installation Errors


dbenfell

Recommended Posts

I undertook a clean install and everything seemed to work ok except when I try and open the catalog (similar for admin) I get the following:

 

Parse error: parse error, unexpected T_STRING in c:\inetpub\wwwroot\catalog\includes\configure.php on line 34

 

Warning: main(DIR_WS_INCLUDESC:\Inetpub\wwwroot\catalog\includes\filenames.php): failed to open stream: No such file or directory in c:\inetpub\wwwroot\catalog\includes\application_top.php on line 53

 

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESC:\Inetpub\wwwroot\catalog\includes\filenames.php' (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\catalog\includes\application_top.php on line 53

 

 

Any ideas????

Link to comment
Share on other sites

yea, it looks like the config files is setup incorrectly. Check both from catalog and admin .. and look for the occurance of DIR_WS_INCLUDES and the formatting should look something like this

 

 

define('DIR_WS_INCLUDES', 'includes/');

 

 

from the examples you have given below its just missing a ' or a , or something..

check line 34, its if the end of the file then its missing some formatting somewhere in the config files.

 

Galen

Link to comment
Share on other sites

  • 1 month later...
yea, it looks like the config files is setup incorrectly. Check both from catalog and admin .. and look for the occurance of DIR_WS_INCLUDES and the formatting should look something like this

 

 

define('DIR_WS_INCLUDES', 'includes/');

 

 

from the examples you have given below its just missing a ' or a , or something..

check line 34, its if the end of the file then its missing some formatting somewhere in the config files.

 

Galen

hello.

 

to my it leaves me the same error. but in:

Parse error: parse error, unexpected T_STRING in c:\inetpub\wwwroot\catalog\includes\configure.php on line 19

 

in my it lines 19 of the file it configures.php is.

 

19  define ('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

 

please. that I make.. ?

 

thank you for all their help.

Link to comment
Share on other sites

check line 18 as well.. as parse error can be found in line above depending what they are..

 

eg if there is a missing } in the code it will usually say parse error and the line will be the last line of the file.

 

the line u've pasted looks fine if you aren't sure paste the whole config file here so I can look at it.. make sure u've xx'ed out the important parts

 

Galen

Link to comment
Share on other sites

check line 18 as well.. as parse error can be found in line above depending what they are..

 

eg if there is a missing } in the code it will usually say parse error and the line will be the last line of the file.

 

the line u've pasted looks fine if you aren't sure paste the whole config file here so I can look at it.. make sure u've xx'ed out the important parts

 

Galen

1<?php

2/*

  osCommerce, Open Source E-Commerce Solutions

  http://www.oscommerce.com

 

  Copyright © 2003 osCommerce

 

  Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

  define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers

  define('HTTP_CATALOG_SERVER', 'http://localhost');

  define('HTTPS_CATALOG_SERVER', '');

  define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

  define('DIR_FS_DOCUMENT_ROOT', 'c:\\\\foxserv\\\\www\\\\\'); // where the pages are located on the server

  define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

  define('DIR_FS_ADMIN', 'c:\\\\foxserv\\\\www\\\\\admin/'); // absolute pate required

  define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

  define('DIR_FS_CATALOG', 'c:\\\\foxserv\\\\www\\\\\'); // absolute path required

  define('DIR_WS_IMAGES', 'images/');

  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

  define('DIR_WS_INCLUDES', 'includes/');

  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

 

thanks for its aid. obseve.. a part of the file.

Link to comment
Share on other sites

Hmm.. obviously this is running on a windows system thats probably the start of your troubles :)

 

what happens if you change the DIR_FS_DOCUMENT_ROOT to

 

define('DIR_FS_DOCUMENT_ROOT','c:\foxserv\www\');

 

or even

 

define('DIR_FS_DOCUMENT_ROOT','c:\\foxserv\www\\');

 

i don't see the need for 4x\ ... but its windows.. and my experience with windows is limited

Link to comment
Share on other sites

it follows the same error. I clear and add //

in the other errors and happens to the following error. and they are many.

you who you advise to me that it does. to reinstalar everything? or that I can do? or because it leaves east error to me? I am in debt with you. very thanked for by its time

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...