Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Configure.php


mossman

Recommended Posts

Hello and Thank you for looking. I have installed the SSL certificate and it has caused a few bugs. Another member of the group suggested that i update the configure.php. I have done so, and while i wait for my hosting company to give me rights on the configure.php to upload i was hoping someone would take a quick look and tell me if it looks right:

 

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

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

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

define('HTTP_COOKIE_DOMAIN', 'http://www.xxxxxx.com');

define('HTTPS_COOKIE_DOMAIN', 'https://www.xxxxxx.com');

define('HTTP_COOKIE_PATH', 'http://www.xxxxxx.com');

define('HTTPS_COOKIE_PATH', 'https://www.xxxxxx.com');

define('DIR_WS_HTTP_CATALOG', 'http://www.xxxxxx.com');

define('DIR_WS_HTTPS_CATALOG', 'https://www.xxxxxx.com');

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

Link to comment
Share on other sites

  • Replies 55
  • Created
  • Last Reply
define('HTTP_COOKIE_DOMAIN', 'http://www.xxxxxx.com');

define('HTTPS_COOKIE_DOMAIN', 'https://www.xxxxxx.com');

define('HTTP_COOKIE_PATH', 'http://www.xxxxxx.com');

define('HTTPS_COOKIE_PATH', 'https://www.xxxxxx.com');

define('DIR_WS_HTTP_CATALOG', 'http://www.xxxxxx.com');

define('DIR_WS_HTTPS_CATALOG', 'https://www.xxxxxx.com');

 

incorrect, as it should be similar to:

 

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

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

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/home/user-domain-name/public-html/');

define('DIR_WS_HTTPS_CATALOG', '/home/user-domain-name/public-html/');

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

incorrect, as it should be similar to:

 

Thank you for your help. I have made the following changes:

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

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

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

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

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

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', 'D:\hshome\aaron\griffinrad.com');

define('DIR_WS_HTTPS_CATALOG', 'D:\hshome\aaron\griffinrad.com');

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

 

 

It dosen't seem to be working, if you would like to take a look at: https://griffinrad.com/catalog/ all of the links are pointing to a http:// instead of the https://

Link to comment
Share on other sites

Aaron,

 

 

Only certain pages are SSL enabled in osCommerce. NOT all pages use the SSL.

 

 

login.php, create_account.php, all of the checkout pages and some in admin as well.

 

 

Chris

Link to comment
Share on other sites

Thank you! Sadly none of my checkout pages being secured. I know i missing something silly. I just can't put my finger on it. If i set the paths above correctly, should OSC automaticly secure those pages for me? Thank you all for the help, its greatly appreciated!

 

Aaron

Link to comment
Share on other sites

Thank you for your help. I have made the following changes:

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

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

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

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

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

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', 'D:\hshome\aaron\griffinrad.com');

define('DIR_WS_HTTPS_CATALOG', 'D:\hshome\aaron\griffinrad.com');

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

 

 

It dosen't seem to be working, if you would like to take a look at: https://griffinrad.com/catalog/ all of the links are pointing to a http:// instead of the https://

Your config file is still wrong if your files are in the catalog directory.

 

Try

 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');

Link to comment
Share on other sites

Your config file is still wrong if your files are in the catalog directory.

 

Try

 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

 

Thank you, i will try that. Also, is this to be applied to just the catalog/includes/ folder or on the admin/includes/ as well?

 

Thanks!

Link to comment
Share on other sites

Thank you, i will try that. Also, is this to be applied to just the catalog/includes/ folder or on the admin/includes/ as well?

 

Thanks!

The config file for the admin is different.

 

If you are having problems with that one, post it minus the database info.

Link to comment
Share on other sites

I'm not sure if i'm having problems with one or both :) i have saved them as txt files and uploaded them to here:

 

http://www.griffinrad.com/catalog-configure.txt

http://www.griffinrad.com/admin-configure.txt

 

I think i have them set correctly...

 

Thank you!

 

 

An additional thought. I had to have my host company change the CHMOD to 777 from 555 on the configure.php so that i could modify the file. So i get the little bar across the top of my cart saying that it can write to the configure.php. I hope thats not a problem....

Link to comment
Share on other sites

Ummm, so i just read a second article on setting up the SSL. The gentleman states this after his updates to the config file:

"* Note the assumptions above - The certificate was issued WITHOUT the www. qualifier and this shop is installed in Catalog directory ONE level below root. "

 

I'm checking now to see if the SSL was registered with the www. qualifier, also... My server there is no public_html or www folders. Everything lives in the root. So the catalog is in the same folder with all my other files directories, etc.

 

Here is a screen capture of my server via CuteFTP:

 

http://www.griffinrad.com/ftp_scrn_shot.png

 

