osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

secure warning on ie 7

This is a discussion on secure warning on ie 7 within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; I get a secure warning on my page when loaded in ie 7... I have tried and reconfigured anything i ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-21-2008, 09:38 PM
Member
 
Join Date: Aug 2007
Posts: 72
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 3
tcshadow is on a distinguished road
Default secure warning on ie 7

I get a secure warning on my page when loaded in ie 7... I have tried and reconfigured anything i could, breaking a few other things in the process but i simply can't get it fixed.

I don't want to post my domain here because I don't want google to index it here so pls let me know if you're willing to try and help and I"ll I'll pm it or tell me how to post it so google doesn't find it.

My configure.php:

PHP Code:
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
  
define('HTTP_SERVER''http://www.mydomain.com.au'); // eg, http://localhost - should not be empty for productive servers
  
define('HTTPS_SERVER''https://www.mydomain.com.au'); // eg, https://localhost - should not be empty for productive servers 
  
define('ENABLE_SSL'true); // secure webserver for checkout procedure?
  
define('HTTP_COOKIE_DOMAIN''mydomain.com.au');
  
define('HTTPS_COOKIE_DOMAIN''mydomain.com.au'); 
  
define('HTTP_COOKIE_PATH''/');
  
define('HTTPS_COOKIE_PATH''/');
  
define('DIR_WS_HTTP_CATALOG''/');
  
define('DIR_WS_HTTPS_CATALOG''/');
  
define('DIR_WS_IMAGES''http://www.mydomain.com.au/images/');  
  
define('DIR_WS_ICONS'DIR_WS_IMAGES 'http://www.mydomain.com.au/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''/home/myaccount/public_html/');
  
define('DIR_FS_DOWNLOAD'DIR_FS_CATALOG 'download/');
  
define('DIR_FS_DOWNLOAD_PUBLIC'DIR_FS_CATALOG 'pub/'); 
help?

Last edited by jpf; 07-23-2008 at 09:19 PM. Reason: As per users request - removed actual live URL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 06-21-2008, 09:40 PM
Member
 
Join Date: Aug 2007
Posts: 72
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 3
tcshadow is on a distinguished road
Default Re: secure warning on ie 7

I had to put the full path in so that it would load the images when people click yes on the warning otherwise it doesn't load any product images at all... all the background and template images work fine though


Firefox works fine and doesn't throw up any errors
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 06-22-2008, 02:35 AM
Member
 
Join Date: Aug 2007
Posts: 72
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 3
tcshadow is on a distinguished road
Default Re: secure warning on ie 7

For the love of god somebody help

Internet Exploder seems to be mocking me... everything works fine and bloody dandy in firefox... internet explorer which of course 90% of my customers would use says my website has insecure content and I can't fix it... help please!!!

I have tried everything in every thread i could find which had a similar issue

no warnings and images will show fine in firefox with either ssl or non ssl and internet explorer only shows images when i say yes to the prompt and still breaks one image.


What files do i need to check for paths?? where do i look for a problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 06-22-2008, 04:35 AM
Member
 
Join Date: Aug 2007
Posts: 72
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 3
tcshadow is on a distinguished road
Default Re: secure warning on ie 7

I have now finally found the offending image that was causing the ie 7 errors... but my images still don't display...

it's wierd images in my /templates directory work fine, but my images under /images folder are broken.

They get called as https:// in both cases

It has now also stopped working in firefox
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 06-22-2008, 05:02 AM
Member
 
Join Date: Aug 2007
Posts: 72
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 3
tcshadow is on a distinguished road
Default Re: secure warning on ie 7

My situation at present in summary:

Mixed content warning is gone.
if I load the site as https:// in internet explorer it shows the images. Once i hit refresh, they come up as broken.

In Firefox they show as broken

my includes/config.php:
PHP Code:
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
  
define('HTTP_SERVER''http://www.mydomain.com.au'); // eg, http://localhost - should not be empty for productive servers
  
define('HTTPS_SERVER''https://www.mydomain.com.au'); // eg, https://localhost - should not be empty for productive servers 
  
define('ENABLE_SSL'true); // secure webserver for checkout procedure?
  
