Cart not working on subdomain

  • Posts: 6
  • Thank you received: 0
11 years 8 months ago #122548

-- 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.

  • Posts: 83932
  • Thank you received: 13588
  • MODERATOR
11 years 8 months ago #122564

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.

  • Posts: 6
  • Thank you received: 0
11 years 8 months ago #122569

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.

  • Posts: 6
  • Thank you received: 0
11 years 8 months ago #122586

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.

  • Posts: 6
  • Thank you received: 0
11 years 8 months ago #122740

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.

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
11 years 8 months ago #122763

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 6
  • Thank you received: 0
11 years 8 months ago #122788

Access sent on PM

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

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
11 years 8 months ago #122791

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

	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
$requestUri = $_SERVER["REQUEST_URI"];
Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: Ruark1982

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

  • Posts: 6
  • Thank you received: 0
11 years 8 months ago #122796

Thanks very much

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

Time to create page: 0.071 seconds
Powered by Kunena Forum