Problem with pagination in listing

  • Posts: 15
  • Thank you received: 0
8 years 2 months ago #228173

-- url of the page with the problem -- : ilaza.vn/san-pham-ban-chay.html
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8

Hi!
i have a problem with pagination in product listing, categories listing and vendor listing when turn on SEF urls.
when i redirect from 1st page to another page, my url will duplicate domain and show 404 error.
my url is: ilaza.vn/san-pham-ban-chay.html
but when i try to paging to another page, it will become:http://ilaza.vn/ilaza.vn/san-pham-ban-chay.html
however, when i turn of SEF url, pagination still active normally!
please help me to resolve this problem.
thanks so much! :side: :side:

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

  • Posts: 4501
  • Thank you received: 610
  • MODERATOR
8 years 2 months ago #228185

Hello,

I'm quite astonished because I use your Url: ilaza.vn/san-pham-ban-chay.html AND click here to move to your listing page and no 404 error...(see image)



And no error page...



So, 2 possibilties:
- You success to solve your issue, congratulation :)
OR
- I don't understand your issue...And in this case sorry, but can you explain with more details and maybe screenshot.

Regards,

Attachments:
Last edit: 8 years 2 months ago by Philip.

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

  • Posts: 15
  • Thank you received: 0
8 years 2 months ago #228253

sorry philips, my English is not good, so i apologize when you don't understand,to easier, let me explain with image :pinch:
i have alot of product, so i want to pagination, but when i click to number in pagination like this image



and then, it showing error

Attachments:

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

  • Posts: 4501
  • Thank you received: 610
  • MODERATOR
8 years 2 months ago #228372

Hello,

Ok right now, I understand try to Turn off the "force canonical URLs on listings", and see if it help!
Other you can try is to update your HikaShop version because I see that your are on 2.6, and the 2.6.1 have a lot of bug fix.
If you have some overrides try to turn them off

If nothing works, sends us backend references via our "Contact Us" form, and use this topic subject to fill your message subject.

Regards,

Last edit: 8 years 2 months ago by Philip.

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

  • Posts: 81478
  • Thank you received: 13061
  • MODERATOR
8 years 2 months ago #228751

Hi,

From what I can see, the problem is that you're missing the http:// in the live_site parameter of the configuration.php file of your Joomla. Could you open it and check that the URL of your website is correct in the live_site parameter there ?

The following user(s) said Thank You: quangnguyen

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

  • Posts: 15
  • Thank you received: 0
8 years 2 months ago #228843

Hello Nicolas!
I have check the 'live_site' parameter in my configuration.php
firstly, my 'live_site' parameter is:

public $live_site = '';

and then, i change to

public $live_site = ' ilaza.vn/ ';

but still issues

Last edit: 8 years 2 months ago by quangnguyen.

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

  • Posts: 81478
  • Thank you received: 13061
  • MODERATOR
8 years 2 months ago #228863

Hi,

Ok, I've looked deeper into it and understand the problem. I've added a patch on your website which fixes the problem. We've also added that fix on our end for next version of HikaShop as it only happens on some really specific server configurations.

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

  • Posts: 15
  • Thank you received: 0
8 years 2 months ago #228954

thank you so much Nicolas, but can you point me what is that problem? and how i can fix it? i want to know how to fix, because there are same problem in vendor list, category list and filter now. :woohoo: :woohoo:
look like you add a new fix in product listing_div

Last edit: 8 years 2 months ago by quangnguyen.

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

  • Posts: 81478
  • Thank you received: 13061
  • MODERATOR
8 years 2 months ago #228992

Hi,

Move the code:

case 'REQUEST_URI':
			$requestUri = $_SERVER["REQUEST_URI"];
			if (!empty($_SERVER["REDIRECT_URL"]) && !empty($_SERVER['REDIRECT_QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['REDIRECT_QUERY_STRING'];
			break;
		case 'REDIRECT_URL':
			$requestUri = $_SERVER["REQUEST_URI"];
			if (!empty($_SERVER['REDIRECT_QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['REDIRECT_QUERY_STRING'];
			elseif (!empty($_SERVER['QUERY_STRING'])) $requestUri = rtrim($requestUri,'/').'?'.$_SERVER['QUERY_STRING'];
			break;
just after the code:
$config = hikashop_config();
	$mode = $config->get('server_current_url_mode','REQUEST_URI');

	switch($mode){
in the file administrator/components/com_hikashop/helpers/helper.php and that should fix it everywhere.

The following user(s) said Thank You: quangnguyen

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

Time to create page: 0.095 seconds
Powered by Kunena Forum