related_entries not showing
Posted: 10 July 2008 05:07 PM   [ Ignore ]  
Summer Student
Total Posts:  24
Joined  03-01-2007

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>
   
{/if}
{
/related_entries}
{
/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.

Profile
 
 
Posted: 10 July 2008 06:13 PM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  24
Joined  03-01-2007

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.

Profile
 
 
Posted: 10 July 2008 06:28 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  24
Joined  03-01-2007

Never mind. It was a bad extension.

Profile
 
 
Posted: 10 July 2008 07:44 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21039
Joined  04-29-2002

Whew. So I can close the thread?

Which bad extension?

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 01 December 2008 04:25 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  36
Joined  05-27-2008

oniracom -

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

Profile
 
 
Posted: 01 December 2008 11:23 AM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6680
Joined  05-07-2007

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?

 Signature 
Profile
MSG
 
 
Posted: 01 December 2008 11:47 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Rank
Total Posts:  36
Joined  05-27-2008

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

Profile
 
 
Posted: 01 December 2008 11:49 AM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6680
Joined  05-07-2007

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

 Signature 
Profile
MSG
 
 
Posted: 01 December 2008 09:16 PM   [ Ignore ]   [ # 8 ]  
Grad Student
Rank
Total Posts:  36
Joined  05-27-2008

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?

Profile
 
 
Posted: 02 December 2008 12:43 AM   [ Ignore ]   [ # 9 ]  
Grad Student
Rank
Total Posts:  36
Joined  05-27-2008

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.

Profile
 
 
Posted: 02 December 2008 01:22 PM   [ Ignore ]   [ # 10 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  2828
Joined  01-07-2008

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?

 Signature 
Profile
MSG
 
 
Posted: 02 December 2008 01:32 PM   [ Ignore ]   [ # 11 ]  
Grad Student
Rank
Total Posts:  36
Joined  05-27-2008
Pascal Kriete - 02 December 2008 01:22 PM

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.

Profile
 
 
Posted: 02 December 2008 02:31 PM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  2828
Joined  01-07-2008

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

 Signature 
Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120568 Total Logged-in Users: 48
Total Topics: 126614 Total Anonymous Users: 28
Total Replies: 665600 Total Guests: 298
Total Posts: 792214    
Members ( View Memberlist )