after installing ssl some links are working some not

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
I have installed ssl on my sevre and also configured nopcommerce for ssl.Now the problem is that with https some pages are working while some not.They display a page with heading " Internet Explorer cannot display the webpage"..Categories links are not working while register login link are working..in menu contact us form is accessible while forums and blogs not accessible.

Anyone faced the issue or has solution plz reply asap.
13 years ago
Yeah, some pages require SSL, some of them don't. For example, if you want Category page to require SSl, open Category.aspx.cs file and replace
public override PageSslProtectionEnum SslProtected
        {
            get
            {
                return PageSslProtectionEnum.No;
            }
        }

with
public override PageSslProtectionEnum SslProtected
        {
            get
            {
                return PageSslProtectionEnum.Yes;
            }
        }

Then recompile the solution.
13 years ago
Thanks Andrei Mazoulnitsyn.You save me a lot of time.
13 years ago
Dear Andrei,

Is it possible at all to fix this without re-compiling??

Is it possible to have the whole solution working in https??

I do not have access to visual studio and desperately trying to get a fix to SSL solution. The whole project would have to be scraped as this SSL issue is a big concern for our managers.

I would appreciate any help.

Thanks.
Avtar
13 years ago
avtar.kohli wrote:
Is it possible at all to fix this without re-compiling??

No

avtar.kohli wrote:
Is it possible to have the whole solution working in https?

Yes, just do the above changes to all the pages
13 years ago
Dear Andrei,

Thanks for being so prompt.

What are the performance implications of enabling SSL through out the site?

Is it safe to leave the production environment working in non-SSL?

Thanks,
Avtar
13 years ago
avtar.kohli wrote:
What are the performance implications of enabling SSL through out the site?

It all depends on your server. But it should not affect the site much.

avtar.kohli wrote:
Is it safe to leave the production environment working in non-SSL?

Yes, it's safe. By default, only required pages are delivered using SSL (payment and order pages)
13 years ago
Hi Andrei,  where i have to put this code:

<%@ Page Language="C#" MasterPageFile="~/MasterPages/OneColumn.master" AutoEventWireup="true"
    Inherits="NopSolutions.NopCommerce.Web.ShoppingCartPage" CodeBehind="ShoppingCart.aspx.cs" %>
<%@ Register TagPrefix="nopCommerce" TagName="OrderSummary" Src="~/Modules/OrderSummary.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="OrderProgress" Src="~/Modules/OrderProgress.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
    <nopCommerce:OrderProgress ID="OrderProgressControl" runat="server" OrderProgressStep="Cart" />
    <div class="shoppingcart-page">
        <div class="page-title">
            <h1><%=GetLocaleResourceString("Account.ShoppingCart")%></h1>
        </div>
        <div class="clear">
        </div>
        <div class="body">
            <nopCommerce:OrderSummary ID="OrderSummaryControl" runat="server" IsShoppingCart="true">
            </nopCommerce:OrderSummary>
        </div>
    </div>
    
</asp:Content>

When i use https, the lock (safety lock on IE) is there , but not the images! I'm really new here.

thanx
13 years ago
a.m. wrote:
Yeah, some pages require SSL, some of them don't. For example, if you want Category page to require SSl, open Category.aspx.cs file and replace
public override PageSslProtectionEnum SslProtected
        {
            get
            {
                return PageSslProtectionEnum.No;
            }
        }

with
public override PageSslProtectionEnum SslProtected
        {
            get
            {
                return PageSslProtectionEnum.Yes;
            }
        }

Then recompile the solution.


I've been trying to get SSL to work on the contact form but nothing seems to be working. I've used the following syntax:


namespace NopSolutions.NopCommerce.Web
{
    public partial class ContactUsPage : BaseNopFrontendPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CommonHelper.EnsureSsl();
            string title = GetLocaleResourceString("PageTitle.ContactUs");
            SEOHelper.RenderTitle(this, title, true);
        }
        public override PageSslProtectionEnum SslProtected
        {
            get
            {
                return PageSslProtectionEnum.Yes;
            }
        }
        
    }
}

That hasn't worked. Doing the inverse at the default.cs didn't work either:

public partial class Default : BaseNopFrontendPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                CommonHelper.EnsureNonSsl();
                BindData();
            }
        }

        protected void BindData()
        {
            bool showWelcomeMessageOnMainPage = this.SettingManager.GetSettingValueBoolean("Display.ShowWelcomeMessageOnMainPage");
            if (!showWelcomeMessageOnMainPage)
            {
                topicHomePageText.Visible = false;
            }
        }
    }

Does anyone have any clues as to what I'm doing wrong?
https://www.nopcommerce.com/boards/t/8308/ssl-issue.aspx
13 years ago
ccasalicchio wrote:
I've been trying to get SSL to work on the contact form but nothing seems to be working. I've used the following syntax:

The following code should work fine (don't forget to recompile the solution).

namespace NopSolutions.NopCommerce.Web
{
    public partial class ContactUsPage : BaseNopFrontendPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string title = GetLocaleResourceString("PageTitle.ContactUs");
            SEOHelper.RenderTitle(this, title, true);
        }
        public override PageSslProtectionEnum SslProtected
        {
            get
            {
                return PageSslProtectionEnum.Yes;
            }
        }
        
    }
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.