Ed van der Meer Posted November 1, 2016 Share Posted November 1, 2016 I have SSL installed and all of my site is secure except for one file I need for Price-feed. Here is the url with needs te be secured. I have looked and found many items but none of them is regarding this particular issue. I have https://www.applesupported.nl/modules/gshoppingflux/export/googleshopping-s1-nl-EUR.xml But When I or Twenga reads this URL is says not secured. What can I do to have it secured? Thanks Ed Link to comment Share on other sites More sharing options...
bellini13 Posted November 1, 2016 Share Posted November 1, 2016 what module is gshoppingflux ? Link to comment Share on other sites More sharing options...
Ed van der Meer Posted November 1, 2016 Author Share Posted November 1, 2016 what module is gshoppingflux ? It is Google Shopping Flux v1.6.2 - door Dim00z module to generate feeds for Twenga or Google shopping. The module from Twenga does not allow me to filter on categories so I switched over to this one. Clear? Link to comment Share on other sites More sharing options...
bellini13 Posted November 1, 2016 Share Posted November 1, 2016 So perhaps you should reach out to the author of that module, and request support? Link to comment Share on other sites More sharing options...
Ed van der Meer Posted November 2, 2016 Author Share Posted November 2, 2016 It is free module and already ask for a solution but no answer so far. My guess it can be fixed with .htacces or so but I just don't know how. Link to comment Share on other sites More sharing options...
bellini13 Posted November 2, 2016 Share Posted November 2, 2016 In the main module file (gshoppingflux.php), there is a function named generateXMLFiles which appears to create that URL. if (Configuration::get('GS_GEN_FILE_IN_ROOT', 0, $shop_group_id, $shop_id) == 1) $get_file_url = $this->uri.$this->_getOutputFileName($lang['iso_code'], $currency->iso_code, $shop_id); else $get_file_url = $this->uri.'modules/'.$this->name.'/export/'.$this->_getOutputFileName($lang['iso_code'], $currency->iso_code, $shop_id); And then there is this code, which I've never seen used in such a way before. It looks like there is an attempt to create HTTP or HTTPS, depending on what the current protocol is $this->uri = ToolsCore::getCurrentUrlProtocolPrefix().$this->context->shop->domain_ssl.$this->context->shop->physical_uri; If you are certain that you can force this to always be HTTPS, you might be able to change that line to the following. I have not tested this, so make sure you test it well $this->uri = 'https://'.$this->context->shop->domain_ssl.$this->context->shop->physical_uri; Link to comment Share on other sites More sharing options...
Ed van der Meer Posted November 2, 2016 Author Share Posted November 2, 2016 Thanks I will try that later. sounds good! Link to comment Share on other sites More sharing options...
Ed van der Meer Posted November 3, 2016 Author Share Posted November 3, 2016 In the main module file (gshoppingflux.php), there is a function named generateXMLFiles which appears to create that URL. if (Configuration::get('GS_GEN_FILE_IN_ROOT', 0, $shop_group_id, $shop_id) == 1) $get_file_url = $this->uri.$this->_getOutputFileName($lang['iso_code'], $currency->iso_code, $shop_id); else $get_file_url = $this->uri.'modules/'.$this->name.'/export/'.$this->_getOutputFileName($lang['iso_code'], $currency->iso_code, $shop_id); And then there is this code, which I've never seen used in such a way before. It looks like there is an attempt to create HTTP or HTTPS, depending on what the current protocol is $this->uri = ToolsCore::getCurrentUrlProtocolPrefix().$this->context->shop->domain_ssl.$this->context->shop->physical_uri; If you are certain that you can force this to always be HTTPS, you might be able to change that line to the following. I have not tested this, so make sure you test it well $this->uri = 'https://'.$this->context->shop->domain_ssl.$this->context->shop->physical_uri; So my guess is that is not the problem. It has to be something else what's causing a browser to show this: Connection is not secure! Link to comment Share on other sites More sharing options...
Ed van der Meer Posted November 3, 2016 Author Share Posted November 3, 2016 I think I better switch to an paid module for this. It's getting me nowhere. Link to comment Share on other sites More sharing options...
bellini13 Posted November 4, 2016 Share Posted November 4, 2016 If I use this URL in a browser, I get a valid secure XML page. https://www.applesupported.nl/modules/gshoppingflux/export/googleshopping-s1-nl-EUR.xml Can you be more specific about where or when you are getting "Connection is not secure!" Link to comment Share on other sites More sharing options...
Ed van der Meer Posted November 8, 2016 Author Share Posted November 8, 2016 Hi It is all solved. I changed the common name in SSL certificate and now it is good. Thanks for the time. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now