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

#   Proceed to Checkout issue

##

- **[brainforge](/forum/user/423-brainforge "View brainforge's Profile")**
- [![brainforge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar423.jpg)](/forum/user/423-brainforge "View brainforge's Profile") Topic Author
- [ Offline](/forum/user/423-brainforge)

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

15 years 10 months ago [\#4162](#4162) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  *[Proceed to Checkout issue](/forum/3-bug-report/4162-proceed-to-checkout-issue#4162 "Error message from browser - The page isn't redirecting properly. Initially referred to . I have started a new thread to separate it from the main discussion of the other thread.  Following a trace through the code found that Joomla/Hikashop was in a continuous redirect loop. This happens both with a checkout link from the Joomla menu and proceed to checkout button in the cart.  The URLs look like this:  Making the following patch to .../com&#95;hikashop/controllers/checkout.php solved the problem at my end:  Testing using Versions: Joomla 1.6 Hikashop 1.4.1 (Essential) PHP 5.3.3 (also happens with 5.2 with same code base).  This problem does not occur in the demo (also 1.4.1). I redownloaded Hikashop 1.4.1 (Essential) and the problem still exists.  I notice $Itemid is used elsewhere in checkout.php, so I assume the real problem may lie elsewhere and my workaround just masks it for the time being.")* was created by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")*

Error message from browser - **The page isn't redirecting properly**.
Initially referred to [ here](http://www.hikashop.com/en/support/forum/4-how-to/4132).
I have started a new thread to separate it from the main discussion of the other thread.

Following a trace through the code found that Joomla/Hikashop was in a continuous redirect loop.
This happens both with a checkout link from the Joomla menu and *proceed to checkout* button in the cart.

The URLs look like this: Code:

Proceed to basket button - http://.../component/hikashop/checkout?Itemid=112 Joomla Menu - http://.../component/hikashop/checkout

Making the following patch to *.../com\_hikashop/controllers/checkout.php* solved the problem at my end: Code:

// global $Itemid; ** Remove this line ** $redirect = false; $ssl = false; $new_item_id = $_REQUEST['Itemid']; //$Itemid; ** Change this line ** $itemid_for_checkout = $config-&gt;get('checkout_itemid','0'); if(!empty($itemid_for_checkout)){ if($new_item_id!=$itemid_for_checkout){ $new_item_id=$itemid_for_checkout; $redirect = true; } }

Testing using Versions:
Joomla 1.6
Hikashop 1.4.1 (Essential)
PHP 5.3.3 (also happens with 5.2 with same code base).

This problem does not occur in the demo (also 1.4.1).
I redownloaded Hikashop 1.4.1 (Essential) and the problem still exists.

I notice *$Itemid* is used elsewhere in *checkout.php*, so I assume the real problem may lie elsewhere and my workaround just masks it for the time being.

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

- **[brainforge](/forum/user/423-brainforge "View brainforge's Profile")**
- [![brainforge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar423.jpg)](/forum/user/423-brainforge "View brainforge's Profile") Topic Author
- [ Offline](/forum/user/423-brainforge)

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

15 years 10 months ago [\#4163](#4163) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  Replied by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")* on topic *[Re: Proceed to Checkout issue](/forum/3-bug-report/4162-proceed-to-checkout-issue#4163 "Error message from browser - The page isn't redirecting properly. Initially referred to . I have started a new thread to separate it from the main discussion of the other thread.  Following a trace through the code found that Joomla/Hikashop was in a continuous redirect loop. This happens both with a checkout link from the Joomla menu and proceed to checkout button in the cart.  The URLs look like this:  Making the following patch to .../com&#95;hikashop/controllers/checkout.php solved the problem at my end:  Testing using Versions: Joomla 1.6 Hikashop 1.4.1 (Essential) PHP 5.3.3 (also happens with 5.2 with same code base).  This problem does not occur in the demo (also 1.4.1). I redownloaded Hikashop 1.4.1 (Essential) and the problem still exists.  I notice $Itemid is used elsewhere in checkout.php, so I assume the real problem may lie elsewhere and my workaround just masks it for the time being.")*

This might be relevant: [ forum.joomla.org/viewtopic.php?p=2111214](http://forum.joomla.org/viewtopic.php?p=2111214)
But then I have the same problem with both PHP 5.3 and 5.2 (and different machines).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTYyLXByb2NlZWQtdG8tY2hlY2tvdXQtaXNzdWU/dG1wbD1tYXJrZG93bg==) 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: 86358
- Thank you received: 14293
-
-

15 years 10 months ago [\#4165](#4165) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Proceed to Checkout issue](/forum/3-bug-report/4162-proceed-to-checkout-issue#4165 "Error message from browser - The page isn't redirecting properly. Initially referred to . I have started a new thread to separate it from the main discussion of the other thread.  Following a trace through the code found that Joomla/Hikashop was in a continuous redirect loop. This happens both with a checkout link from the Joomla menu and proceed to checkout button in the cart.  The URLs look like this:  Making the following patch to .../com&#95;hikashop/controllers/checkout.php solved the problem at my end:  Testing using Versions: Joomla 1.6 Hikashop 1.4.1 (Essential) PHP 5.3.3 (also happens with 5.2 with same code base).  This problem does not occur in the demo (also 1.4.1). I redownloaded Hikashop 1.4.1 (Essential) and the problem still exists.  I notice $Itemid is used elsewhere in checkout.php, so I assume the real problem may lie elsewhere and my workaround just masks it for the time being.")*

What is the id of the menu you selected in the option "Force a menu for the checkout" in the display tab of the config ?

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

- **[brainforge](/forum/user/423-brainforge "View brainforge's Profile")**
- [![brainforge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar423.jpg)](/forum/user/423-brainforge "View brainforge's Profile") Topic Author
- [ Offline](/forum/user/423-brainforge)

Less More

- Posts: 298
- Thank you received: 5
-
-
-
- [](https://brainforge.co.uk)
-

15 years 10 months ago [\#4173](#4173) by [brainforge](/forum/user/423-brainforge "View brainforge's Profile")  Replied by *[brainforge](/forum/user/423-brainforge "View brainforge's Profile")* on topic *[Re: Proceed to Checkout issue](/forum/3-bug-report/4162-proceed-to-checkout-issue#4173 "Error message from browser - The page isn't redirecting properly. Initially referred to . I have started a new thread to separate it from the main discussion of the other thread.  Following a trace through the code found that Joomla/Hikashop was in a continuous redirect loop. This happens both with a checkout link from the Joomla menu and proceed to checkout button in the cart.  The URLs look like this:  Making the following patch to .../com&#95;hikashop/controllers/checkout.php solved the problem at my end:  Testing using Versions: Joomla 1.6 Hikashop 1.4.1 (Essential) PHP 5.3.3 (also happens with 5.2 with same code base).  This problem does not occur in the demo (also 1.4.1). I redownloaded Hikashop 1.4.1 (Essential) and the problem still exists.  I notice $Itemid is used elsewhere in checkout.php, so I assume the real problem may lie elsewhere and my workaround just masks it for the time being.")*

Checked and I did have it wrong - corrected but still no success.
I have uploaded a stripped down test site to a publicly accessible location.
Stripped out my template changes.
Reinstalled hikashop code.

Access details sent separately in an email.
Included mySQL access details in case this is a data issue.
I have no problem with going back to a complete clean start if thats needed, but while its in this state better see if there is anything useful which can be learnt.

Listed below test steps and results (* = unexpected behaviour).

*(a) Click on add to cart - shows as full cart.
(b) Refresh page now shows as mini-cart.
*(c) Click on cart - get 'The page isn't redirecting properly'
*(d) Hit back button - click delete icon - mini-cart still shows item.
(e) Refresh page mini-cart now empty.
(f) Goto Menu: Shop / Products / Aquariums
(g) In central region click nets link - displays OK.
(h) In left region click Aquariums.
*(i) In central region click nets link - No display.
Expected to be same as (g).
*(j) In left regision click nets link - No display.
Expected to be same as (g).
(k) Goto Menu: Shop / Checkout - Displays OK.
*(l) In central region click nets link - No display.
Expected to be same as (g).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTYyLXByb2NlZWQtdG8tY2hlY2tvdXQtaXNzdWU/dG1wbD1tYXJrZG93bg==) 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: 86358
- Thank you received: 14293
-
-

15 years 10 months ago [\#4178](#4178) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Proceed to Checkout issue](/forum/3-bug-report/4162-proceed-to-checkout-issue#4178 "Error message from browser - The page isn't redirecting properly. Initially referred to . I have started a new thread to separate it from the main discussion of the other thread.  Following a trace through the code found that Joomla/Hikashop was in a continuous redirect loop. This happens both with a checkout link from the Joomla menu and proceed to checkout button in the cart.  The URLs look like this:  Making the following patch to .../com&#95;hikashop/controllers/checkout.php solved the problem at my end:  Testing using Versions: Joomla 1.6 Hikashop 1.4.1 (Essential) PHP 5.3.3 (also happens with 5.2 with same code base).  This problem does not occur in the demo (also 1.4.1). I redownloaded Hikashop 1.4.1 (Essential) and the problem still exists.  I notice $Itemid is used elsewhere in checkout.php, so I assume the real problem may lie elsewhere and my workaround just masks it for the time being.")*

I was out today so I couldn't check that. I'll look at it tomorrow.
Yesterday, we compiled a pre version which should already fix these issues so I'll try to update to it and see if that works. Otherwise, I'll fix it more with the access you provided.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTYyLXByb2NlZWQtdG8tY2hlY2tvdXQtaXNzdWU/dG1wbD1tYXJrZG93bg==) 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: 86358
- Thank you received: 14293
-
-

15 years 10 months ago [\#4458](#4458) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Proceed to Checkout issue](/forum/3-bug-report/4162-proceed-to-checkout-issue#4458 "Error message from browser - The page isn't redirecting properly. Initially referred to . I have started a new thread to separate it from the main discussion of the other thread.  Following a trace through the code found that Joomla/Hikashop was in a continuous redirect loop. This happens both with a checkout link from the Joomla menu and proceed to checkout button in the cart.  The URLs look like this:  Making the following patch to .../com&#95;hikashop/controllers/checkout.php solved the problem at my end:  Testing using Versions: Joomla 1.6 Hikashop 1.4.1 (Essential) PHP 5.3.3 (also happens with 5.2 with same code base).  This problem does not occur in the demo (also 1.4.1). I redownloaded Hikashop 1.4.1 (Essential) and the problem still exists.  I notice $Itemid is used elsewhere in checkout.php, so I assume the real problem may lie elsewhere and my workaround just masks it for the time being.")*

For other users wandering here: the problems have been fixed on the test website provided by brainforge and will be included in next release this week.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTYyLXByb2NlZWQtdG8tY2hlY2tvdXQtaXNzdWU/dG1wbD1tYXJrZG93bg==) 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.067 seconds

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