AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: loudmylarbags on February 03, 2019, 11:52:46 AM

Title: Issues with SNI, hostname and cart
Post by: loudmylarbags on February 03, 2019, 11:52:46 AM
We are having a random issue, our site will revert back to the IP for the hostname.

To fix it I have to save something (like template or product) and it fixes it, but it will always revert back.

Example, clicking any link when it's broken will result in 1.1.1.1/blah/blah.php or w/e instead of domain.com/blah/blah.php
Title: Re: Issues with SNI, hostname and cart
Post by: abantecart on February 03, 2019, 12:07:35 PM
Check setting for your domain. Possibly you have IP address in there.

https://abantecart.atlassian.net/wiki/spaces/AD/pages/5832828/Store+URLs+SSL
Title: Re: Issues with SNI, hostname and cart
Post by: loudmylarbags on February 03, 2019, 06:39:04 PM
Check setting for your domain. Possibly you have IP address in there.



Nope not that, these seems like some kinda glitch in the software somewhere.
Title: Re: Issues with SNI, hostname and cart
Post by: llegrand on February 03, 2019, 07:19:47 PM
??  Did you build your site up using an IP address before changing your DNS to the current host?
I see this happen when we build out sites using IP address prior to transferring -  and we change out our local user to the IP address,   if we fail to clear the cache on our PCs and revert the local host to the domain name.



Title: Re: Issues with SNI, hostname and cart
Post by: abantecart on February 03, 2019, 09:44:22 PM
Try to clear cache and make sure that is actually cleared.

Setting for URL is the only place in AbanteCart that control this. If both HTTP and HTTPS URLs are correct in the setting, there must be something else on your server side.

Title: Re: Issues with SNI, hostname and cart
Post by: loudmylarbags on February 04, 2019, 11:39:12 AM
??  Did you build your site up using an IP address before changing your DNS to the current host?
I see this happen when we build out sites using IP address prior to transferring -  and we change out our local user to the IP address,   if we fail to clear the cache on our PCs and revert the local host to the domain name.

Nope, always the url. Apache is gucci all the configs are good. I run 10 other sites on the same server. No issues. It's def a config issue of sorts since saving something fixes it. Is there a manual way to clear the cache to I can make sure?

I have cleared the cache in the back in 10x times.
Title: Re: Issues with SNI, hostname and cart
Post by: llegrand on February 04, 2019, 12:27:33 PM
You using  CDN?

Title: Re: Issues with SNI, hostname and cart
Post by: loudmylarbags on February 05, 2019, 07:27:12 PM
You using  CDN?

No, and it just happened again. Something with the config is stuck. I know 100% its not the server.
Title: Re: Issues with SNI, hostname and cart
Post by: Basara on February 06, 2019, 01:38:55 AM
Hi.

Clear Abantecart cache, clear browser cache, check for redirect in your .htaccess file
Title: Re: Issues with SNI, hostname and cart
Post by: loudmylarbags on February 06, 2019, 04:00:53 PM
Hi.

Clear Abantecart cache, clear browser cache, check for redirect in your .htaccess file


These are all things that have been stated and done. None of these would make it randomly happen and then a save to anything fix it. This leads to software issue.
Title: Re: Issues with SNI, hostname and cart
Post by: llegrand on February 06, 2019, 04:40:56 PM
since you said you have other installations running okay,  is this installation the same version as the others? I am assuming that are AbanteCart installations.
what have you done differently with this one?  Any third party extensions?
And code changes you have made that is different then the others?
Since you are rather adamant that it is software,  and those of use who have dozens and dozens of installations think it is more likely there a different issue or something that has been introduced into this installation and not the others. Perhaps there was a glitch when you installed this?  When did you introduce the IP address into your URL? 

Does this happen with all browsers?  Does this happen on a PC  that hasn't been to your site previously?
Have you compared config and rewrites on the problem site to the others?






Title: Re: Issues with SNI, hostname and cart
Post by: loudmylarbags on February 07, 2019, 01:41:03 PM
since you said you have other installations running okay,  is this installation the same version as the others? I am assuming that are AbanteCart installations.
what have you done differently with this one?  Any third party extensions?
And code changes you have made that is different then the others?
Since you are rather adamant that it is software,  and those of use who have dozens and dozens of installations think it is more likely there a different issue or something that has been introduced into this installation and not the others. Perhaps there was a glitch when you installed this?  When did you introduce the IP address into your URL? 

Does this happen with all browsers?  Does this happen on a PC  that hasn't been to your site previously?
Have you compared config and rewrites on the problem site to the others?

I have other software running, wordpress, joomla etc. This is happening on all browsers and computers. Client report it to me when it happens and I can confirm its down.

I have turned off cache and now it hasn't happened in 24 hrs. I have been asking where this is stored or how it could be causing it. Any ideas would be great.

a grep of the database and files show (0 localhost or 0 ip entry's in either) so I know it's not coded or hardcoded somewhere.
Title: Re: Issues with SNI, hostname and cart
Post by: Basara on February 08, 2019, 12:02:30 AM
Did you change domain name or server DNS recently? Or maybe a new hosting plan?
Title: Re: Issues with SNI, hostname and cart
Post by: loudmylarbags on February 08, 2019, 11:32:50 AM
Did you change domain name or server DNS recently? Or maybe a new hosting plan?

Sigh are you guys even reading this? The domain is on my own server, and always had the same domain.
Title: Re: Issues with SNI, hostname and cart
Post by: Basara on February 11, 2019, 12:14:34 AM
Hi. Can you share your domain ?
Title: Re: Issues with SNI, hostname and cart
Post by: jcschott on December 20, 2021, 10:31:03 PM
Did you ever find the issue? I am facing something similar. The site mostly will function as expecting but at times will result back to the IP address for resources (css and image files) and I have been seeing also some issues with featured product block even grabbing the SMTP setting Domain entry. Clearing cache will resolve the issue but then it appears to reset randomly after a few hours/days. .htaccess and URL entries are good in the settings page.
Title: Re: Issues with SNI, hostname and cart
Post by: Basara on December 21, 2021, 12:10:53 AM
Did you ever find the issue? I am facing something similar. The site mostly will function as expecting but at times will result back to the IP address for resources (css and image files) and I have been seeing also some issues with featured product block even grabbing the SMTP setting Domain entry. Clearing cache will resolve the issue but then it appears to reset randomly after a few hours/days. .htaccess and URL entries are good in the settings page.

Setup a redirect from IP to your store url
Title: Re: Issues with SNI, hostname and cart
Post by: abolabo on December 21, 2021, 04:34:19 AM
Did you ever find the issue? I am facing something similar. The site mostly will function as expecting but at times will result back to the IP address for resources (css and image files) and I have been seeing also some issues with featured product block even grabbing the SMTP setting Domain entry. Clearing cache will resolve the issue but then it appears to reset randomly after a few hours/days. .htaccess and URL entries are good in the settings page.

Some web-spider do this. You should block access by IP address.
Just add redirect from ip to domain name.
Title: Re: Issues with SNI, hostname and cart
Post by: Basara on March 07, 2022, 02:42:18 AM
Hello.
You can try this fix from the AbanteCart 1.3.3 version https://github.com/abantecart/abantecart-src/commit/b767023893adbd47697559b3c1f68724d3ebfb26