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
#2421449

Hi,
I have activated the infinite scroll management in one of my views and when loading the data I see this error from the console
Uncaught TypeError: Cannot read properties of undefined (reading 'sort')
How can I fix?
Regards

#2421527

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I would like to have debug information that will help us to debug and investigate your issue:
- https://toolset.com/faq/provide-debug-information-faster-support/

In addition to that, could you please share screenshot of your edit view page?

#2421749
toolset.JPG

Hi Minesh,
thanks!

#2422201

Minesh
Supporter

Languages: English (English )

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

Thanks for sharing the error screenshot but I want the screenshot of your edit view page.

Can you navigate to:
Toolset => Views => Edit your view => Take full page screenshot and share with me.

#2422211
toolset.png

Hi Minesh,
thanks!

Regards

#2422353

Minesh
Supporter

Languages: English (English )

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

Based on the screenshot you shared, I see you did not activated the pagination, to have infinite scroll you must chose the pagination option "Pagination enabled with manual transition and AJAX" and select infinite scroll.

I see you selected "No pagination" - am I missing something here?

#2423005

Hi Minesh,
we have modified the setting and by activating the last scroll generate an error. I can activate it for you in case.
Regards

#2423013

Minesh
Supporter

Languages: English (English )

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

Could you please tell me what steps I should follow to see the issue?

Do you mean I've to navigate to the last page using Infinite scroll to see the issue?

#2423127

Hi Minesh,
correct. Initial loading does not generate an error. On the second load the page crashes with the console error.
Regards

#2424593

Minesh
Supporter

Languages: English (English )

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

I see you are using WP Rocket plugin. Could you please disable that cache plugin and check if that helps?

Please check the following Doc:
=> https://toolset.com/faq/how-to-use-optimization-plugins-with-toolset/

#2424809

Hi Minesh,
i tried to disable WP Rocket but doesn't works.
Regards

#2425349

Minesh
Supporter

Languages: English (English )

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

That is really strange.

I just checked with my test site where I set pagination to display two posts per page and with infinite scroll:
=> hidden link

I do not see any JS error.

In order to minimize the cause of the issue as well as to know where to problem resides:
*** Please make a FULL BACKUP of your database and website.***
Could you please try to resolve your issue by deactivating all third-party plugins as well as with the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?

#2425351

Minesh
Supporter

Languages: English (English )

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

In case if you want here is the test site auto-login URL:
=> hidden link

You can login to above sandbox site using the above auto-login link and share if I miss anything.

#2426137

Hi Minesh,
I tried to disable all plugins except the necessary toolset and theme plugins and the problem still occurs.
Regards

#2426139

Minesh
Supporter

Languages: English (English )

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

That is strange, have you tried to check on sandbox site I shared:
=> https://toolset.com/forums/topic/infinite-scroll-error-reading-sort/#post-2425349

In case if you want here is the test site auto-login URL:
=> hidden link

You can login to above sandbox site using the above auto-login link and share if I miss anything.