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.

related_entries not showing

July 10, 2008 7:07pm

Subscribe [3]
  • #1 / Jul 10, 2008 7:07pm

    oniracom

    12 posts

    I’m trying to display a related entry from a weblog, however I get absolutely no output between the related_entries tag.  Reverse related entries are working fine, and both weblogs output fine by themselves.  Also, if I leave the relationship unselected, the ‘if no_related_entries’ section does not output either.

    Any help would be greatly appreciated!

    {exp:weblog:entries disable="member_data|pagination|trackbacks" entry_id="157"}
    {title}
        {related_entries id="projects_adminContact"}    
           title: {title}
        {if no_related_entries}
      <h2>No Performer Information Available</h2>
    <p>   {/if}<br />
    {/related_entries}<br />
    {/exp:weblog:entries}

    Using version 1.6.4 with MSM by the way.  I have gone through the database, and checked that ALL weblogs, custom fields, and entries are associated with the correct site in the database.

  • #2 / Jul 10, 2008 8:13pm

    oniracom

    12 posts

    I’ve been looking through mod.weblog.php a bit.
    Around line 356 there is a conditional statement that reads:

    if (count($TMPL->related_data) > 0 AND count($this->related_entries) > 0)
            {
                $this->parse_related_entries();
            }

    It seems that count($this->related_entries) always returns 0. 
    Still trying to figure out exactly where that is assigned.

  • #3 / Jul 10, 2008 8:28pm

    oniracom

    12 posts

    Never mind. It was a bad extension.

  • #4 / Jul 10, 2008 9:44pm

    Sue Crocker

    26054 posts

    Whew. So I can close the thread?

    Which bad extension?

  • #5 / Dec 01, 2008 5:25am

    bromtec

    31 posts

    oniracom -

    Did you figure out which extension was causing the problem…?  I’m getting the same thing.

  • #6 / Dec 01, 2008 12:23pm

    Greg Aker

    6022 posts

    bromtec, what extensions are you using?  If you globally shut them off with the green button in Admin -> Utilities -> Extensions Manager does it work for you?

  • #7 / Dec 01, 2008 12:47pm

    bromtec

    31 posts

    Greg,

    Thanks for your help. I gave that a try, but still nogo.  I am on 1.6.4.  I’m going to upgrade, but I don’t see anything in the change log relating to this. 

    It’s 2 sites deployed with MSM.  The sites are virtually identical, and most of the second site was created with the duplication feature during creation, although I’ve adjusted the weblogs, custom fields and any other settings I could think of to reflect the new site.  The related entries works great on the main site, but it simply won’t work on the second site, which is deployed in a subfolder underneath the main site.  Any other ideas?


    Main site is http://www.sprayfoamsouthwest.com (think you looked at this before when I was having another issue), and the second site is http://www.firestopsouthwest.com, which is located at http://www.sprayfoamsouthwest.com/firestop/

    Thanks again for your help.

    Paul

  • #8 / Dec 01, 2008 12:49pm

    Greg Aker

    6022 posts

    Okay, can you please try the upgrade of MSM & EE so we can see if that shakes out any bugs.  If not, we’re on the same code base for troubleshooting.  Sound fair?

    -greg

  • #9 / Dec 01, 2008 10:16pm

    bromtec

    31 posts

    Greg,

    I updated to 1.6.6 and my MSM was already at 1.1 (does the actual build / date matter)?  I’ve still got the same problem.  Any other ideas?

  • #10 / Dec 02, 2008 1:43am

    bromtec

    31 posts

    Actually, now that I updated to 1.6.6, disabling the multi-relationship extension seems to fix this problem.

    I installed the Playa extension, and that seems to have corrected the issue when I have the multi relation extension enabled and in use, although I haven’t put the Playa extension to use in any way.

  • #11 / Dec 02, 2008 2:22pm

    Pascal Kriete

    2589 posts

    Ok, so this was caused by an extension as well?

    Playa shouldn’t be doing anything when it’s not in use.  Does the problem come back if you disable Playa again?

  • #12 / Dec 02, 2008 2:32pm

    bromtec

    31 posts

    Ok, so this was caused by an extension as well?

    Playa shouldn’t be doing anything when it’s not in use.  Does the problem come back if you disable Playa again?


    That is exactly what happens - the problem comes back when I disable Playa.  Re-enable, and the problem is gone.

  • #13 / Dec 02, 2008 3:31pm

    Pascal Kriete

    2589 posts

    bromtec:

    For help with the extensions you need to go directly to their author(s).

    I do want to work out what’s going wrong with EE though.  Could you please disable all extensions again (use the big green button so you don’t lose any settings) and then tell me step-by-step how I can reproduce this error.

    Thanks, Pascal

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

ExpressionEngine News!

#eecms, #events, #releases