ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Weird infinite loop - can anyone help me debug?

September 30, 2008 10:31pm

Subscribe [1]
  • #16 / Oct 06, 2008 6:45pm

    Lisa Wess

    20502 posts

    Ah, you have a weblog entries tag within your entry? What if you simply remove that snippet?

  • #17 / Oct 06, 2008 6:52pm

    mkornblum

    18 posts

    If I remove that, it works fine. Is there a preferred way to show the last few posts from another EE blog inside a post? We are using that same tag in the same way in several other posts, and those are working fine (see http://72.249.95.115/students/ for example)

  • #18 / Oct 06, 2008 6:54pm

    Lisa Wess

    20502 posts

    I suspect that in this case you actually ran into a problem where this weblog entries tag was pulling the information from the templated entries tag - creating your infinite loop. That’s one of the dangers of putting EE Code into your weblog entries.

    So, in plain English, what is your goal? You want to show a particular entry, and a few other entries from the same weblog?

  • #19 / Oct 06, 2008 7:07pm

    mkornblum

    18 posts

    The entries are from a *different* weblog, but otherwise you have it correct.

  • #20 / Oct 06, 2008 7:13pm

    Lisa Wess

    20502 posts

    Well, this is still not going to be a safe long-term solution.  I would definitely be investigating another method of handling this.  Perhaps passing variables by embed or PHP, or even a custom plugin to display information where and how you want.  Does your single entry template serve up information for multiple weblogs, or just one?

  • #21 / Oct 06, 2008 7:30pm

    mkornblum

    18 posts

    Our main template (called “article”) serves information from one weblog, with a single “related” post on each page from another weblog. So I guess that’s two weblogs that show up in the single-entry template. In at least 2-3 other posts the code I posted above works fine (displaying posts from 3 weblogs on one page), which is why it’s so weird it doesn’t work here. The template we have been using here is identical to our single-article one other than that we have the “allow EE code” tags in this one so that we could pull those other posts in.

    I guess what I’ll probably do is see if I can use the MagpieRSS plugin or something like that to pull those other posts in, and hope the issue goes away in EE2.0 😉

  • #22 / Oct 06, 2008 7:40pm

    Lisa Wess

    20502 posts

    Well, if you ever only call one primarly weblog on this template (not via relationships) then you could just use a second weblog entries tag on that page, with url_title=“not {segment_3}” and dynamic=“off”.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases