Skip to main content

Cart not working on subdomain

More
13 years 1 month ago #122548 by Ruark1982
-- url of the page with the problem -- : jennings.innovationfile.com
-- HikaShop version -- : 1308282330
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Error_message

Problem: the site is built on jennings.innovationfile.com, when adding to or taking away from the cart a 404 error appears. The url used when a product is added will be for example jennings.innovationfile.com/kia/category/listing/19-alloys then will go to jennings.innovationfile.com/jennings/kia...ng/19-alloys?popup=1

It seems to be adding in the /jennings rather than going straight to KIA

Thanks

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #122564 by nicolas
It sounds like an issue with your joomla configuration.
Can you make sure that you don't have a live_site parameter in the configuration.php file of Joomla and if you do that it is the correct URL of your website ?

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #122569 by Ruark1982
Hello thank you for the prompt reply

I'm a bit new to joomla but I think I found the line:

public $live_site = ' jennings.innovationfile.com/ ';

is that correct?

Thanks

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #122586 by Ruark1982
I have tried removing the variable and it still behaves in the same way

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #122740 by Ruark1982
It doesn't seem to have this issue on the checkout page

Any help would be gratefully received so I don't need to setup 250 redirects!

Thanks

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #122763 by Jerome
Hi,

I tried to take a look at your website but I don't understand how you configured your website to have such problem.
I guess that otherwise asking you to check all your HikaShop, your menus and Joomla configuration, the best will be to have an access to your backend because there is so much possibilities and I don't even understand how you did this.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #122788 by Ruark1982
Access sent on PM

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #122791 by Jerome
Hi,

Thanks for the access.
There is a problem with the "hikashop_currentURL" function which does not return the right url.
It looks like the PHP variable $_SERVER["REDIRECT_URL"] does not contains the right value. But the $_SERVER["REQUEST_URI"] does.

In order to fix it directly, I recommend you to edit the HikaShop helper file ( administrator/components/com_hikashop/helper/helper.php ) and replace
Code:
if(!empty($_SERVER["REDIRECT_URL"]) && preg_match('#.*index\.php$#',$_SERVER["REDIRECT_URL"]) && empty($_SERVER['QUERY_STRING'])&&empty($_SERVER['REDIRECT_QUERY_STRING']) && !empty($_SERVER["REQUEST_URI"])){ $requestUri = $_SERVER["REQUEST_URI"]; }elseif(!empty($_SERVER["REDIRECT_URL"]) && (isset($_SERVER['QUERY_STRING'])||isset($_SERVER['REDIRECT_QUERY_STRING']))){ $requestUri = $_SERVER["REDIRECT_URL"]; if (!empty($_SERVER['REDIRECT_QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['REDIRECT_QUERY_STRING']; elseif (!empty($_SERVER['QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['QUERY_STRING']; }elseif(isset($_SERVER["REQUEST_URI"])){ $requestUri = $_SERVER["REQUEST_URI"]; }else{ $requestUri = $_SERVER['PHP_SELF']; if (!empty($_SERVER['QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['QUERY_STRING']; }
By
Code:
$requestUri = $_SERVER["REQUEST_URI"];
Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: Ruark1982

Please Log in or Create an account to join the conversation.

More
13 years 1 month ago #122796 by Ruark1982
Thanks very much

Please Log in or Create an account to join the conversation.

Time to create page: 0.105 seconds
Powered by Kunena Forum