Shape 5

General Category => Joomla Talk => : mbg_ch October 19, 2016, 08:51:18 AM



: SSL enabled - Menu Style not working
: mbg_ch October 19, 2016, 08:51:18 AM
Dear Shape5 Team

I have enabled SSL on my Joomla Installation with the Vertex template. Now the dropdown menu is not shown correctly anymore, the style is not ok. I have already tried in index.php of the the template to remote http:// before the Google fonts URL. But no result.

My URL is https://www.vogelherdclub.ch

Can you please take a look what's wrong?

Regards, Martin


: Re: SSL enabled - Menu Style not working
: jonahh October 19, 2016, 12:09:45 PM
Hello,

Do you have any JS or CSS compression enabled on the site or in Vertex admin? Please try disabling this and see if it then works.


: Re: SSL enabled - Menu Style not working
: mbg_ch October 19, 2016, 12:40:49 PM
Hello,

Do you have any JS or CSS compression enabled on the site or in Vertex admin? Please try disabling this and see if it then works.

Hi Jonah

Thank you, now it works fine. Btw, would it help if I update to Vertex 4.0? Or is this a general recommendation to disable compression when using SSL?

Regards, Martin


: Re: SSL enabled - Menu Style not working
: jonahh October 20, 2016, 12:00:05 PM
Yes please try upgrading to Vertex 4 and see if this fixes the issue with it


: Re: SSL enabled - Menu Style not working
: mbg_ch October 20, 2016, 01:11:25 PM
Hi Jonah

Just upgraded, seems to be fixed. I have enabled JS and CSS compression and the menus are ok.

Regards and thanks for your support.

Martin


: Re: SSL enabled - Menu Style not working
: martijnm April 18, 2017, 08:36:07 AM
I had this problem also updating to 4. I tried to solve it looking why, because I use the template in more than one site and more than one hoster. At one hoster its a problem, at another hoster it is not.
I do think the problem is in the top an bottom_css_and_js_compression.php.
:
$_SERVER['REQUEST_SCHEME'] = ($_SERVER["HTTPS"] == 'on') ? 'https' : 'http';
does not work the same for every installation (hoster).
I found that even installing in a subdomain (HTTP) under a domain (HTTPS) is giving problems.
I am not a programmer , but why don't you use the variable $force_ssl  from the configuration.php to decide if it SSL or not?


: Re: SSL enabled - Menu Style not working
: mikek April 18, 2017, 11:59:33 AM
Hello,

$_SERVER['REQUEST_SCHEME'] is a pretty standard and common way of determining ssl, it determines it on the server level. That particular line of code has never caused any issue before.


: Re: SSL enabled - Menu Style not working
: martijnm April 19, 2017, 02:36:53 AM
Switching on the JS compression wil break my site (no drop down).
My hoster is using Apache 2.2 and if you have a look at this discussion you will see it is not a good idea to use it: http://stackoverflow.com/questions/18008135/is-serverrequest-scheme-reliable
Just my two cents, do the thing you think that is good.


: Re: SSL enabled - Menu Style not working
: tropenet October 22, 2017, 10:30:18 PM
https://mortgage.tropens.com having same problem... compression was NOT enabled, so I turned it on, which appeared to fix the problem, but only for a couple of days... now it doesn't matter if compression is on or off, menu appears as list of text above page header.


: Re: SSL enabled - Menu Style not working
: mikek October 23, 2017, 06:52:01 AM
Hello,

I looked at your site and it appears to be loading fine. If you're still having trouble go to the General tab in the template configuration and enter your full url under "Your Site URL if SEO enabled", this will override the calls and call your files from the exact url you enter.

Also, please post any future questions in the Design Control board so we can address a specific product.