Rad99 Posted February 28, 2022 Share Posted February 28, 2022 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! Link to comment Share on other sites More sharing options...
Nickovitshj Posted February 28, 2022 Share Posted February 28, 2022 Hi, can you share a link to the page? Or share source code responsible for the pagination? Link to comment Share on other sites More sharing options...
Rad99 Posted February 28, 2022 Author Share Posted February 28, 2022 (edited) 8 minutes ago, Nickovitshj said: Hi, can you share a link to the page? Or share source code responsible for the pagination? Im quite amateur in coding, if you can write me road to it I will share it. Link is: https://eshop.gruppomotors.cz/ Edited February 28, 2022 by Rad99 (see edit history) Link to comment Share on other sites More sharing options...
Nickovitshj Posted March 1, 2022 Share Posted March 1, 2022 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. 1 Link to comment Share on other sites More sharing options...
Nickovitshj Posted March 1, 2022 Share Posted March 1, 2022 Or if you have bought this theme another option is to contact the Developer, and send him this topic. Link to comment Share on other sites More sharing options...
Rad99 Posted March 1, 2022 Author Share Posted March 1, 2022 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 More sharing options...
Nickovitshj Posted March 2, 2022 Share Posted March 2, 2022 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now