Skip Navigation

[Closed] The infinite loop above 4 gives error in the display of the items

This support ticket is created 3 years, 11 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by Jamal 3 years, 11 months ago.

Assisted by: Jamal.

Author
Posts
#1634399
loop-infinito-002.jpg
loop-infinito-001.jpg

Hi,
The infinite loop above 4 gives error in the display of the items.
Items from 4 are outside the DIV with the entry-content class and this causes ajax to add new items above the last one.
A view_template loop was created.

Website with error:
hidden link

#1634533

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+00:00)

Hello and thank you for contacting the Toolset support.

I suspect that you have disabled the div wrapping for the view loop. Check this screenshot hidden link

As you can see on the tooltip, disabling this option may generate issues for AJAX features which includes infinite scroll.

If this does not help, please check if this issue appears when:
- Only Toolset plugins are activated. It will tell us if there is an interaction issue with another plugin.
- The theme is set to a WordPress default like Twenty Fourteen. It will tell us if there is an interaction issue with your theme.
If the problem disappears, start activating one at the time to track where the incompatibility is produced.

If this does not help, please allow me temporary access to your site to check this closer. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

#1635373

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+00:00)

Please check this screencast hidden link

There are always 7 items that are outside of the view <div>. Those are preloaded items to ensure a smooth animation/transition while loading the next pages.
Because you are scrolling inside the view div, the end of the viewport is always reached, which triggers an infinite scroll call for the next page until we displayed all posts.

Can you please check with a default theme, preferably on a staging/test site? Maybe we'll get different results and that would help us understand this issue.

I also wonder, what issue do you see on the frontend because of these 7 items outside of the view <div>? That would help me find a workaround for you while we are analyzing this situation.

The topic ‘[Closed] The infinite loop above 4 gives error in the display of the items’ is closed to new replies.