Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I'm sure this is very easy to fix...


Jaide

Recommended Posts

Posted

I have SSL installed and working for www.mysite.com. Now, when I login/create an account/checkout, all of the 'Continue' buttons will try to open:

https://www.mysite.com/https://www.mysite.com/create_account_success.php'>https://www.mysite.com/https://www.mysite.com/create_account_success.php (for example).

 

If I take out one of the https://www.mysite.com/ in the paths, my images don't show up in IE. So, here's the dilemma. How can I get the buttons to work and IE to show my images :blush:

 

Here is includes/configure.php:

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.mysite.com/'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '.mysite.com');
 define('HTTPS_COOKIE_DOMAIN', '.mysite.com');
 define('HTTP_COOKIE_PATH', '');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', 'http://www.mysite.com/');
 define('DIR_WS_HTTPS_CATALOG', '');
 define('DIR_WS_IMAGES', 'http://mysite.com/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/');

 

and admin/includes/configure.php:

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'https://www.mysite.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'https://www.mysite.com');
 define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/jaide/public_html/'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 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', 'catalog/images/');
 define('DIR_FS_CATALOG_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_FS_BACKUP', '/home/jaide/public_html/admin/backups/');

Posted

All your paths are entirely wrong.

Posted

^ Can I get a little guidance on what is wrong then?

 

Edit: Just to note that I have OSC installed in my root directory, not catalog/

Posted

The amount of mistakes there are I would suggest reinstalling (presuming it's a new install).

 

Or maybe someone will have the time here to go through each one.

Posted

Def. not a new install... I can't see how there are lots of mistakes as my site works fine minus the couple bits... .

 

ANY guidance at all would be nice...

Posted

Try starting here

 

  define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.mysite.com/'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '.mysite.com');
 define('HTTPS_COOKIE_DOMAIN', '.mysite.com');
 define('HTTP_COOKIE_PATH', '');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', 'http://www.mysite.com/');
 define('DIR_WS_HTTPS_CATALOG', '');
 define('DIR_WS_IMAGES', 'http://mysite.com/images/');

 

should probably be

 

  define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.mysite.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '.mysite.com');
 define('HTTPS_COOKIE_DOMAIN', '.mysite.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');

Posted

how's possible your store will ever operate with something like this?

 

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

 

Check if you have another configure.php file in the local folder. Shouldn't be but you never know. And use the oscommerce from here

http://www.oscommerce.com/solutions/downloads

 

If for some mysterious reason you want to have secure pages only, you still need to populate the server definition.

Posted
how's possible your store will ever operate with something like this?

 

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

 

Check if you have another configure.php file in the local folder. Shouldn't be but you never know. And use the oscommerce from here

http://www.oscommerce.com/solutions/downloads

 

If for some mysterious reason you want to have secure pages only, you still need to populate the server definition.

 

I don't know but it does. I'll try to replace the paths and see what happens.

  • 1 month later...
Posted

To anyone who was helpful earlier:

 

I have now managed to screw up my admin panel so that I'm getting URLs like this past the index.php page:

 

http://www.mysite.com/DIR_WS_ADMINconfigur...ation&gID=1

 

I can't figure out why this is happening, but it has been happening since having made changes to the configure.php file(s) - which I then reverted to what I THOUGHT they were before. I just tried mimicking the 'fixed' code appearing in this thread but I am also concerned about that since this install is to a catalog/ directory in the top level of my public_html/ directory, unlike the problem install here. Could you begin by telling me to which elements of the paths detailed above I should add anything (/catalog for instance?) and in what syntax (as I am obviously not fluent with PHP)?

 

Any advice is much appreciated.

Posted
To anyone who was helpful earlier:

 

I have now managed to screw up my admin panel so that I'm getting URLs like this past the index.php page:

 

http://www.mysite.com/DIR_WS_ADMINconfigur...ation&gID=1

 

I can't figure out why this is happening, but it has been happening since having made changes to the configure.php file(s) - which I then reverted to what I THOUGHT they were before. I just tried mimicking the 'fixed' code appearing in this thread but I am also concerned about that since this install is to a catalog/ directory in the top level of my public_html/ directory, unlike the problem install here. Could you begin by telling me to which elements of the paths detailed above I should add anything (/catalog for instance?) and in what syntax (as I am obviously not fluent with PHP)?

 

Any advice is much appreciated.

 

 

DIR_WS_ADMIN is in the file catalog/admin/includes/configure.php

 

the define DIR_WS_ADMIN should look something like ...

 

 

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

Archived

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

×
×
  • Create New...