I am using version 1.3.2 with PHP 8.0.3 for quite a long time now and I really like everything about Abantecart
I lately have stumbled upon an issue that I could not resolve
Abantecart is sometimes using the IP address with http instead of the domain name with https
What happens is that the categories, and sometimes the products, do not show up (the browser blocks the access because it is not safely encrypted with SSL), because the bare IP address doesn't have SSL and is pointing to an http address
So the whole page is showing but the content (categories \ products) is not showing
So for example
http://000.000.00.000/image/thumbnails/26/image1.png
is mentioned instead of
https://mydomain.com/image/thumbnails/26/image1.png
My domain has an SSL and I have tried to apply for an SSL for the bare IP address separately but this is not very simple
In the settings of Abantecart it is properly configured as https://mydomain.com in both fields
The configuration file in system is also properly configured as mydomain.com
The website works properly after dumping the cache but returns to this strange behaviour after some time. I am not sure what triggers it. It also shows up mostly when using the browsers on a mobile phone. It occurs on the laptop but less often
If anyone could help I would really appreciate it
Hello
It seems like a cache-related issue. Version 1.3.2 is very outdated, and I believe this cache issue was fixed somewhere between AbanteCart 1.3.3 and 1.4.4.
The best solution would be to upgrade AbanteCart to the latest stable version. Please make a full backup of both the database and all files before attempting the upgrade.
As a temporary workaround, you can try setting up redirects in your .htaccess file so the store is always accessed through the correct HTTPS domain, not through the server IP address or an alternative host.
For example, redirect:
http://your-server-ip/
http://www.yourdomain.com/
http://yourdomain.com/
to one canonical URL, such as:
https://yourdomain.com/
After adding the redirect, clear AbanteCart cache and, if used, any server/CDN/browser cache as well.
Thank you for the help
I have tried the redirect but it doesn't fix the problem
I have tried to upgrade to newer versions but I get some other problems related to html5
Anyway if there is no other solution I will start over from scratch on the newest version