Post by opiesilver » Sat Oct 09, 2010 2:21 pm

Hi all,

I have a fresh clean install of 1.4.9.1 with a single domain SSL installed (Not a UCC SSL).

Please don't bash me on the colors, my new customer wanted it that way.

http://www.detourjewelry.com/

The issue I am having, and I am admitted new to opencart, is that on secure pages I only get image place holders but the images themselves are not displayed. No banner, no products, no footer called images. Only the Java called SSL image in the footer shows.

https://www.detourjewelry.com/index.php ... ount/login

I've been searching the board for days and just can't find a reason for this. Help.....Please....

Newbie

Posts

Joined
Sat Oct 09, 2010 8:42 am

Post by opiesilver » Sat Oct 09, 2010 2:31 pm

BTW....this is the same issue as was posted here but the OP didn't reply. http://forum.opencart.com/viewtopic.php ... ps#p101887

I have my URL set to:

http://www.detourjewelry.com/

Newbie

Posts

Joined
Sat Oct 09, 2010 8:42 am

Post by gavin m » Sat Oct 09, 2010 4:06 pm

what is in your admin/config.php?

(and yes, the colours are terrible!! lol )

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by opiesilver » Sun Oct 10, 2010 12:04 am

<?php
// HTTP
define('HTTP_SERVER', 'http://www.detourjewelry.com/admin/');
define('HTTP_CATALOG', 'http://www.detourjewelry.com/');
define('HTTP_IMAGE', 'http://www.detourjewelry.com/image/');

// HTTPS
define('HTTPS_SERVER', 'http://www.detourjewelry.com/admin/');
define('HTTPS_IMAGE', 'http://www.detourjewelry.com/image/');

// DIR
define('DIR_APPLICATION', '/home/detour/public_html/admin/');
define('DIR_SYSTEM', '/home/detour/public_html/system/');
define('DIR_DATABASE', '/home/detour/public_html/system/database/');
define('DIR_LANGUAGE', '/home/detour/public_html/admin/language/');
define('DIR_TEMPLATE', '/home/detour/public_html/admin/view/template/');
define('DIR_CONFIG', '/home/detour/public_html/system/config/');
define('DIR_IMAGE', '/home/detour/public_html/image/');
define('DIR_CACHE', '/home/detour/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/detour/public_html/download/');
define('DIR_LOGS', '/home/detour/public_html/system/logs/');
define('DIR_CATALOG', '/home/detour/public_html/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', XXXXXXXXX);
define('DB_PASSWORD', XXXXXXXX');
define('DB_DATABASE', XXXXXXXX);
define('DB_PREFIX', '');
?>

Newbie

Posts

Joined
Sat Oct 09, 2010 8:42 am

Post by opiesilver » Mon Oct 11, 2010 2:01 am

Anyone have an idea of what I should look for?

Newbie

Posts

Joined
Sat Oct 09, 2010 8:42 am

Post by Moggin » Mon Oct 11, 2010 2:30 am

Not sure to be honest....but my admin/config shows this

// HTTPS
define('HTTPS_SERVER', 'https://www.mysite.co.uk/admin/');
define('HTTPS_IMAGE', 'https://www.mysite.co.uk/image/');

so why not try changing those two URLs to https: .

I also noticed that the picture filenames have spaces in them, which is being translated as %20 - it might be wise to replace the spaces with an underscore or dash, eg purple_safari.jpg.

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am

Post by opiesilver » Tue Oct 12, 2010 2:15 pm

Well, for this site it made the admin page unusable as it would only show the dashboard when I changed those to https. Not sure if changing the names of the images made any difference at all.

Newbie

Posts

Joined
Sat Oct 09, 2010 8:42 am

Post by martfoxhosting » Tue Oct 12, 2010 3:10 pm

This is the error message by opening your image URLs:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /image/data/jewelry detour5.jpg
on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.detourjewelry.com Port 443</address>
</body></html>
1. The reason can be that files like images, css files etc. must not be hardcoded. Make sure that you don't code your pages with hard coded URL's, just use paths, then images and things will work in secure and insecure mode without error. For example, don't <img src="http://www.domain.com/image.jpg">, use <img src="/image.jpg">

2. another reason could be your server (php) configuration. You should contact your hosting provider.

As you can see this image will be loaded fine: http://www.detourjewelry.com/image/data ... etour5.jpg

but this one doesn't: https://www.detourjewelry.com/image/dat ... etour5.jpg

That means that the access to the image folder through a secure conection is forbidden.

Try to use the sample bellow for your images:

Code: Select all

<img src="/image/data/jewelry%20detour5.jpg">

Ecommerce Web Hosting - SSL Certificates - USA & UK VPS Servers


User avatar

Posts

Joined
Tue Oct 12, 2010 5:06 am
Location - USA, UK, DE, A, CH, SK, CZ
Who is online

Users browsing this forum: No registered users and 77 guests