Jump to content

Page navigation not clickable


Rad99

Recommended Posts

Hi all!

I have problem with my prestashop eshop.. I tryed almost everything what I found on internet, but no success.

My page navigation is not clickable. On any pages yes, but then I will go into infititive loading.

Page navigation  =  Previous  (1)   (2)   (3)  Next

I tryed to uninnstal faceted search, change version to older, clear his cache, global cache, change permission of folder, .. Out of ideas.

Thanks for any reply!

image.png

Link to comment
Share on other sites

Hi.

I was able to reproduce the error and am pretty confident that it's a javascript error.
When i'm on the following page: https://eshop.gruppomotors.cz/45-fabia
And I try to click on page 2, it should go to https://eshop.gruppomotors.cz/45-fabia?page=2
But that is giving us the infinite loading as you described earlier.

We know that the page itself gives no problem as we can click it and we see that everything on that page is working without giving errors:
https://eshop.gruppomotors.cz/45-fabia?page=2

The issue in the HTML seems to be with the class "js-search-link" (see below)

<a rel="nofollow" href="https://eshop.gruppomotors.cz/45-fabia?page=2" class="js-search-link">2</a>

- The easy fix would be to remove this class in this pagination in the .tpl file that is generating these category overviews.
- The hard fix would be to figure out what is causing this JavaScript error which is creating the infinite loop error.

For the easy fix we would need to find the exact .tpl file or files where this class is located in the pagination part of your website.
And there simply remove the class. This wouldn't impact your website in any negative way. It would just work like any other link.
It simply wouldn't use any JavaScript for the redirection.

What you now would need to do is locate the exact .tpl file through FTP.
This should be located in your specific theme folder which can be found in /themes/ folder.

  • Like 1
Link to comment
Share on other sites

6 hours ago, Nickovitshj said:

Hi.

I was able to reproduce the error and am pretty confident that it's a javascript error.
When i'm on the following page: https://eshop.gruppomotors.cz/45-fabia
And I try to click on page 2, it should go to https://eshop.gruppomotors.cz/45-fabia?page=2
But that is giving us the infinite loading as you described earlier.

We know that the page itself gives no problem as we can click it and we see that everything on that page is working without giving errors:
https://eshop.gruppomotors.cz/45-fabia?page=2

The issue in the HTML seems to be with the class "js-search-link" (see below)

<a rel="nofollow" href="https://eshop.gruppomotors.cz/45-fabia?page=2" class="js-search-link">2</a>

- The easy fix would be to remove this class in this pagination in the .tpl file that is generating these category overviews.
- The hard fix would be to figure out what is causing this JavaScript error which is creating the infinite loop error.

For the easy fix we would need to find the exact .tpl file or files where this class is located in the pagination part of your website.
And there simply remove the class. This wouldn't impact your website in any negative way. It would just work like any other link.
It simply wouldn't use any JavaScript for the redirection.

What you now would need to do is locate the exact .tpl file through FTP.
This should be located in your specific theme folder which can be found in /themes/ folder.


Thank you Nickovitshj for your reply.

I found pagination.tpl (/themes/AngarTheme/templates/_partials/) and i renamed all those script. After cache clear is it working. Thank you for your help!

Link to comment
Share on other sites

13 hours ago, Rad99 said:


Thank you Nickovitshj for your reply.

I found pagination.tpl (/themes/AngarTheme/templates/_partials/) and i renamed all those script. After cache clear is it working. Thank you for your help!

You're welcome Rad, glad I could be of help.
By the way, your dropdown filters seem to be facing the same issue.

The solution would be the same, but most likely to be found in another .tpl file.

Screenshot 2022-03-02 at 10.31.06.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...