- Posts: 15
- Thank you received: 0
Problem with pagination in listing
- quangnguyen
-
Topic Author
- Offline
Less
More
10 years 7 months ago #228173
by quangnguyen
Problem with pagination in listing was created by quangnguyen
-- 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:
-- 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.
10 years 7 months ago - 10 years 7 months ago #228185
by Philip
Replied by Philip on topic Problem with pagination in listing
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,
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,
Last edit: 10 years 7 months ago by Philip.
Please Log in or Create an account to join the conversation.
- quangnguyen
-
Topic Author
- Offline
Less
More
- Posts: 15
- Thank you received: 0
10 years 7 months ago #228253
by quangnguyen
Replied by quangnguyen on topic Problem with pagination in listing
Please Log in or Create an account to join the conversation.
10 years 7 months ago - 10 years 7 months ago #228372
by Philip
Replied by Philip on topic Problem with pagination in listing
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,
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: 10 years 7 months ago by Philip.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #228751
by nicolas
Replied by nicolas on topic Problem with pagination in listing
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 ?
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.
- quangnguyen
-
Topic Author
- Offline
Less
More
- Posts: 15
- Thank you received: 0
10 years 7 months ago - 10 years 7 months ago #228843
by quangnguyen
Replied by quangnguyen on topic Problem with pagination in listing
Hello Nicolas!
I have check the 'live_site' parameter in my configuration.php
firstly, my 'live_site' parameter is:
I have check the 'live_site' parameter in my configuration.php
firstly, my 'live_site' parameter is:
and then, i change topublic $live_site = '';
but still issuespublic $live_site = ' ilaza.vn/ ';
Last edit: 10 years 7 months ago by quangnguyen.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #228863
by nicolas
Replied by nicolas on topic Problem with pagination in listing
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.
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.
- quangnguyen
-
Topic Author
- Offline
Less
More
- Posts: 15
- Thank you received: 0
10 years 7 months ago - 10 years 7 months ago #228954
by quangnguyen
Replied by quangnguyen on topic Problem with pagination in listing
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
look like you add a new fix in product listing_div
Last edit: 10 years 7 months ago by quangnguyen.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #228992
by nicolas
Replied by nicolas on topic Problem with pagination in listing
Hi,
Move the code:
just after the code:
in the file administrator/components/com_hikashop/helpers/helper.php and that should fix it everywhere.
Move the code:
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;
Code:
$config = hikashop_config();
$mode = $config->get('server_current_url_mode','REQUEST_URI');
switch($mode){
The following user(s) said Thank You: quangnguyen
Please Log in or Create an account to join the conversation.
Time to create page: 0.284 seconds