Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

catalog/includes/configure.php

 

add these:

 

define('STYLESHEET', 'shop/stylesheet.css' );

define('DM_SETDIRROOT', '/home/******/public_html/catalog' );

define('DM_SETDIRROOT', 'C:/Program Files/Apache Group/Apache2/htdocs/catalog' );

define('DM_INCLUDES_FUNCTIONS', 'includes/functions/' );

 

 

 

catalog/includes/boxes/dm_header.php

 

change these to your paths.

 

// set paths

 

$myDirPath = '/Program Files/Apache Group/Apache2/htdocs/'; // or linux path etc

$myWwwPath = '/';

 

I change the paths

$myDirPath = '/data/17/2/110/1/2110327/user/2315449/htdocs/'; // or linux path etc

$myWwwPath = '/data/17/2/110/1/2110327/user/2315449/htdocs/';

 

As directed by my web host provider

but nothing changed, Im still receiving the same error:

Parse error: syntax error, unexpected ';' in /data/17/2/110/1/2110327/user/2315449/htdocs/oscommerce/includes/configure.php on line 43

What am i doing wrong.

Edited by GEEHOPE
Posted

Parse errors can't be solve unless you post the code so someone can see what the problem is and suggest a fix.

 

If you post the code from the /includes/configure.php be sure to remove or X-out your database info.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Parse errors can't be solve unless you post the code so someone can see what the problem is and suggest a fix.

 

If you post the code from the /includes/configure.php be sure to remove or X-out your database info.

 

thank you for replying

here is my "configure.php

Im using sts 4.6

with osCommerce 2.2-MS2

 

<?php

// Please, note that all changes in this file will be lost

// after reconfiguring application by Plesk

 

// Define the webserver and path parameters

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

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

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

define('HTTPS_SERVER', 'http://www.amandacreativecookies.com/'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.amandacreativecookies.com');

define('HTTPS_COOKIE_DOMAIN', 'www.amandacreativecookies.com');

define('HTTP_COOKIE_PATH', 'oscommerce/');

define('HTTPS_COOKIE_PATH', 'oscommerce/');

define('DIR_WS_HTTP_CATALOG', 'oscommerce/');

define('DIR_WS_HTTPS_CATALOG', 'oscommerce/');

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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', '********');

define('DB_SERVER_PASSWORD', '********');

define('DB_DATABASE', '*********');

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

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

 

define('STYLESHEET', 'shop/stylesheet.css' );

define('DM_SETDIRROOT', '/home/******/public_html/catalog' );

define('DM_SETDIRROOT', 'C:/Program Files/Apache Group/Apache2/htdocs/catalog' );

define('DM_INCLUDES_FUNCTIONS', 'includes/functions/' );

?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...