undahtran Posted October 13, 2009 Posted October 13, 2009 Newbie with OScommerce. My site is up and running and I have set adwords to it. The Problem. When a customer and when I tried to proceed to check out, I get this message: "this page contains secure and non secure items. Do you want to display the nonsecure item" On a mac it gives this info: Warning-Contains Unauthenticated Content. How do I get rid of this and is it possible. I believe Im losing sales because of this scaring the customers away. Regards, Undah
germ Posted October 13, 2009 Posted October 13, 2009 "this page contains secure and non secure items. Do you want to display the nonsecure item" You get that from trying to load scripts or images from HTTP source on a HTTPS page. Either in the page itself or in the stylesheet. Without a URL that's as specific as I can get. 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 >
knifeman Posted October 13, 2009 Posted October 13, 2009 Newbie with OScommerce. My site is up and running and I have set adwords to it. The Problem. When a customer and when I tried to proceed to check out, I get this message: "this page contains secure and non secure items. Do you want to display the nonsecure item" On a mac it gives this info: Warning-Contains Unauthenticated Content. How do I get rid of this and is it possible. I believe Im losing sales because of this scaring the customers away. Regards, Undah If you have Adsense, which is google ads on your site, you need to put them into an infobox OR prevent them from being shown on SSL pages. http://addons.oscommerce.com/category?search=adsense Tim
undahtran Posted October 14, 2009 Author Posted October 14, 2009 Ok, should I apply the https: to all images in the stylesheet and the php pages also? Thanks for the help guys, Undah
undahtran Posted October 14, 2009 Author Posted October 14, 2009 Germ, here's he site www.mangosteendirect.com See if this will help identify the issue. Thanks, Undah
germ Posted October 14, 2009 Posted October 14, 2009 All I could find was this: <embed width="190" height="150" flashvars="" src="http://www.youtube.com/v/MLTRrDgPGSo" type="application/x-shockwave-flash" id="VideoPlayback"/> That'll muck up your SSL in a hurry. :( Your're trying to load something from a HTTP source on a HTTPS page. 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 >
undahtran Posted October 14, 2009 Author Posted October 14, 2009 How do I apply the https on it without making it disappear since it's from youtube?
germ Posted October 14, 2009 Posted October 14, 2009 You don't. I'd make the whole Xango Media box in the right column disappear when in SSL mode. If you post the code from your /includes/column_right.php file I can probably show you how. At least this is my best guess where the code is at. 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 >
undahtran Posted October 14, 2009 Author Posted October 14, 2009 As of right now, I took the whole media thing out. It would be great if we can do the ssl with the media. <?php /* $Id: column_right.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'shopping_cart.php'); if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { //include(DIR_WS_BOXES . 'categories.php'); } //require(DIR_WS_BOXES . 'shopping_cart.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } include(DIR_WS_MODULES . 'viewed_products.php'); require(DIR_WS_BOXES . 'reviews.php'); require(DIR_WS_BOXES . 'media.php'); ?> thanks, Undah
germ Posted October 14, 2009 Posted October 14, 2009 Not possible unless the URL can be "https:" and still work. If you want the box to show only when SSL is OFF change this line: require(DIR_WS_BOXES . 'media.php'); To if ( $request_type == 'NONSSL' ) { require(DIR_WS_BOXES . 'media.php'); } BACKUP THE FILE BEFORE EDITING. You break it - You bought it... :huh: 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 >
undahtran Posted October 14, 2009 Author Posted October 14, 2009 That worked like a charm my man!! Thank you. So that caused all the problems. So I was wrong applying the https: to the css? Please let me know.
germ Posted October 14, 2009 Posted October 14, 2009 That worked like a charm my man!! Thank you. So that caused all the problems. So I was wrong applying the https: to the css? Please let me know. Yes. For eaxmple: background:url(https://www.mangosteendirect.com/images/BG_header.jpg) no-repeat top center; width:912px; height:159px; Should be: background:url(images/BG_header.jpg) no-repeat top center; width:912px; height:159px; osC uses the <base href="http://www.site.com/"> tag in the header. The browser then takes that and uses it and the "relative" image path in the stylesheet to construct the path to CSS image and find the image. The base href tag is what changes when SSL is on/off. 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 >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.