Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image Problem, SSL?


TibiaShop.org

Recommended Posts

Posted

Okay so first of all the link to my website is http://tibia-shop.org/shop

 

so when you go to my website you will notice you may get a bunch of random errors which i have no clue what they are then when u look at my site you will see no pictures are showing up. So what I did is I right clicked on a picture on the site and with the magic of firefox clicked "Copy Image Location" what i see is https://yhnm.info/shop/images/Crown_Shield.gif yet when you go to that it will bring up nothing. Yet the actual link for the picture is http://yhnm.info/shop/images/Crown_Shield.gif if you don't notice the difference between the two its the https:// and the http:// . So I'm wondering what I can do to fix this as its not helping my business.

 

Thanks

Posted

Was it working before?? I had this problem, and I contacted my host, and they had to reinstall the SSL certificate. I have also noticed, that when I add a picture, usually in a box, I have to ads httpS://..... or the picture doesn't show, and I receive a similar error...

Posted

I see you are using a template of some kind. Don't know exactly how thsoe are suppose to be set up, but it looks like you are missing some things in your head section.

This is yours

<!-- Page layout by Simple Template System (STS) v2.01 on osCommerce 2.2-MS2 - http://www.diamondsea.com/sts/ -->
<!-- Using Template File [includes/sts_template.html) -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Tibia-Shop.org</title><base href="https://yhnm.info/shop/">

<!-- start get_javascript(applicationtop2header) //-->

<!-- end get_javascript(applicationtop2header) //-->

<link rel="stylesheet" type="text/css" href="stylesheet.css">
<style type="text/css">
<!--
.style1 {font-size: 11px}
-->
</style>
</head>

 

This is from a stock version of osc

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>

 

Notice the <DOCTYPE> tag, <html> and in paticular the <base href>tag.

The <base href> tag is what controls the switching of HTTP and HTTPS.

Try adding those to see if it helps. If it does you will need to make those changes on all of your store front pages.

Posted

Start with your catalog/index.php page. If it works on that then you will need to check the rest your store front pages.

Archived

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

×
×
  • Create New...