Post by info@jrvsystem.se » Mon Sep 19, 2022 9:41 pm

I´ve been searching for the fix on this for some time now, found some posts about the same issue but really no solution.

I have a new installed OC 3.0.3.8 (only added Swedish language pack, but issue was prior to this)
The start page is not rendered correctly. Its like no CSS is used.
But as soon you click on any product or the logo the site looks as it should.
Why is this problem?

https://www.nya.vattenfilterbutik.se/ <---- problem
http://www.nya.vattenfilterbutik.se/ind ... ommon/home <---- no problem
Same page but very different result

I will add an image to show the site that is rendered wrong.
How can I fix this?

Attachments

OCproblem.jpg

OCproblem.jpg (219.05 KiB) Viewed 1531 times



Posts

Joined
Thu Sep 15, 2022 4:55 pm

Post by ADD Creative » Mon Sep 19, 2022 11:41 pm

You need to edit your config.php files to make all the URLs use https. Then redirect http to https in htaccess. Search this forum, there are a lot of examples.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by JNeuhoff » Tue Sep 20, 2022 6:13 pm

Also, are you using a sub-domain, e.g. nya.vattenfilterbutik.se ? Or is it supposed to on your main domain vattenfilterbutik.se ?

Make sure you use correct config.php and admin/config.php files with URLs always starting with 'https://'!

And use the correct base in your .htaccess

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by info@jrvsystem.se » Tue Sep 20, 2022 8:06 pm

ADD Creative wrote:
Mon Sep 19, 2022 11:41 pm
You need to edit your config.php files to make all the URLs use https. Then redirect http to https in htaccess. Search this forum, there are a lot of examples.
This info sent me in the right track. But it this problem I am having is only in Chrome browser, not Firefox for ex.
It looks like in is only SSL sites (https://) haveing the problem with weird stylsheet loading problem
http works in chrome?
So, the config file did have https urls set to http.. but changing this to https only made it worse as the https urls dont load properly in chrome(in firefox its ok)
JNeuhoff wrote:
Tue Sep 20, 2022 6:13 pm
Also, are you using a sub-domain, e.g. nya.vattenfilterbutik.se ? Or is it supposed to on your main domain vattenfilterbutik.se ?

Make sure you use correct config.php and admin/config.php files with URLs always starting with 'https://'!

And use the correct base in your .htaccess
The subdomain is on a new webhost. We are building up a new platform for our existing site vattenfilterbutik.se.
The old(main domain) is on antoher webhost/server and diffrent CMS(OScommerce)
We are chaning to OC and new webhost provider.
So when everying is up and running correctly on the sub-d "nya.vattenfilterbutik.se" we will remove the old and take away the sub-d


Posts

Joined
Thu Sep 15, 2022 4:55 pm

Post by info@jrvsystem.se » Tue Sep 20, 2022 10:02 pm

I guess i solved it.
I change the config files to only call for https.
Both
define('HTTP_SERVER',
define('HTTPS_SERVER',
set to https urls.
I dont think I would want to run a mixed site any ways, all urls should go under SSL
Maybe this is a "bad" way of doing it but i works
I did not edit the htaccess for the redirect, I did that on the server settings insted to force SSL with redirect for all urls


Posts

Joined
Thu Sep 15, 2022 4:55 pm

Post by ADD Creative » Tue Sep 20, 2022 10:44 pm

That's the correct way to set https. Older version of OpenCart did allow mixed http and https. However, in OpenCart 3 you have to set both to https.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: Ahrefs [Bot] and 35 guests