[Skip to main content](#vessel-content)

#   no SSL outside checkout plugin - Infinite loop

##

- **[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")**
- [![earmaster's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35023-earmaster "View earmaster's Profile") Topic Author
- [ Offline](/forum/user/35023-earmaster)

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 8 months ago [\#195327](#195327) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  *[no SSL outside checkout plugin - Infinite loop](/forum/27-checkout/875782-no-ssl-outside-checkout-plugin-infinite-loop#195327 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.10  Hi!  After having installed SSL on a dev server I wanted to enable the checkout to be accessed through HTTPS only, but the rest of the shop through HTTP, so I enabled the plugin &quot;HikaShop no SSL outside checkout plugin&quot;. But when I tried to reach my checkout I got stuck in an' Infinite loop, the checkout trying to put me through to HTTPS and the plugin trying to revert me back to HTTP.  I am using a forced checkout menu so my guess is that the error lies there.")* was created by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.3.10

Hi!

After having installed SSL on a dev server I wanted to enable the checkout to be accessed through HTTPS only, but the rest of the shop through HTTP, so I enabled the plugin "HikaShop no SSL outside checkout plugin". But when I tried to reach my checkout I got stuck in an' Infinite loop, the checkout trying to put me through to HTTPS and the plugin trying to revert me back to HTTP.

I am using a forced checkout menu so my guess is that the error lies there.

[ ![loop&#95;redir.png](/forum/attachment/23188) ](/forum/attachment/23188 "loop&#95;redir.png")

- [ ![loop&#95;redir.png](/forum/attachment/23188) ](/forum/attachment/23188 "loop&#95;redir.png") [ ](/forum/attachment/23188?download=1 "loop&#95;redir.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTc4Mi1uby1zc2wtb3V0c2lkZS1jaGVja291dC1wbHVnaW4taW5maW5pdGUtbG9vcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 8 months ago [\#195405](#195405) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[no SSL outside checkout plugin - Infinite loop](/forum/27-checkout/875782-no-ssl-outside-checkout-plugin-infinite-loop#195405 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.10  Hi!  After having installed SSL on a dev server I wanted to enable the checkout to be accessed through HTTPS only, but the rest of the shop through HTTP, so I enabled the plugin &quot;HikaShop no SSL outside checkout plugin&quot;. But when I tried to reach my checkout I got stuck in an' Infinite loop, the checkout trying to put me through to HTTPS and the plugin trying to revert me back to HTTP.  I am using a forced checkout menu so my guess is that the error lies there.")*

Hi,

Could you replace the line:
$app-&gt;redirect(str_replace('https://','http://',hikashop_currentURL()));

to:
var_dump($_REQUEST);

in the file plugins/system/nossloutsidecheckout/nossloutsidecheckout.php and provide the debug data displayed on the checkout page after that change ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTc4Mi1uby1zc2wtb3V0c2lkZS1jaGVja291dC1wbHVnaW4taW5maW5pdGUtbG9vcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")**
- [![earmaster's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35023-earmaster "View earmaster's Profile") Topic Author
- [ Offline](/forum/user/35023-earmaster)

Less More

- Posts: 137
- Thank you received: 2
-
-

11 years 8 months ago -  11 years 8 months ago [\#195509](#195509) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[no SSL outside checkout plugin - Infinite loop](/forum/27-checkout/875782-no-ssl-outside-checkout-plugin-infinite-loop#195509 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.10  Hi!  After having installed SSL on a dev server I wanted to enable the checkout to be accessed through HTTPS only, but the rest of the shop through HTTP, so I enabled the plugin &quot;HikaShop no SSL outside checkout plugin&quot;. But when I tried to reach my checkout I got stuck in an' Infinite loop, the checkout trying to put me through to HTTPS and the plugin trying to revert me back to HTTP.  I am using a forced checkout menu so my guess is that the error lies there.")*

The result of the var_dump:
Code:

array(7) { ["language"] =&gt; string(5) "en-US" ["format"] =&gt; string(4) "html" ["Itemid" ] =&gt; string(3) "566" ["option"] =&gt; string(12) "com_hikashop" ["lang"] =&gt; string(5) "en-US" ["view"] =&gt; string(8) "checkout" ["layout"] =&gt; string(4) "step" }

I don't know whether it has any use but; When I changed the code that you requested I had to disable Gzip in Joomla, otherwise I kept getting this error message: Code:

"Error code: ERR_CONTENT_DECODING_FAILED"

Last edit: 11 years 8 months ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTc4Mi1uby1zc2wtb3V0c2lkZS1jaGVja291dC1wbHVnaW4taW5maW5pdGUtbG9vcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 8 months ago [\#195618](#195618) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[no SSL outside checkout plugin - Infinite loop](/forum/27-checkout/875782-no-ssl-outside-checkout-plugin-infinite-loop#195618 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.10  Hi!  After having installed SSL on a dev server I wanted to enable the checkout to be accessed through HTTPS only, but the rest of the shop through HTTP, so I enabled the plugin &quot;HikaShop no SSL outside checkout plugin&quot;. But when I tried to reach my checkout I got stuck in an' Infinite loop, the checkout trying to put me through to HTTPS and the plugin trying to revert me back to HTTP.  I am using a forced checkout menu so my guess is that the error lies there.")*

Hi,

Great !
So add these lines: Code:

if(empty($_REQUEST['ctrl'])) $_REQUEST['ctrl'] = @$_REQUEST['view']; if(empty($_REQUEST['task'])) $_REQUEST['task'] = @$_REQUEST['layout'];

before the line: Code:

if(@$_REQUEST['option']!='com_hikashop' &#124;&#124; (@$_REQUEST['ctrl']!='checkout' &amp;&amp; !(@$_REQUEST['ctrl']=='order' &amp;&amp; @$_REQUEST['task']=='pay') )){

in that same file and revert the change I asked in my last message and it should then work properly.

The following user(s) said Thank You: [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTc4Mi1uby1zc2wtb3V0c2lkZS1jaGVja291dC1wbHVnaW4taW5maW5pdGUtbG9vcD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