define('HTTP_COOKIE_DOMAIN''www.mydomain.com.au');
  
define('HTTPS_COOKIE_DOMAIN''www.tmydomain.com.au'); 
  
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''/home/myaccount/public_html/');
  
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''xxxxxxxx');
  
define('DB_SERVER_PASSWORD''xxxxxxxxx');
  
define('DB_DATABASE''xxxxxxxxx');
  
define('USE_PCONNECT''false'); // use persistent connections?
  
define('STORE_SESSIONS''mysql'); // leave empty '' for default handler or set to 'mysql' 


my admin/include/configure.php:

PHP Code:
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
  
define('HTTP_SERVER''http://www.mydomain.com.au'); // eg, http://localhost - should not be empty for productive servers
  
define('HTTP_CATALOG_SERVER''http://www.mydomain.com.au');
  
define('HTTPS_CATALOG_SERVER''https://tmydomain.com.au'); // martin edit removed www
  
define('ENABLE_SSL_CATALOG'true); // secure webserver for catalog module
  
define('DIR_FS_DOCUMENT_ROOT''/home/myaccount/public_html/'); // where the pages are located on the server
  
define('DIR_WS_ADMIN''/admin/'); // absolute path required
  
define('DIR_FS_ADMIN''/home/myaccount/public_html/admin/'); // absolute pate required
  
define('DIR_WS_CATALOG''/'); // absolute path required
  
define('DIR_FS_CATALOG''/home/myaccount/public_html/'); // 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('DIR_FCKEDITOR'DIR_FS_CATALOG 'FCKeditor/');
  
define('DIR_WS_FCKEDITOR'DIR_WS_CATALOG 'FCKeditor/'); 


any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 06-22-2008, 05:15 AM
Member
 
Join Date: Aug 2007
Posts: 72
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 3
tcshadow is on a distinguished road
Default Re: secure warning on ie 7

When I do the following it completely fixes Firefox(all images and everything loads and works perfectly) and completely breaks internet explorer(brings back mixed content warning and if no clicked doesn't load any images at all) Internet Exploder should be illegal imo.


Quote:
In your main_page.tpl.php, the base href line should look like this:

Code:
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
This allows the <base href="..."> tag to change to ssl when required. If your tag looks like above, try changing the $request_type == 'SSL' to $request_type == 'HTTPS'

If your line of code does not look like the above, paste my code in and see if that helps...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 06-22-2008, 05:28 AM
Member
 
Join Date: Aug 2007
Posts: 72
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 3
tcshadow is on a distinguished road
Default Re: secure warning on ie 7

I've now got the 2 lines sitting together like so:

PHP Code:
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER HTTP_SERVER) . DIR_WS_CATALOG?>">
<base href="<?php echo (($request_type == 'HTTPS') ? HTTPS_SERVER HTTP_SERVER) . DIR_WS_CATALOG?>">
and now firefox works fine and IE just refuses to load images again no error msg..

If i flip them and put https first and ssl second ie breaks again, errr message returns and no images show if "no" is clicked
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 06-22-2008, 12:40 PM
Member
 
Join Date: Aug 2007
Posts: 72
Thanks: 9
Thanked 1 Time in 1 Post
Rep Power: 3
tcshadow is on a distinguished road
Default Re: secure warning on ie 7

So it turns out that the culprit all along was hotlink protection... except that was the first thing i had turned off and it still didn't fix it... but that's what my php guy says. If I get more info out of him I'll post it here.


Issue solved.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Secure SSL yulises osCMax v2 Customization/Mods 2 03-14-2007 01:37 PM
Affiliate link secure non-secure kwiznoz osCMax v2 Installation issues 6 08-28-2005 01:08 PM
secure and none secure items ? pete76uk osCommerce 2.2 Installation Help 3 10-12-2004 01:51 PM
What folders to secure? PrettyWolfie osCommerce 2.2 Modification Help 4 08-01-2004 02:51 AM
Secure site help CMWM osCMax v1.7 Discussion 3 04-30-2004 01:47 PM


All times are GMT -8. The time now is 08:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design