Error message from browser - The page isn't redirecting properly.
Initially referred to
here
.
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:
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:
// global $Itemid; ** Remove this line **
$redirect = false;
$ssl = false;
$new_item_id = $_REQUEST['Itemid']; //$Itemid; ** Change this line **
$itemid_for_checkout = $config->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.