Jump to content

SSL certificate Problem


nick8701

Recommended Posts

Hi i dont know whether theres a problem with the coding or the ssl certificate. I bought an QuickSSL cert from geotrust, installed it on my website. and when i go to click order on the whmcs page it says this:

 

"Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.

 

Are you sure you want to continue sending this information?"

 

Any guys got any tips on how to improve on this situation as my other main pages dont have that problem, just the whmcs pages????

 

any help would be greatly appreciated

 

Thanks in advance!

Link to comment
Share on other sites

Im currently having a problem with my images in my site as i get an error message saying: this page contains both secure and non-secure items,a nd when i click on no secure items it doesnt show my images so the problems is with the images and i need to change from http to https, but i images are like: (images/bgr_down.jpg) so how do i change that to https, need help thanks. I need to know where i change the images to http and reference it to https, when i cant find any http ones, so confused???

Link to comment
Share on other sites

Bear helped me fix the problem. The problem was the base in the header.tpl.

 

it was <base href="{$systemurl}" /> and i changed it to:

 

<base href="https://domain.com/whmcs/" />

 

So far i have no errors on internet explorer or firefox.

 

If you leave it like that you will end up having problems with SEO where non ssl is needed. base href is only required for knowledgebase, announcements, and downloads. I have changed the default line in mine to this below and have had no problems.

 

Original code:

{if $systemurl}<base href="{$systemurl}" />{/if}

Modified to:

{if $systemurl}
{if $smarty.server.PHP_SELF == '/knowledgebase.php' || $smarty.server.PHP_SELF == '/announcements.php' || $smarty.server.PHP_SELF == '/downloads.php'}
<base href="{$systemurl}" />
{/if}
{/if}

 

If you still get your errors check the WHMCS SSL url is correct in config => General Settings.

If you don't have an SSL cert then leave the field blank.

Link to comment
Share on other sites

Thanks for the tip sparky, Ive added both http in the general settings as well as https in the general settings as i have an ssl.

 

But now my announcements/knowledge base and do on dont work wny more i get error pages when i click on them.

 

I want to implement your suggestion of:

 

{if $systemurl}

{if $smarty.server.PHP_SELF == '/knowledgebase.php' || $smarty.server.PHP_SELF == '/announcements.php' || $smarty.server.PHP_SELF == '/downloads.php'}

<base href="{$systemurl}" />

{/if}

{/if}

 

But i dont know what to put on the bold code???

 

Instead of smarty.server.PHP what do i put???

Link to comment
Share on other sites

sorry your install is in a directory

{if $systemurl}
{if $smarty.server.PHP_SELF == '/whmcs/knowledgebase.php' || $smarty.server.PHP_SELF == '/whmcs/announcements.php' || $smarty.server.PHP_SELF == '/whmcs/downloads.php'}
<base href="{$systemurl}" />
{/if}
{/if}

Link to comment
Share on other sites

ok thanks ill try to implement it now, and how do i take the php info bar out of the server status bar????

 

Do i put the install like this for the header???

 

{if $systemurl}

{if $https://domain.com/ == '/whmcs/knowledgebase.php' || $smarty.server.PHP_SELF == '/whmcs/announcements.php' || $smarty.server.PHP_SELF == '/whmcs/downloads.php'}

<base href="{$systemurl}" />

{/if}

{/if}

 

??????

Edited by nick8701
spelling
Link to comment
Share on other sites

Hi Sparkey, ive implemented it and it now works. The problem was that i had an extra IF statement on the header- u posted 2 ifs {/if} {/if}, i took one away and then it worked.

 

Also i kept getting an error page when i inserted the https link in whmcs ssl link page. i took that off and kept the http and now it works.

 

Thanks for your help sparky, much appreciated.

 

Nick

Link to comment
Share on other sites

Oh well! I just commented on your other post! Glad you found a solution to your problem though! The hardest part is getting everything set up; after that hopefully its a cake walk. The only thing is in this industry development never ends and idle hands make for lots of new inventions to get out to market :).

Link to comment
Share on other sites

thanks mycommon, yea i totally agree setting everything up is such a hassle, you fix one thing and another thing stops working. Like ive just sorted out the ssl problem and now my numbers dont add up to the total, ie. total should be £25, but it shows £44.76. Just one thing after another-lol. Should be worth it in the end i hope

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated