Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HELLLPPPP!


Guest

Recommended Posts

Hello everyone :D

 

This thing has me stumped :cry:

 

I had this store here...http://store.locknalarm.com and everything worked fine...

 

I moved it here... http://www.alarmcontacts.com and the SSL part doesn't work right.

 

If you go there and try to go to any "secured" area such as "My Account", it gives those "mixed content" warnings.

 

Now I have noticed that the

<base url=http://www.alarmcontacts.com>

tag changes to the ssl url on the old store but not on the new one.... any ideas where I can tweak that base url tag to show the ssl addres instead of the main URL of the site, which it seams to be the problem??

Link to comment
Share on other sites

Emerson,

 

It appears that you have a configuration mistake. Post you catalog/includes/configure.php. Be sure to remove references to passwords and database names.

 

Also, do you a separate HTTP and HTTPS folder?

Link to comment
Share on other sites

Hi Kim, thanks for replying :D

 

Here it is...

<?php

/*

 $Id: configure.php,v 1.13 2003/02/10 22:30:51 hpdl Exp $



 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.alarmcontacts.com'); // eg, http://localhost - should not be empty for productive servers

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

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

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

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

 define('DIR_FS_DOCUMENT_ROOT', $HTTP_SERVER_VARS['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_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

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



// define our database connection

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

 define('DB_SERVER_USERNAME', 'XXXX');

 define('DB_SERVER_PASSWORD', 'XXXX');

 define('DB_DATABASE', 'XXXX');

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

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

?>

 

I have tryed everything I can think of and nothing works...what is bugging me is that the same setup works for one domain and not the other...

 

Thanks,

Link to comment
Share on other sites

Emerson,

 

Different servers with slightly different setting take different configs sometimes.

 

I would try defining the DOCUMENT_ROOT and see if that does cure the ills.

 

   define('DIR_FS_DOCUMENT_ROOT', '/XXX/YYYY/ZZZZ/SOME_DIR'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

 

Replace the CAPS in my example with your details and replace the define in your config.

Link to comment
Share on other sites

I would try defining the DOCUMENT_ROOT and see if that does cure the ills.

 

Nope...that didn't do it :crazy:

I give up *sigh*

Link to comment
Share on other sites

Emerson,

 

Don't give up just yet.....Let's double check the Admin config. Also, you didn't answer...seperate folders or not for SSL? Which snapshot are you using? Any mods that may have changed the html_output.php?

Link to comment
Share on other sites

Hi Kim,

The folders are the same.

It is a shared SSL.

 

I am using the MS1 release.

I tryed removing the <base url=...> tag from the login.php file and it now works.

Do you know of any set backs from removing that tag??

Link to comment
Share on other sites

Hi Kim, :)

Here is the Admin Config...

 

<?php

/*

 $Id: configure.php,v 1.13 2002/07/20 09:08:31 project3000 Exp $



 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.alarmcontacts.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 define('HTTP_CATALOG_SERVER', 'http://www.alarmcontacts.com');

 define('HTTPS_CATALOG_SERVER', 'https://www.sslpage.com/alarmcon');

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

 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 our database connection

 define('DB_SERVER', 'XXX');

 define('DB_SERVER_USERNAME', 'XXX');

 define('DB_SERVER_PASSWORD', 'XXX');

 define('DB_DATABASE', 'XXX');

 define('USE_PCONNECT', 'false');

 define('STORE_SESSIONS', '');

?>

 

Btw...the installation is a straight out of the box MS1...the only changes I made was to the stylesheet...no contribs added.

 

Thanks,

Link to comment
Share on other sites

Good Morning Emerson,

 

Sorry, I missed you mentioning the base href tag..... It has gone through several incarnations..... Let's take a look at it.

 

Here's what I have on a working MS1 install:

 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

Link to comment
Share on other sites

Good mornig Kim :D

 

That is exactly what I have for that tag...

What I don't get is why it shows the HTTP_SERVER instead of the HTTPS_SERVER in the "secure" pages.

 

I'm probably just gonna remove that tag on the necessary pages as it seems it is causing all the problems.

I know it doesn't affect the actual "protection" of the transmitions but from the customer point on view, that is a NO-NO if the lock is not there when it's time to enter the credit card info and all these alerts coming up.

We'll see what happens!

 

Thanks,

Link to comment
Share on other sites

Kim, thank you very much :D

 

I'm gonna try some of those fixes and see what happens.

 

At least now I feel better since I see I am not the only one with that problem :crazy:

 

Thank You!

Link to comment
Share on other sites

Ok....

I followed the suggestion on the above mentioned thread and it worked...

 

Replace this code in application_top.php (around line 40):  

 

Code:  

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';  

 

 

with this:  

 

Code:  

$request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL';  

 

That did the trick just right!

 

Thanks for all your help Kim :D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...