Forum Support

Shape 5
March 29, 2024, 09:55:27 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Enabling SSL for sensitve areas goes to a blank screen  (Read 1197 times)
Buddha160
Jr. Member
**
Offline Offline

Posts: 10



« on: March 22, 2016, 04:08:47 PM »

Hi,

Whenever I enable SSL for sensitive areas in virtuemart on my GCK store templated joomla site it goes to a blank screen when one tries to checkout with anything in the cart. I changed templates and this seems to resolve the problem, but I would prefer to use this one. Website is http://www.cerrigspeir.com/.

Please let me know what I can do to fix.
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: March 23, 2016, 07:42:08 AM »

Hello,

It goes totally blank or just unstylized? That would be an issue with the ssl cert, it is most likely viewing the css sheets as external content. I would recommend entering the direct url of your site in "Your Site URL if SEO enabled" setting under the template's General tab. That setting would be: "http://www.cerrigspeir.com"
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Buddha160
Jr. Member
**
Offline Offline

Posts: 10



« Reply #2 on: March 23, 2016, 12:12:13 PM »

It is completely blank. I tried that and I get the attached screenshot when I try to add an address. I didn't go any further and reset everything.



Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: March 24, 2016, 07:50:23 AM »

Hello,

It looks like your site is not loading a www. in your screenshot, that can cause issues with ssl certs because they view it as a different url. I would recommend forcing a www on the site. Usually your host has some kind of redirect for this, but if not you can also try adding this toward the top of the template's index.php file:

$url = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
if ( "www." != substr( $_SERVER[ 'HTTP_HOST' ] , 0 , 4) ) {
$url = "http://www.".$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header('Location:'.$url);
}

Add it just under the opening <?php call.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Buddha160
Jr. Member
**
Offline Offline

Posts: 10



« Reply #4 on: March 24, 2016, 05:58:29 PM »

It is still giving me that jumbled screen when I click on login from the cart or when I try to add an address in the cart. The "www." is present. Please let me know how to fix this.
« Last Edit: March 24, 2016, 06:40:52 PM by Buddha160 » Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #5 on: March 25, 2016, 06:38:44 AM »

Hello,

I am viewing the source and the only thing I see wrong is there's an extra slash:

http://www.cerrigspeir.com//templates/gck_store/css/template.css

In the SEO setting that I mentioned a few posts above, make sure there is no trailing slash on the url, ie:

http://www.cerrigspeir.com

not:

http://www.cerrigspeir.com/

You can also try adding https in this url instead, for both the SEO setting in the template configuration and the live_site url in configuration.php

https://www.cerrigspeir.com

If that makes no difference there is something in your SSL cert that is stripping the calls, and you would need to contact your host or whoever installed it. It's probably viewing it as external content somehow, and not allowing it to be shown. That would be an issue with the cert itself and how's configured. From what I can tell it's not allowing any css files to be called, including virtuemart ones.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Buddha160
Jr. Member
**
Offline Offline

Posts: 10



« Reply #6 on: April 11, 2016, 10:35:45 AM »

Fixed the issue where it wasn't passing the css,

Now I go to whynopadlock.com and it gives me this error (see attached image as well):

   Secure calls made to other websites:
fonts.googleapis.com returned an error (Possibly 404 not found or other webserver error. Details:

fonts.gstatic.com is valid and secure.

Checked index.php and it's using the correct syntax, is there another place that this template could be using the incorrect syntax? If not, how would I fix this?

Still getting the blank page when I try to checkout with authorize.net when the site is secure...
« Last Edit: April 11, 2016, 01:58:17 PM by Buddha160 » Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #7 on: April 11, 2016, 11:53:50 AM »

Hello,

Make sure you are running the latest version of Vertex. There are two other locations within Vertex that call google fonts, but they are already updated like this:

href="//fonts.googleapis.com/css?family=

insteadof:

href="http://fonts.googleapis.com/css?family=

The first method is the correct syntax for ssl sites.

There are instructions for patching Vertex here:

http://www.shape5.com/documentation/Vertex-Framework/Joomla-Specific/How-To-Patch-Vertex-In-Joomla-and-Changelog
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Buddha160
Jr. Member
**
Offline Offline

Posts: 10



« Reply #8 on: April 11, 2016, 01:54:51 PM »

I am running 4.0.0. Is this not the latest version?
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #9 on: April 12, 2016, 07:29:42 AM »

Hello,

I checked the source of your site and every google font call is being called without the http: pre-fix, so they are being called correctly already. The error in your screenshot is actually showing that it IS a secure call, but they're suggesting that they are producing a 404 error. I am not sure what is causing that error, I checked the link of each google font call on your site (there are three of them) and they all are all correct and load with no issues. I am wondering if a particular font is causing the problem, but I don't see why it would since they are all loading with the urls. To test this you can try picking different fonts under:

Theme Specific
Main / Styling
Main / Responsive Nav

And see if changing the font corrects the error. If it doesn't, I am not sure what else to try as I don't any errors in the source of your site in regards to how they are being called.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Buddha160
Jr. Member
**
Offline Offline

Posts: 10



« Reply #10 on: April 13, 2016, 10:07:00 AM »

I tried changing the fonts and still get the same results. The client is getting rather angry and frustrated.

I am going to try to download the fonts directly to my server and link to them since nothing else has been working. Can you please tell me which files in vertex reference google fonts so that I can make the change?

« Last Edit: April 13, 2016, 11:30:16 AM by Buddha160 » Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #11 on: April 14, 2016, 08:17:47 AM »

Hello,

I'm sorry I don't know what is causing this, as I stated everything is setup properly. This is pointing to more of an issue with the ssl cert itself.

Google fonts are called in the template's index.php file, and vertex/css_and_js.php
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.