Skip Navigation

[Resolved] Content not displayed because it produces an infinite loop

This support ticket is created 4 years, 8 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 3 voices.

Last updated by RaulS6474 4 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1544945
Screenshot 2020-03-09 at 22.00.03.png
Screenshot 2020-03-09 at 21.59.07.png
Screenshot 2020-03-09 at 21.59.03.png

I am trying to display Post type single page. For that I am using a content template. I don't get whats going on, as everytime it displays the same message: "Content not displayed because it produces an infinite loop"

I have read on the forum, that it's good idea to change view_template to "None". I have done that but same results...

Bit hard to learn toolset...!

-- In content template it gets content fine, the error is when using that content into the page

#1544971
Screenshot 2020-03-09 at 21.59.12.png
Screenshot 2020-03-09 at 22.04.18.png

some more screenshots

#1545177

This is usually due to having Content Templates nested into each other (either the same template in the same template or a Post Body ShortCode without template specifications inside another such template)

Can you head to the Post where this happens, then find the precise Content Template applied to it, and in that Template lookout for wpv-post-body ShortCodes and remove them, to see which is causing the issue.

Then you need to ensure not to insert it like that again but if you need it, always specify a Content Template that is different from the one you are inserting to.

#1545847
Screenshot 2020-03-10 at 17.02.02.png
Screenshot 2020-03-10 at 16.59.28.png

Not sure what's going wrong... as I only insert a template in an post. That template loads well as you can see on the image atacched.

Maybe my workflow is wrong Beda.

#1546061

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Raul,

Based on your screenshot here https://toolset.com/forums/topic/content-not-displayed-because-it-produces-an-infinite-loop-5/#post-1544945

You will run into the infinite loop since you're calling the post body within the post body.

Not sure if you're still experiencing the same issue with the infinite loop.

Thanks,
Shane

#1546089

My misunderstood is to add a content template into a post. I did not know a content template do not need to be embed.

Thanks guys