Skip Navigation

[Resolved] Infinite scroll error – reading 'sort'

This support ticket is created 2 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 28 replies, has 2 voices.

Last updated by Minesh 2 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2426149

Hi Minesh,
I have verified. I also notice that the toolset view is slow to load. Can you log in and check?
Regards

#2429005

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Where you see the view is slow - on sandbox site or on your site?

Can you please share staging site where I can see the issue and admin access details?

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test/staging site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2431041

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I see the following JS errors when the page is loaded:

Uncaught TypeError: o.widget is not a function
    at mouse.min.js?ver=1.13.1:9:192
    at mouse.min.js?ver=1.13.1:9:95
    at mouse.min.js?ver=1.13.1:9:105

(index):194 Uncaught TypeError: Cannot read properties of null (reading '1')
    at window.onerror ((index):194:83)

slider.min.js?ver=1.13.1:9 Uncaught TypeError: Cannot read properties of undefined (reading 'mouse')
    at slider.min.js?ver=1.13.1:9:174
    at slider.min.js?ver=1.13.1:9:105
    at slider.min.js?ver=1.13.1:9:115

(index):194 Uncaught TypeError: Cannot read properties of null (reading '1')
    at window.onerror ((index):194:83)
index.js?ver=5.6.1:1 wpcf7 is not defined.
(anonymous) @ index.js?ver=5.6.1:1
pum-site-scripts.js?defer&generated=1659541747&ver=1.16.7:7

bootstrap-italia.bundle.js:31452 Uncaught TypeError: Cannot read properties of undefined (reading 'sort')
    at t.get_sort_data (views-frontend.js?ver=3.6.3:1:11442)
    at t.get_updated_query_results (views-frontend.js?ver=3.6.3:1:9000)
    at t.pagination_preload_next_page (views-frontend.js?ver=3.6.3:1:33718)
    at t.pagination_preload_pages (views-frontend.js?ver=3.6.3:1:32950)
    at HTMLDivElement.<anonymous> (views-frontend.js?ver=3.6.3:1:63062)
    at Function.each (bootstrap-italia.bundle.js:31452:23)
    at E.fn.init.each (bootstrap-italia.bundle.js:31452:23)
    at t.init_preload_pages (views-frontend.js?ver=3.6.3:1:62928)
    at t.init (views-frontend.js?ver=3.6.3:1:63503)
    at new a.ViewPagination (views-frontend.js?ver=3.6.3:1:63561)
(index):194 Uncaught TypeError: Cannot read properties of null (reading '1')
    at window.onerror ((index):194:83)

From the above JS errors one error is from the following theme file:
- hidden link

Could you please try to switch to the default theme and do you see the above error?

#2431065

Hi Minesh,
I tried with the parent theme and the problem is present. Even with the default wordpress theme.
Regards

#2431151

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

That is really strange. I will require duplicator copy of your site so that I can host your site on my test install and then debug further to find out the conflict.

Can you please send me duplicator copy of your site:
- https://toolset.com/faq/provide-supporters-copy-site/

Note:
- Please deactivate security plugin and then try to create duplicator package.

I have set the next reply to private which means only you and I have access to it.

#2431167

Hi Minesh,
the site is very big (25 GB) I can create you a staging on my hosting for testing.
Regards

#2431175

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You should exclude the media (uploads) and files when you create duplicator package. I hope that will help you to reduce the size. Please check the following blog:
=> hidden link

If that does not help then you will require to create the stating site.

I have set the next reply to private which means only you and I have access to it.

#2431245

Hi Minesh

#2431247

Sen me other private please

#2431869

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I have set the next reply to private which means only you and I have access to it.

#2431889

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I deploy the site copy you shared using the duplicator plugin on my localhost and I can see the infinite scroll is working just fine without any issues.

Then I run a quick test and I found that if you load the URL with URL param, for example:
- hidden link
The infinite scroll works just fine.

But without URL param: hidden link, it does show the issue.

The issue seems to be server cache, Can you please disable any server cache or CDN cache and check if that helps as it seems to have your server is using really aggressive cache policies.

#2433459

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check server cache or any other cache?

#2433479

Hi Minesh,
I tried to clear and disable all type of cache but the problem doesn't fix.

#2433487

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please try to host the site on another server and check if issue still persist, as I shared before, when I installed the duplicator package you shared on my localhost I do not see the issue. There is something from the server and it must be cache or any other thing.

As I shared, I found that if you load the URL with URL param, for example:
- hidden link
The infinite scroll works just fine. That means it requires a fresh copy of the page and it should be generated with we have URL param in the URL.