I apologize for not knowing that these items may play a key role in what I’m trying to accomplish today...

 

Thanks!

Link to comment
Share on other sites

Sorry everyone for the heavy posting, as i read through the forums i'm getting closer to giving a good roadmap of my server, and config of OSC.

 

1) My SSL has the www.

2) My server doesn't have a public_html or www_root directory (image:ftp_scrn_shot.png )

3) Have downloaded SSL Help Tools to check my config, here are the results:

my_enviroment.png

And

configure_check.png

 

Most recent version of my code:

C A T A L O G

<?php
/*
 $Id$

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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://www.griffinrad.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.griffinrad.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.griffinrad.com');
 define('HTTPS_COOKIE_DOMAIN', 'https://www.griffinrad.com');
 define('HTTP_COOKIE_PATH', 'www.griffinrad.com');
 define('HTTPS_COOKIE_PATH', 'www.griffinrad.com');
 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', 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', 'osCommerce');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

A D M I N

 

<?php
/*
 $Id$

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.griffinrad.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.griffinrad.com');
 define('HTTPS_CATALOG_SERVER', 'https://griffinrad.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // 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', '/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', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', '');
 define('DB_SERVER_USERNAME', 'mysql');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'osCommerce');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', '');
?>

Link to comment
Share on other sites

define('HTTPS_COOKIE_DOMAIN', 'https://www.griffinrad.com');

define('HTTP_COOKIE_PATH', 'www.griffinrad.com');

define('HTTPS_COOKIE_PATH', 'www.griffinrad.com');

Why did you do that?

 

Those should be

 define('HTTPS_COOKIE_DOMAIN', 'www.griffinrad.com');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');

In your above post it says Duplicate Enable_SSl line found.

 

The below line should exist ONLY once and be in catalog/includes/configure.php.

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

Link to comment
Share on other sites

Why did you do that?

 

Those should be

 define('HTTPS_COOKIE_DOMAIN', 'www.griffinrad.com');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');

In your above post it says Duplicate Enable_SSl line found.

 

The below line should exist ONLY once and be in catalog/includes/configure.php.

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

 

 

Apologies, i have read other posts and have modified code based on them hoping to find a resoltion. That didn't work :) let me change the code. Thank you!

Link to comment
Share on other sites

Apologies, i have read other posts and have modified code based on them hoping to find a resoltion. That didn't work :) let me change the code. Thank you!

 

I have update the configure.php to this:

 

  define('HTTP_SERVER', 'http://griffinrad.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.griffinrad.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'griffinrad.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.griffinrad.com');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', 'https://griffinrad.com/catalog/');
 define('DIR_WS_HTTPS_CATALOG', 'https://griffinrad.com/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', 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', 'osCommerce');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

 

Unfortunetly still no lock. I apologize for opening another post. I wanted to clean up the other one that i made very long by posting so much. How do i delete a post?

Link to comment
Share on other sites

What about the duplicate entry for

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

You need to track that down.

 

That is one reason why the enable_ssl stays false. If you noticed in ssl test above it says

Found ENABLE_SSL

define('ENABLE_SSL', 0);, which is false.

 

You can not delete your posts.

Link to comment
Share on other sites

According to the other post you didn't define your database connections there. The only explanation I can think of is that it is getting defined somewhere else. In such case, it could also be the source of your duplicate SSL call.

Link to comment
Share on other sites

What about the duplicate entry for

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

You need to track that down.

 

That is one reason why the enable_ssl stays false. If you noticed in ssl test above it says

Found ENABLE_SSL

define('ENABLE_SSL', 0);, which is false.

 

You can not delete your posts.

 

Thank you for your patience with me. I have used dreamweaver to search all my files, so far the only reference to:

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

is in my includes/configure.php file

 

I also did a search on ""

 

and found one in includes/local/configure.php:

 

<?

 define('DIR_FS_ADMIN', 'D:/hshome/aaron/griffinrad.com/admin/');
 define('DIR_FS_CATALOG', 'D:/hshome/aaron/griffinrad.com/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_WS_CATALOG', '/catalog/');
 define('HTTP_CATALOG_SERVER', 'http://griffinrad.com');
 define('HTTP_COOKIE_DOMAIN', 'griffinrad.com');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTP_SERVER', 'http://griffinrad.com');


 define('HTTP_SERVER', 'http://griffinrad.com');

 define('DIR_FS_DOCUMENT_ROOT', 'D:/hshome/aaron/griffinrad.com/'); 
 define('DIR_FS_LOGS', '../admin/logs');
  define('ENABLE_SSL', 0);
// define our database connection
 define('DB_SERVER', 'mysql.sozohosting.com');
 define('DB_SERVER_USERNAME', 'aaron_Griffin1');
 define('DB_SERVER_PASSWORD', 'Griffin2008');
 define('DB_DATABASE', 'aaron_shopsite');
 define('CONFIGURE_STATUS_COMPLETED', 1);
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

I changed the 0 to a 1, Which totally broke the site. Then in looking at it i realized it had attempt 1's database information

 

Its updated to:

 

<?

 define('DIR_FS_ADMIN', 'D:/hshome/aaron/griffinrad.com/admin/');
 define('DIR_FS_CATALOG', 'D:/hshome/aaron/griffinrad.com/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_WS_CATALOG', '/catalog/');
 define('HTTP_CATALOG_SERVER', 'http://griffinrad.com');
 define('HTTP_COOKIE_DOMAIN', 'griffinrad.com');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTP_SERVER', 'http://griffinrad.com');


 define('HTTP_SERVER', 'http://griffinrad.com');

 define('DIR_FS_DOCUMENT_ROOT', 'D:/hshome/aaron/griffinrad.com/'); 
 define('DIR_FS_LOGS', '../admin/logs');
  define('ENABLE_SSL', 1);
// define our database connection
 define('DB_SERVER', 'mysql.sozohosting.com');
 define('DB_SERVER_USERNAME', 'aaron_buygriffin');
 define('DB_SERVER_PASSWORD', 'mo66ss77');
 define('DB_DATABASE', 'aaron_ShopOnline');
 define('CONFIGURE_STATUS_COMPLETED', 1);
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

And i think that fixed it, somewhat...

 

Now when i checkout, in my URL bar it reads: https://www.griffinrad.comhttps//griffinrad.com/catalog/checkout_shipping.php?osCsid=15d467fcbcd08d6bb6f1712c85521a48

Link to comment
Share on other sites

I changed:

 

define('DIR_WS_HTTP_CATALOG', 'https://griffinrad.com/catalog/');

define('DIR_WS_HTTPS_CATALOG', 'https://griffinrad.com/catalog/');

 

 

to just a / ant that coreected the url string

Link to comment
Share on other sites

but when i click checkout now my link reades

https://www.griffinrad.com/checkout_shipping.php?osCsid=15d467fcbcd08d6bb6f1712c85521a48

but i get a broken page

Link to comment
Share on other sites

According to the other post you didn't define your database connections there. The only explanation I can think of is that it is getting defined somewhere else. In such case, it could also be the source of your duplicate SSL call.

 

 

Yes you are exactly right. I had a previous install that had bad databse data in it in the includes/local/configure.php

 

i have upadted it to the correct information.

Link to comment
Share on other sites

I changed:

 

define('DIR_WS_HTTP_CATALOG', 'https://griffinrad.com/catalog/');

define('DIR_WS_HTTPS_CATALOG', 'https://griffinrad.com/catalog/');

 

 

to just a / and that corrected the url string

 

Now i just get a broken page when i got to check out, the URL string looks valid.

https://www.griffinrad.com/checkout_shipping.php?osCsid=15d467fcbcd08d6bb6f1712c85521a48

 

 

The updated code:

 

includes/local/configure.php

 

<?

 define('DIR_FS_ADMIN', 'D:/hshome/aaron/griffinrad.com/admin/');
 define('DIR_FS_CATALOG', 'D:/hshome/aaron/griffinrad.com/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_WS_CATALOG', '/catalog/');
 define('HTTP_CATALOG_SERVER', 'http://griffinrad.com');
 define('HTTP_COOKIE_DOMAIN', 'griffinrad.com');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTP_SERVER', 'http://griffinrad.com');


 define('HTTP_SERVER', 'http://griffinrad.com');

 define('DIR_FS_DOCUMENT_ROOT', 'D:/hshome/aaron/griffinrad.com/'); 
 define('DIR_FS_LOGS', '../admin/logs');
  define('ENABLE_SSL', 1);
// define our database connection
 define('DB_SERVER', 'mys*******g.com');
 define('DB_SERVER_USERNAME', 'aa*******fin');
 define('DB_SERVER_PASSWORD', 'm********7');
 define('DB_DATABASE', 'aar*******line');
 define('CONFIGURE_STATUS_COMPLETED', 1);
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

includes/configure.php

 

<?php
/*
 $Id$

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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://griffinrad.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.griffinrad.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'griffinrad.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.griffinrad.com');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 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', 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'
?>

Link to comment
Share on other sites

Couple things.. edit your post and delete your DB connection information.. that is very bad to post.

 

As far as the long string at the end, that is normal that is the session ID.

Link to comment
Share on other sites

Couple things.. edit your post and delete your DB connection information.. that is very bad to post.

 

As far as the long string at the end, that is normal that is the session ID.

 

 

Thank you, in my happiness i got carried away. Post edited :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...