Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin & Catalog Problems


BMComputers

Recommended Posts

Hi,

 

I have been trying to get OScommerce to operate on my loacal server for a couple of weeks. Have managed to get past most problems, thanks to theis forum, but i have hit a wall with this one:-

 

 

Parse error: syntax error, unexpected T_STRING in c:\Inetpub\wwwroot\includes\configure.php on line 34

 

Parse error: syntax error, unexpected T_STRING in c:\Inetpub\wwwroot\admin\includes\configure.php on line 19

 

My admin configure.php is:-

 

-----------------------------------------------------------------------------------------------

 

<?php

/*

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', '/inetpub/wwwroot\'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', '/inetpub/wwwroot\admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/inetpub/wwwroot\'); // 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/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'bmason');

define('DB_SERVER_PASSWORD', 'reuben');

define('DB_DATABASE', 'ols');

define('USE_PCONNECT', 'true'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

-----------------------------------------------------------------------------------------------

 

My Catalog Config.php is:

 

-----------------------------------------------------------------------------------------------

 

<?php

/*

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('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '');

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

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

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_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/inetpub/wwwroot\');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'bmason');

define('DB_SERVER_PASSWORD', 'reuben');

define('DB_DATABASE', 'ols');

define('USE_PCONNECT', 'true'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

-----------------------------------------------------------------------------------------------

 

I know diddly squat about PHP coding.

 

Thanks for anyones help.

 

Cheers,

Ben Mason

Link to comment
Share on other sites

-----------------------------------------------------------------------------------------------

 

?

define('DB_SERVER_USERNAME', 'bmason');

? define('DB_SERVER_PASSWORD', 'reuben');

? define('DB_DATABASE', 'ols');

? define('USE_PCONNECT', 'true'); // use persistent connections?

? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

-----------------------------------------------------------------------------------------------

 

I know diddly squat about PHP coding.

 

Thanks for anyones help.

 

Cheers,

Ben Mason

 

If I was you I would change my login and password immediately.

Everyone can see it.

 

Trev

Link to comment
Share on other sites

-----------------------------------------------------------------------------------------------

 

? define('DB_SERVER_USERNAME', 'bmason');

? define('DB_SERVER_PASSWORD', 'reuben');

? define('DB_DATABASE', 'ols');

? define('USE_PCONNECT', 'true'); // use persistent connections?

? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

-----------------------------------------------------------------------------------------------

 

I know diddly squat about PHP coding.

 

Thanks for anyones help.

 

Cheers,

Ben Mason

 

If I was you I would change my login and password immediately.

Everyone can see it.

 

Trev

 

 

Server isn't public

Link to comment
Share on other sites

define('DIR_FS_CATALOG', 'c:/inetpub/wwwroot/');

 

Don't use a mix of forward and back slashes.

 

Vger

 

 

Thanks Vger for your advice, I don't know why there was a mixture of forward and back slashes as i had never edited the file.

 

I replace all \ with / and now i am getting a different error:-

 

Parse error: syntax error, unexpected T_STRING in c:\Inetpub\wwwroot\catalog\install\templates\pages\install_7.php on line 177

 

the line is as follows:-

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

 

 

Thanks for your help

 

Ben

Link to comment
Share on other sites

I think this is a problem with the way Windows servers uses forward and back slashes. I think that pathways on Windows (no Windows expert - hate Windows servers) use the forward slash e.g. c:\Inetpub\wwwroot\catalog\

 

For some reason your server is adding slashes to apostrophies e.g.

define(/'HTTP_SERVER/', /''

This is not necessary in the configure.php files and is messing everything up.

 

I think you really need help from someone with more expertise on using Windows servers.

 

Vger

Link to comment
Share on other sites

I think this is a problem with the way Windows servers uses forward and back slashes.  I think that pathways on Windows (no Windows expert - hate Windows servers) use the forward slash e.g. c:\Inetpub\wwwroot\catalog\

 

For some reason your server is adding slashes to apostrophies e.g.

define(/'HTTP_SERVER/', /''

This is not necessary in the configure.php files and is messing everything up.

 

I think you really need help from someone with more expertise on using Windows servers.

 

Vger

 

I give up in IIS, i swithed it over to an apache server, and what you know it STRAIGHT IN....no errors....how much longer is Bill gonna make his fake attempts at creating good software???

 

Thanks for the help Vger.

 

Cheers

Link to comment
Share on other sites

I'm not anti-Microsoft. They do some things right. The XP operating system is the best around - and yes, I do have a Mac with OSX and it's not a patch on XP. However, Windows servers are a bit of a nightmare to use and administer. Online Windows servers need patching on an almost daily basis.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...