Post by Geegee20 » Sun Dec 02, 2018 5:10 pm

I have just updated my program 2.3.02 from http to https using the following https://isenselabs.com/posts/opencart-pages-https

when I do when I try to add a product to my cart I get an "undefined error" message poppup.

is there a way of fixing this?

New member

Posts

Joined
Tue Mar 14, 2017 7:16 pm

Post by xxvirusxx » Sun Dec 02, 2018 7:34 pm

"To update" from http to https you need to:

1. install/buy SSL certificate from you hosting company
2. to enable from Settings, SSL option
3. to change in both config.php from http to https
4. and sometime to edit .htaccess when are issues with http to https redirect.

And the post/ .htaccess changes from isense not work the same on all apache servers.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by Geegee20 » Sun Dec 02, 2018 7:54 pm

Done 1 to 4 as per your post.....so how do I fix.

New member

Posts

Joined
Tue Mar 14, 2017 7:16 pm

Post by xxvirusxx » Sun Dec 02, 2018 8:06 pm

You can try something like this in .htaccess

Code: Select all

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "https\:\/\/www\.you_site\.com\/" [R=301,L]

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by Geegee20 » Tue Dec 11, 2018 6:45 pm

still getting the same error

Code I am using in the .htaccess file now is

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "https://www.newcastlecoins.com.au/" [R=301,L]


Any other help appreciated

New member

Posts

Joined
Tue Mar 14, 2017 7:16 pm

Post by Geegee20 » Sun Jan 20, 2019 7:32 am

still getting the error....please help

New member

Posts

Joined
Tue Mar 14, 2017 7:16 pm

Post by khnaz35 » Sun Jan 20, 2019 1:48 pm

Geegee20 wrote:
Tue Dec 11, 2018 6:45 pm
still getting the same error

Code I am using in the .htaccess file now is

RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "https://www.newcastlecoins.com.au/" [R=301,L]


Any other help appreciated
Did make changes for your both config.php

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by Geegee20 » Thu Jan 24, 2019 6:08 pm

Sure did.

Can anyone help please

New member

Posts

Joined
Tue Mar 14, 2017 7:16 pm

Post by khnaz35 » Fri Jan 25, 2019 11:19 am

Geegee20 wrote:
Thu Jan 24, 2019 6:08 pm
Sure did.

Can anyone help please
Share your live website link here.
Is the error also appeared when there is no SSL activate.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by opencartmart » Fri Jan 25, 2019 3:45 pm

It seems to me you are accessing website with www but your domain URL is w/o www in the config.php file.

1. First check what domain has set in your config.php, is it with www or without www?
2. Set redirection URL in .htaccess accordingly depending on the presence of www.

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am
Who is online

Users browsing this forum: No registered users and 293 guests