Not working second page with product view

  • Posts: 105
  • Thank you received: 1
9 years 10 months ago #217700

You made changes on website with Hikashop version is 2.5.0.
Now I download Hikashop version 2.6.0. And still nothing changed.
Last time I wait 1 month before you solve this problem. Can you make it faster in that case?
I can give you FTP access or you still have it, because I did not close it for you. I hope it will be fixed. Thanks.

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

  • Posts: 105
  • Thank you received: 1
9 years 9 months ago #218529

excuse me, again 1 month I have to wait?

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

  • Posts: 105
  • Thank you received: 1
9 years 9 months ago #219357

Anybody home?

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
9 years 9 months ago #219540

Hi,

Regarding the Nicolas messages

It comes from the way your web server is configured which is not normal.

In the mean time, you can copy the file administrator/components/com_hikashop/helpers/helper.php which is where I added the fix on your website. Make sure that you're using the same version of HikaShop on the other website or the copy of that file could break HikaShop as it is the main file of HikaShop.


I think that your issue is related to the way that the server provide the "current URL" to the PHP.
In that case, you can use the setting "Server current URL mode" in the HikaShop configuration.
The setting is set to "Automatic" but you can use the "REDIRECT_URL" or "REQUEST_URI" settings.
php.net/reserved.variables.server

Last build of HikaShop 2.6.0 also contains a patch for weird configuration server where the domain name is include in the "REQUEST_URI" (which should not be the case regarding the RFC...)

www.hikashop.com/support/support/documen...ashop-changelog.html

We added a new option in the advanced section of the HikaShop configuration in order to control how the current URL should be retrieved from $_SERVER in order to cope with any kind of server configuration


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: 105
  • Thank you received: 1
9 years 9 months ago #219630

I think that your issue is related to the way that the server provide the "current URL" to the PHP.
In that case, you can use the setting "Server current URL mode" in the HikaShop configuration.
The setting is set to "Automatic" but you can use the "REDIRECT_URL" or "REQUEST_URI" settings

Hi.
I updated hikashop to the last version com_hikashop_business_v2.6.0_2015-11-06_00-05-31.zip
I tryed all the settings for "Server current URL mode" in the HikaShop configuration. I tryed "Automatic" and "REDIRECT_URL" and "REQUEST_URI". And still not working.

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

  • Posts: 105
  • Thank you received: 1
9 years 9 months ago #219921

Maybe will be better if I provide access to website for you?

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

  • Posts: 84233
  • Thank you received: 13673
  • MODERATOR
9 years 9 months ago #219923

Hi,

I still had the FTP access to your test website so I checked the code and the modification I made there was to force the use of the "REQUEST_URI" in the function hikashop_currenURL.
That's exactly what should happen when you select the "REQUEST_URI" choice in your HikaShop configuration.
But you can always copy the code of the hikashop_currenURL function and replace it in the administrator/components/com_hikashop/helpers/helper.php

function hikashop_currentURL($checkInRequest='',$safe=true){

	if(!empty($checkInRequest)){

		$url = JRequest::getVar($checkInRequest,'');

		if(!empty($url)){

			if(strpos($url,'http')!==0&&strpos($url,'/')!==0){

				if($checkInRequest=='return_url'){

					$url = base64_decode(urldecode($url));

				}elseif($checkInRequest=='url'){

					$url = urldecode($url);

				}

			}

			if($safe){

				$url = str_replace(array('"',"'",'<','>',';'),array('%22','%27','%3C','%3E','%3B'),$url);

			}

			return $url;

		}

	}
	
	$config = hikashop_config();
	
	/**
	* 0 -> auto detect
	* REQUEST_URI
	* REDIRECT_URL
	*/
	
	//echo "<pre>".print_r($_SERVER,true).'</pre>';

			$requestUri = $_SERVER["REQUEST_URI"];
			if (!empty($_SERVER["REDIRECT_URL"]) && !empty($_SERVER['REDIRECT_QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['REDIRECT_QUERY_STRING'];



	$result = (hikashop_isSSL() ? 'https://' : 'http://').$_SERVER["HTTP_HOST"].$requestUri;

	if($safe){

		$result = str_replace(array('"',"'",'<','>',';'),array('%22','%27','%3C','%3E','%3B'),$result);

	}

	return $result;

}
As Jerome said, the fact that your web server works like that is not normal. The proper solution would be to fix your server.

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

  • Posts: 105
  • Thank you received: 1
9 years 9 months ago #219974

Hi. Thank you for answer.
A made new test website and made choice to use "REQUEST_URI" in HikaShop configuration.
But I still see error. And I do not prefer editing source code, because after update it will have to do again and again.

As Jerome said, the fact that your web server works like that is not normal. The proper solution would be to fix your server.

I use very popular USA hosting Godaddy.com
It is really strange that I'm alone with this error in Hikashop...

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

  • Posts: 84233
  • Thank you received: 13673
  • MODERATOR
9 years 9 months ago #219980

Please try to change the function in that file and see if that fixes the problem.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum