AbanteCart Community

Shopping Cart Operations => Support => Topic started by: Grey on July 22, 2013, 05:10:46 PM

Title: Error message "Accessing store with unconfigured or unknown domain"
Post by: Grey on July 22, 2013, 05:10:46 PM
I found many instances of this message in the Error Log. After trying a few things, it appears that this message is issued when the Store URL in Settings->General starts with 'https://'. When I changed the setting to 'http://' I stopped getting the messages.

This is isn't a big problem for me, because my .htaccess is set to convert all http accesses to https. (I run my commerce sites with all pages under https so I don't need to worry about which parts of the site are protected.)

However, https should be a valid prefix in the URL setting, and should not cause warning messages.

~~ Grey
Title: Re: Error message "Accessing store with unconfigured or unknown domain"
Post by: abolabo on July 23, 2013, 06:11:00 PM
If you specify https as the protocol, it means that ALL pages of AbanteCart ONLY available via ssl. Because check the correctness of the ssl web server is very difficult (certificate exchange occurs before the data exchange). If you turn off ssl (by mistake or hack-attack) in the error log will be written to the store owner took action.
If you plan to use both protocols, you should specify a URL prefix http://
Title: Re: Error message "Accessing store with unconfigured or unknown domain"
Post by: Grey on July 27, 2013, 06:12:21 PM
> If you specify https as the protocol, it means that ALL pages of AbanteCart ONLY available via ssl.

And that is exactly what I want. My .htaccess file is set to convert any http request to https, so all pages are always referenced vial ssl.

> If you turn off ssl (by mistake or hack-attack) in the error log will be written to the store owner took action.

I don't understand what that means.

> If you plan to use both protocols, you should specify a URL prefix http://

I do not play to ever use the http protocol (see above). If I only want to use https, I believe that I should be able to specify the URL that way without generating warning messages.
Title: Re: Error message "Accessing store with unconfigured or unknown domain"
Post by: Evolution on July 27, 2013, 10:41:43 PM
What if you try //storeurl.com ?
Title: Re: Error message "Accessing store with unconfigured or unknown domain"
Post by: Grey on July 29, 2013, 11:26:04 AM
Evolution: That also generated warning messages.

But my point is that AbanteCart should accept any valid URL without generating warning messages.
Title: Re: Error message "Accessing store with unconfigured or unknown domain"
Post by: abolabo on July 30, 2013, 04:47:15 AM
> If you specify https as the protocol, it means that ALL pages of AbanteCart ONLY available via ssl.

And that is exactly what I want. My .htaccess file is set to convert any http request to https, so all pages are always referenced vial ssl.

> If you turn off ssl (by mistake or hack-attack) in the error log will be written to the store owner took action.
I don't understand what that means.
that means when you connect by https browser and server makes tls-handshake (data exchange about encryption). And then http-data starts to transfer. That mean php-script cannot to define is ssl works correctly on server or not. If you turn off ssl (by mistake or hack-attack) script will to notify about this via log-file.

> If you plan to use both protocols, you should specify a URL prefix http://

I do not play to ever use the http protocol (see above). If I only want to use https, I believe that I should be able to specify the URL that way without generating warning messages.